3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = ["red", "green", "blue", "yellow"]; function getA() { return ["red", "green", "blue", "yellow"]; }; echo array_splice(getA(), 3, 0, "purple");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O0ep8
function name:  (null)
number of ops:  11
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'array_splice'
          2        INIT_FCALL                                               'geta'
          3        DO_FCALL                                      0  $2      
          4        SEND_VAR_NO_REF                               0          $2
          5        SEND_VAL                                                 3
          6        SEND_VAL                                                 0
          7        SEND_VAL                                                 'purple'
          8        DO_ICALL                                         $3      
          9        ECHO                                                     $3
         10      > RETURN                                                   1

Function geta:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O0ep8
function name:  getA
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   <array>
    7     1*     > RETURN                                                   null

End of function geta

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.84 ms | 1397 KiB | 16 Q