3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function fun() { echo "fooo"; } } $parts = ['Foo', 'fun']; (new array_shift($parts))->array_shift($parts)();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3UCd8
function name:  (null)
number of ops:  10
compiled vars:  !0 = $parts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, <array>
   11     1        NEW                                              $2      'array_shift'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        INIT_METHOD_CALL                                         $2, 'array_shift'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0  $4      
          7        INIT_DYNAMIC_CALL                                        $4
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Class Foo:
Function fun:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3UCd8
function name:  fun
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'fooo'
    6     1      > RETURN                                                   null

End of function fun

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.76 ms | 1393 KiB | 13 Q