3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('open_basedir', '/'); $temp = tempnam(__DIR__, 'test'); $data = str_repeat('0', PHP_MAXPATHLEN * 2); $data = 'data://plain/text;base64,' . base64_encode($data); var_dump(copy($data, $temp));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5h1aI
function name:  (null)
number of ops:  27
compiled vars:  !0 = $temp, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'open_basedir'
          2        SEND_VAL                                                 '%2F'
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'tempnam'
          5        SEND_VAL                                                 '%2Fin'
          6        SEND_VAL                                                 'test'
          7        DO_ICALL                                         $3      
          8        ASSIGN                                                   !0, $3
    4     9        INIT_FCALL                                               'str_repeat'
         10        SEND_VAL                                                 '0'
         11        SEND_VAL                                                 8192
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !1, $5
    5    14        INIT_FCALL                                               'base64_encode'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $7      
         17        CONCAT                                           ~8      'data%3A%2F%2Fplain%2Ftext%3Bbase64%2C', $7
         18        ASSIGN                                                   !1, ~8
    6    19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL                                               'copy'
         21        SEND_VAR                                                 !1
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $10     
         24        SEND_VAR                                                 $10
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.25 ms | 1395 KiB | 25 Q