3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bigArray = array(); $smallArray1 = array('k1' => 1); $bigArray[] = $smallArray1; $someFlag = true; $smallArray2 = array('k2' => 2); if($someFlag) $bigArray[] = $smallArray2; var_dump($bigArray);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/VU8ng
function name:  (null)
number of ops:  13
compiled vars:  !0 = $bigArray, !1 = $smallArray1, !2 = $someFlag, !3 = $smallArray2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN_DIM                                               !0
          3        OP_DATA                                                  !1
    6     4        ASSIGN                                                   !2, <true>
    7     5        ASSIGN                                                   !3, <array>
    8     6      > JMPZ                                                     !2, ->9
    9     7    >   ASSIGN_DIM                                               !0
          8        OP_DATA                                                  !3
   11     9    >   INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.6 ms | 1394 KiB | 15 Q