3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path_to_file = "/var/www/vhosts/mercury.mednet-tech.com/httpdocs/uploads/80.txt/"; if (!preg_match("/$", $path_to_file)) { $path_to_file = $path_to_file."/"; } var_dump($path_to_file);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/YOOdK
function name:  (null)
number of ops:  13
compiled vars:  !0 = $path_to_file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '%2Fvar%2Fwww%2Fvhosts%2Fmercury.mednet-tech.com%2Fhttpdocs%2Fuploads%2F80.txt%2F'
    7     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%24'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        BOOL_NOT                                         ~3      $2
          6      > JMPZ                                                     ~3, ->9
    8     7    >   CONCAT                                           ~4      !0, '%2F'
          8        ASSIGN                                                   !0, ~4
   11     9    >   INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.54 ms | 1385 KiB | 17 Q