3v4l.org

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

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

End of function sayhello

End of class Greeting.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.18 ms | 1384 KiB | 13 Q