3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = []; array_unshift($x, 'a'); array_unshift($x, 'b'); array_unshift($x, 'c'); var_dump($x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X1cAV
function name:  (null)
number of ops:  17
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'array_unshift'
          2        SEND_REF                                                 !0
          3        SEND_VAL                                                 'a'
          4        DO_ICALL                                                 
    6     5        INIT_FCALL                                               'array_unshift'
          6        SEND_REF                                                 !0
          7        SEND_VAL                                                 'b'
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'array_unshift'
         10        SEND_REF                                                 !0
         11        SEND_VAL                                                 'c'
         12        DO_ICALL                                                 
    9    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.21 ms | 1071 KiB | 15 Q