3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! chdir('/var/www/'); echo realpath('./../../etc/passwd');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6p2lZ
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'chdir'
          1        SEND_VAL                                                 '%2Fvar%2Fwww%2F'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'realpath'
          4        SEND_VAL                                                 '.%2F..%2F..%2Fetc%2Fpasswd'
          5        DO_ICALL                                         $1      
          6        ECHO                                                     $1
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.49 ms | 1393 KiB | 17 Q