3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_errors', true); error_reporting(E_ALL); class name { public static function methodname() { var_dump('methodname called'); } } $array = array('key' => 'methodname'); name::$array['key']();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OdFWt
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'display_errors'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'error_reporting'
          5        SEND_VAL                                                 32767
          6        DO_ICALL                                                 
   11     7        ASSIGN                                                   !0, <array>
   12     8        FETCH_STATIC_PROP_R          unknown             ~4      'array'
          9        FETCH_DIM_R                                      ~5      ~4, 'key'
         10        INIT_DYNAMIC_CALL                                        ~5
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Class name:
Function methodname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OdFWt
function name:  methodname
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'methodname+called'
          2        DO_ICALL                                                 
    8     3      > RETURN                                                   null

End of function methodname

End of class name.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.98 ms | 1395 KiB | 19 Q