3v4l.org

run code in 300+ PHP versions simultaneously
<?php class bla { function bar(){ return 'blee'; } } class blee { static $baz = "oh the baz of it"; } $foo = new bla; echo $foo::bar()::$baz;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oNXKd
function name:  (null)
number of ops:  10
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'bla'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   13     3        FETCH_CLASS                                   0  $4      !0
          4        INIT_STATIC_METHOD_CALL                                  $4, 'bar'
          5        DO_FCALL                                      0  $5      
          6        FETCH_CLASS                                   0  $6      $5
          7        FETCH_STATIC_PROP_R          unknown             ~7      'baz'
          8        ECHO                                                     ~7
          9      > RETURN                                                   1

Class bla:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oNXKd
function name:  bar
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   'blee'
    6     1*     > RETURN                                                   null

End of function bar

End of class bla.

Class blee: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.03 ms | 1397 KiB | 13 Q