3v4l.org

run code in 500+ PHP versions simultaneously
<?php ini_set('memory_limit', '10G'); $size = 2147483648; $test = str_repeat('a', $size); $x[$test] = ''; var_dump($x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SDghN
function name:  (null)
number of ops:  16
compiled vars:  !0 = $size, !1 = $test, !2 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'ini_set'
          1        SEND_VAL                                                     'memory_limit'
          2        SEND_VAL                                                     '10G'
          3        DO_ICALL                                                     
    3     4        ASSIGN                                                       !0, 2147483648
    4     5        INIT_FCALL                                                   'str_repeat'
          6        SEND_VAL                                                     'a'
          7        SEND_VAR                                                     !0
          8        DO_ICALL                                             $5      
          9        ASSIGN                                                       !1, $5
    5    10        ASSIGN_DIM                                                   !2, !1
         11        OP_DATA                                                      ''
    7    12        INIT_FCALL                                                   'var_dump'
         13        SEND_VAR                                                     !2
         14        DO_ICALL                                                     
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
181.27 ms | 3037 KiB | 16 Q