3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.17 ms | 2409 KiB | 15 Q