3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo base64_encode('$target_path=$target_path.basename($_FILES["file"]["name"]);if(move_uploaded_file($_FILES["file"]["tmp_name"],$target_path)){echo "Ok";}else{echo "Fail";}');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ieLtn
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'base64_encode'
          1        SEND_VAL                                                 '%24target_path%3D%24target_path.basename%28%24_FILES%5B%22file%22%5D%5B%22name%22%5D%29%3Bif%28move_uploaded_file%28%24_FILES%5B%22file%22%5D%5B%22tmp_name%22%5D%2C%24target_path%29%29%7Becho+%22Ok%22%3B%7Delse%7Becho+%22Fail%22%3B%7D'
          2        DO_ICALL                                         $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.49 ms | 1393 KiB | 15 Q