3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo "Define a class...\n"; class ThisIsAContainer { public static function thisIsAMethod(){ echo "This method does something."; } } echo "Grab the method...\n"; $function = ThisIsAContainer::thisIsAMethod(...); echo "Run it:\n"; $function();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gtEi9
function name:  (null)
number of ops:  9
compiled vars:  !0 = $function
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                         'Define+a+class...%0A'
   11     1        ECHO                                                         'Grab+the+method...%0A'
   13     2        INIT_STATIC_METHOD_CALL                                      'ThisIsAContainer', 'thisIsAMethod'
          3        CALLABLE_CONVERT                                     ~1      
          4        ASSIGN                                                       !0, ~1
   15     5        ECHO                                                         'Run+it%3A%0A'
   17     6        INIT_DYNAMIC_CALL                                            !0
          7        DO_FCALL                                          0          
          8      > RETURN                                                       1

Class ThisIsAContainer:
Function thisisamethod:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gtEi9
function name:  thisIsAMethod
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                         'This+method+does+something.'
    8     1      > RETURN                                                       null

End of function thisisamethod

End of class ThisIsAContainer.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
153.54 ms | 1577 KiB | 13 Q