3v4l.org

run code in 500+ PHP versions simultaneously
<?php $filename = "ab\0c"; if (strpos($filename, "\0") !== false) { echo "bad filename\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/LHcmN
function name:  (null)
number of ops:  6
compiled vars:  !0 = $filename
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'ab%00c'
    4     1        FRAMELESS_ICALL_2                strpos              ~2      !0, '%00'
          2        TYPE_CHECK                                      1018          ~2
          3      > JMPZ                                                         ~3, ->5
    5     4    >   ECHO                                                         'bad+filename%0A'
    6     5    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.03 ms | 1965 KiB | 14 Q