3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo dirname("/etc/passwd", 0) . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EHThZ
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   FRAMELESS_ICALL_2                dirname             ~0      '%2Fetc%2Fpasswd', 0
          1        CONCAT                                               ~1      ~0, '%0A'
          2        ECHO                                                         ~1
    4     3      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
238.29 ms | 2081 KiB | 13 Q