3v4l.org

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

Function greet:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FD1kC
function name:  greet
number of ops:  9
compiled vars:  !0 = $name, !1 = $age
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        CONCAT                                           ~2      'Hello+', !0
          3        CONCAT                                           ~3      ~2, '+%28'
          4        CONCAT                                           ~4      ~3, !1
          5        CONCAT                                           ~5      ~4, '%29%21'
          6        ECHO                                                     ~5
    9     7      > RETURN                                                   'HelloWorld'
   10     8*     > RETURN                                                   null

End of function greet

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.03 ms | 1401 KiB | 14 Q