3v4l.org

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

Class hello:
Function world:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qUjbG
function name:  world
number of ops:  5
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        NOP                                                      
          2        FAST_CONCAT                                      ~1      'hello+', !0
          3      > RETURN                                                   ~1
    6     4*     > RETURN                                                   null

End of function world

End of class hello.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.22 ms | 1384 KiB | 13 Q