3v4l.org

run code in 300+ PHP versions simultaneously
<?php //var_dump(false); /*preg_match('@^(?:http://)?([^/]+)@i','http://www.php.net/index.html',$matches); ${"a"} = $matches[1]; &$a = 12; echo &$a; var_export(${"a"});*/ /*echo ${"a"};*/ /*trait Foo { private $name = '123'; } class Bar { //use Foo; private static $name = '321'; public static function getName(){return static::$name;} } */ /*echo sprintf(' "%04d"', 1);*/ /* $num = array('11' , '12', '13'); foreach ($num as $val) { $val++; } print_r($num);*/ /* class Foo extends Bar{private static $name='123';} $bar = new Foo(); $bar::getName();*/ /*echo false; */ class Faz {}// $i = new Faz(); echo $i->t;/* class Baz extends Faz {} interface Foo {public function du(Faz $param);} class A implements Foo { public function du(Baz $param){ echo false; } } $c = new A(); $c->du(new Baz()); /* $i = 5; echo $i++; echo $i;*/ /* namespace Bar; function strlen($string){return 5;} namespace Foo; use Bar; echo strlen('Baz');*/ //var_dump(array_values(ksort(array('re'=>'asd', '3'=>'asda')))); //echo true;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/caf84
function name:  (null)
number of ops:  10
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   46     0  E >   DECLARE_CLASS                                            'a'
   52     1        NEW                                              $1      'A'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   53     4        INIT_METHOD_CALL                                         !0, 'du'
          5        NEW                                              $4      'Baz'
          6        DO_FCALL                                      0          
          7        SEND_VAR_NO_REF_EX                                       $4
          8        DO_FCALL                                      0          
   69     9      > RETURN                                                   1

Class Faz: [no user functions]
Class Baz: [no user functions]
Class Foo:
Function du:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/caf84
function name:  du
number of ops:  2
compiled vars:  !0 = $param
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   44     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function du

End of class Foo.

Class A:
Function du:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/caf84
function name:  du
number of ops:  3
compiled vars:  !0 = $param
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   48     0  E >   RECV                                             !0      
   49     1        ECHO                                                     <false>
   50     2      > RETURN                                                   null

End of function du

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.87 ms | 1394 KiB | 13 Q