3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [[1, 2], [1, 2]]; $a["b"] = [1, 3]; $a["a"] = [1, 3]; $a[5] = [1, 3]; $b = ""; if (strlen($b)) echo "1\n\n\n"; array_unshift($a, [3, 4]); print_r($a);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/IY6pI
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN_DIM                                               !0, 'b'
          2        OP_DATA                                                  <array>
    6     3        ASSIGN_DIM                                               !0, 'a'
          4        OP_DATA                                                  <array>
    7     5        ASSIGN_DIM                                               !0, 5
          6        OP_DATA                                                  <array>
    9     7        ASSIGN                                                   !1, ''
   11     8        STRLEN                                           ~7      !1
          9      > JMPZ                                                     ~7, ->11
         10    >   ECHO                                                     '1%0A%0A%0A'
   14    11    >   INIT_FCALL                                               'array_unshift'
         12        SEND_REF                                                 !0
         13        SEND_VAL                                                 <array>
         14        DO_ICALL                                                 
   16    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.55 ms | 1386 KiB | 17 Q