3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*trait Foo { private $name = '123'; } class Bar { use Foo; private $name = '321'; public function getName(){echo $this->name;} } $bar = new Bar(); $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(true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Pgmla
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   38     0  E >   INIT_NS_FCALL_BY_NAME                                    'Foo%5Cstrlen'
          1        SEND_VAL_EX                                              'Baz'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
   40     4        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
          5        INIT_NS_FCALL_BY_NAME                                    'Foo%5Carray_values'
          6        SEND_VAL_EX                                              <true>
          7        DO_FCALL                                      0  $1      
          8        SEND_VAR_NO_REF_EX                                       $1
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Function bar%5Cstrlen:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Pgmla
function name:  Bar\strlen
number of ops:  3
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   33     0  E >   RECV                                             !0      
          1      > RETURN                                                   5
          2*     > RETURN                                                   null

End of function bar%5Cstrlen

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.49 ms | 1394 KiB | 19 Q