3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); for ( $i = 0; $i < 600; $i++ ) { $a = array( 'A', $a, 'B' ); } echo "AAA\n"; var_dump( json_encode( $a, JSON_PARTIAL_OUTPUT_ON_ERROR, 512 ) ); echo "BBB\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
Branch analysis from position: 3
filename:       /in/u8s3D
function name:  (null)
number of ops:  21
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                                                      ->8
    5     3    >   INIT_ARRAY                                       ~4      'A'
          4        ADD_ARRAY_ELEMENT                                ~4      !0
          5        ADD_ARRAY_ELEMENT                                ~4      'B'
          6        ASSIGN                                                   !0, ~4
    4     7        PRE_INC                                                  !1
          8    >   IS_SMALLER                                               !1, 600
          9      > JMPNZ                                                    ~7, ->3
    8    10    >   ECHO                                                     'AAA%0A'
    9    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'json_encode'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 512
         15        SEND_VAL                                                 512
         16        DO_ICALL                                         $8      
         17        SEND_VAR                                                 $8
         18        DO_ICALL                                                 
   10    19        ECHO                                                     'BBB%0A'
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.83 ms | 1386 KiB | 17 Q