3v4l.org

run code in 300+ 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.0.0


preferences:
158.64 ms | 1394 KiB | 19 Q