3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); for ( $i = 0; $i < 600; $i++ ) { $a = array( $a ); } echo "AAA\n"; var_dump( json_encode( $a ) ); echo "BBB\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 3
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 3
Branch analysis from position: 8
Branch analysis from position: 3
filename:       /in/cPfJD
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->6
    5     3    >   INIT_ARRAY                                       ~4      !0
          4        ASSIGN                                                   !0, ~4
    4     5        PRE_INC                                                  !1
          6    >   IS_SMALLER                                               !1, 600
          7      > JMPNZ                                                    ~7, ->3
    8     8    >   ECHO                                                     'AAA%0A'
    9     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'json_encode'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $8      
         13        SEND_VAR                                                 $8
         14        DO_ICALL                                                 
   10    15        ECHO                                                     'BBB%0A'
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.18 ms | 1395 KiB | 17 Q