3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*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;} } class Foo extends Bar{private static $name='123';} $bar = new Foo(); $bar::getName(); /*echo false; class Faz {} class Baz extends Faz {} interface Foo {public function du(Faz $param);} class A implements Foo { public function du(Baz $param){ echo false; } }*//* $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/mDlHv
function name:  (null)
number of ops:  7
compiled vars:  !0 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   24     3        FETCH_CLASS                                   0  $4      !0
          4        INIT_STATIC_METHOD_CALL                                  $4, 'getName'
          5        DO_FCALL                                      0          
   54     6      > RETURN                                                   1

Class Bar:
Function getname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mDlHv
function name:  getName
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'name'
          1      > RETURN                                                   ~0
          2*     > RETURN                                                   null

End of function getname

End of class Bar.

Class Foo:
Function getname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mDlHv
function name:  getName
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'name'
          1      > RETURN                                                   ~0
          2*     > RETURN                                                   null

End of function getname

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
192.24 ms | 1393 KiB | 13 Q