3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $f = fopen('/tmp/test.txt', 'w'); // fwrite($f, 'woohoo'); // fclose($f); echo file_get_contents('/etc/passwd'); echo file_get_contents("php://filter/resource=file:///etc/passwd");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o8rlU
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 '%2Fetc%2Fpasswd'
          2        DO_ICALL                                         $0      
          3        ECHO                                                     $0
    9     4        INIT_FCALL                                               'file_get_contents'
          5        SEND_VAL                                                 'php%3A%2F%2Ffilter%2Fresource%3Dfile%3A%2F%2F%2Fetc%2Fpasswd'
          6        DO_ICALL                                         $1      
          7        ECHO                                                     $1
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.45 ms | 1394 KiB | 15 Q