3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function column() { $var = 'string'; $var->column(); } } $header = new Foo; var_dump(get_class($header), get_class_methods($header), method_exists($header, 'column')); $header->column();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5ugka
function name:  (null)
number of ops:  19
compiled vars:  !0 = $header
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        INIT_FCALL                                               'var_dump'
          4        GET_CLASS                                        ~4      !0
          5        SEND_VAL                                                 ~4
          6        INIT_FCALL                                               'get_class_methods'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        INIT_FCALL                                               'method_exists'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 'column'
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                                 
   16    16        INIT_METHOD_CALL                                         !0, 'column'
         17        DO_FCALL                                      0          
         18      > RETURN                                                   1

Class Foo:
Function column:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5ugka
function name:  column
number of ops:  4
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 'string'
    9     1        INIT_METHOD_CALL                                         !0, 'column'
          2        DO_FCALL                                      0          
   10     3      > RETURN                                                   null

End of function column

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.44 ms | 1395 KiB | 19 Q