3v4l.org

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

Class Foo:
Function column:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YG50I
function name:  column
number of ops:  15
compiled vars:  !0 = $header
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 'Foo'
    9     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                                                 
   10    14      > RETURN                                                   null

End of function column

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.47 ms | 1395 KiB | 19 Q