3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(ini_get('memory_limit')); ini_set('memory_limit', '16K'); var_dump(ini_get('memory_limit')); str_repeat('a', 2 << 28);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QrOLJ
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'ini_get'
          2        SEND_VAL                                                 'memory_limit'
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'ini_set'
          7        SEND_VAL                                                 'memory_limit'
          8        SEND_VAL                                                 '16K'
          9        DO_ICALL                                                 
    5    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'ini_get'
         12        SEND_VAL                                                 'memory_limit'
         13        DO_ICALL                                         $3      
         14        SEND_VAR                                                 $3
         15        DO_ICALL                                                 
    6    16        INIT_FCALL                                               'str_repeat'
         17        SEND_VAL                                                 'a'
         18        SEND_VAL                                                 536870912
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.87 ms | 1395 KiB | 21 Q