3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('memory_limit', '8M'); file_put_contents('/tmp/image', str_repeat(' ', 10485760)); getimagesize('/tmp/image');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8r4HS
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'memory_limit'
          2        SEND_VAL                                                 '8M'
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'file_put_contents'
          5        SEND_VAL                                                 '%2Ftmp%2Fimage'
          6        INIT_FCALL                                               'str_repeat'
          7        SEND_VAL                                                 '+'
          8        SEND_VAL                                                 10485760
          9        DO_ICALL                                         $1      
         10        SEND_VAR                                                 $1
         11        DO_ICALL                                                 
    5    12        INIT_FCALL                                               'getimagesize'
         13        SEND_VAL                                                 '%2Ftmp%2Fimage'
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.22 ms | 1398 KiB | 21 Q