3v4l.org

run code in 500+ PHP versions simultaneously
<?php file_put_contents("php://filter/write=zlib.deflate/resource=/tmp/example.txt",str_repeat('hello', 100)); echo filesize('/tmp/example.txt');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eK3Xa
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'file_put_contents'
          1        SEND_VAL                                                     'php%3A%2F%2Ffilter%2Fwrite%3Dzlib.deflate%2Fresource%3D%2Ftmp%2Fexample.txt'
          2        INIT_FCALL                                                   'str_repeat'
          3        SEND_VAL                                                     'hello'
          4        SEND_VAL                                                     100
          5        DO_ICALL                                             $0      
          6        SEND_VAR                                                     $0
          7        DO_ICALL                                                     
    4     8        INIT_FCALL                                                   'filesize'
          9        SEND_VAL                                                     '%2Ftmp%2Fexample.txt'
         10        DO_ICALL                                             $2      
         11        ECHO                                                         $2
         12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.43 ms | 480 KiB | 10 Q