3v4l.org

run code in 300+ PHP versions simultaneously
<?php function say_hello($name) { return "Hello, $name!"; } $greetings = say_hello('Ivan'); echo $greetings;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lsaij
function name:  (null)
number of ops:  6
compiled vars:  !0 = $greetings
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'say_hello'
          1        SEND_VAL                                                 'Ivan'
          2        DO_FCALL                                      0  $1      
          3        ASSIGN                                                   !0, $1
    8     4        ECHO                                                     !0
          5      > RETURN                                                   1

Function say_hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lsaij
function name:  say_hello
number of ops:  6
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ROPE_INIT                                     3  ~2      'Hello%2C+'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '%21'
          4      > RETURN                                                   ~1
    5     5*     > RETURN                                                   null

End of function say_hello

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.76 ms | 1397 KiB | 14 Q