3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() { $header = null; var_dump(get_class($header), get_class_methods($header), method_exists($header, 'column')); $header->column(); } public function column() { echo 1; } } new Foo;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XgrLO
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $0      'Foo'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
          3      > RETURN                                                   1

Class Foo:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XgrLO
function name:  __construct
number of ops:  17
compiled vars:  !0 = $header
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, null
    7     1        INIT_FCALL                                               'var_dump'
          2        GET_CLASS                                        ~2      !0
          3        SEND_VAL                                                 ~2
          4        INIT_FCALL                                               'get_class_methods'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        INIT_FCALL                                               'method_exists'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'column'
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                                 
    8    14        INIT_METHOD_CALL                                         !0, 'column'
         15        DO_FCALL                                      0          
    9    16      > RETURN                                                   null

End of function __construct

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

End of function column

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.35 ms | 1396 KiB | 19 Q