eval.in

Paste #3540

PHP — PHP 5.4.6, pasted 1 year ago

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
<?php

class MyClass1 {

    private function init(){

    }
}

class MyClass2 extends MyClass1 {

    private function init($params) {

    }
}

$myinstance = new MyClass2();

Program Output


    

OK (0.004 sec real, 0.005 sec wall, 13 MB, 43 syscalls)

Fork