3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public static function testje() { echo 'test'; } } Test::testje(); echo '<br>'; $var = 'testje()'; Test::$var;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p66ii
function name:  (null)
number of ops:  7
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_STATIC_METHOD_CALL                                  'Test', 'testje'
          1        DO_FCALL                                      0          
   12     2        ECHO                                                     '%3Cbr%3E'
   14     3        ASSIGN                                                   !0, 'testje%28%29'
   15     4        FETCH_STATIC_PROP_R          unknown             ~3      'var'
          5        FREE                                                     ~3
          6      > RETURN                                                   1

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

End of function testje

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.07 ms | 1393 KiB | 13 Q