3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public static function testMethod() { return 'asdf'; } } $test = <<<TEST Hopefully this works: {Test::testMethod()} TEST; echo $test;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4CO4N
function name:  (null)
number of ops:  3
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, 'Hopefully+this+works%3A+%7BTest%3A%3AtestMethod%28%29%7D'
   15     1        ECHO                                                     !0
   16     2      > RETURN                                                   1

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

End of function testmethod

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.84 ms | 1392 KiB | 13 Q