3v4l.org

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

Function takes_array:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LIe75
function name:  takes_array
number of ops:  13
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        FETCH_DIM_R                                      ~1      !0, 0
          2        ROPE_INIT                                     4  ~4      ~1
          3        ROPE_ADD                                      1  ~4      ~4, '+%2B+'
          4        FETCH_DIM_R                                      ~2      !0, 1
          5        ROPE_ADD                                      2  ~4      ~4, ~2
          6        ROPE_END                                      3  ~3      ~4, '+%3D+'
          7        ECHO                                                     ~3
          8        FETCH_DIM_R                                      ~6      !0, 0
          9        FETCH_DIM_R                                      ~7      !0, 1
         10        ADD                                              ~8      ~6, ~7
         11        ECHO                                                     ~8
    6    12      > RETURN                                                   null

End of function takes_array

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.28 ms | 1397 KiB | 14 Q