3v4l.org

run code in 300+ PHP versions simultaneously
<?php class someClass { static $property = 'This calls the property'; static function someMethod() { print `\n`.'This calls the method'; } } print someClass::$property; $property = 'someMethod'; print someClass::$property(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SFaAI
function name:  (null)
number of ops:  7
compiled vars:  !0 = $property
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   FETCH_STATIC_PROP_R          unknown             ~1      'property'
          1        ECHO                                                     ~1
   11     2        ASSIGN                                                   !0, 'someMethod'
   12     3        INIT_STATIC_METHOD_CALL                                  'someClass', !0
          4        DO_FCALL                                      0  $3      
          5        ECHO                                                     $3
   14     6      > RETURN                                                   1

Class someClass:
Function somemethod:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SFaAI
function name:  someMethod
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'shell_exec'
          1        SEND_VAL                                                 '%0A'
          2        DO_ICALL                                         $0      
          3        CONCAT                                           ~1      $0, 'This+calls+the+method'
          4        ECHO                                                     ~1
    7     5      > RETURN                                                   null

End of function somemethod

End of class someClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.6 ms | 1394 KiB | 15 Q