3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "html://balsdfa/?f=1"; echo 'p: '.(NULL==strpos($url,"f=1")); echo 'p2: '.(NULL==strpos($url,"f=2")); if(NULL==strpos($url,"f=2")){ echo 'not found'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 22
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/6XMjr
function name:  (null)
number of ops:  23
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'html%3A%2F%2Fbalsdfa%2F%3Ff%3D1'
    3     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'f%3D1'
          4        DO_ICALL                                         $2      
          5        IS_EQUAL                                         ~3      $2, null
          6        CONCAT                                           ~4      'p%3A+', ~3
          7        ECHO                                                     ~4
    4     8        INIT_FCALL                                               'strpos'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'f%3D2'
         11        DO_ICALL                                         $5      
         12        IS_EQUAL                                         ~6      $5, null
         13        CONCAT                                           ~7      'p2%3A+', ~6
         14        ECHO                                                     ~7
    5    15        INIT_FCALL                                               'strpos'
         16        SEND_VAR                                                 !0
         17        SEND_VAL                                                 'f%3D2'
         18        DO_ICALL                                         $8      
         19        IS_EQUAL                                                 $8, null
         20      > JMPZ                                                     ~9, ->22
    6    21    >   ECHO                                                     'not+found'
    7    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.6 ms | 1395 KiB | 15 Q