3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://a.com/php/abcpdf/'; $url_data = parse_url($url); if(strpos(trim($url_data['path'],'/') . "/","php/") !== false){ echo "exists"; // your task }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/XQlF1
function name:  (null)
number of ops:  19
compiled vars:  !0 = $url, !1 = $url_data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fa.com%2Fphp%2Fabcpdf%2F'
    5     1        INIT_FCALL                                               'parse_url'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    7     5        INIT_FCALL                                               'strpos'
          6        INIT_FCALL                                               'trim'
          7        FETCH_DIM_R                                      ~5      !1, 'path'
          8        SEND_VAL                                                 ~5
          9        SEND_VAL                                                 '%2F'
         10        DO_ICALL                                         $6      
         11        CONCAT                                           ~7      $6, '%2F'
         12        SEND_VAL                                                 ~7
         13        SEND_VAL                                                 'php%2F'
         14        DO_ICALL                                         $8      
         15        TYPE_CHECK                                  1018          $8
         16      > JMPZ                                                     ~9, ->18
    8    17    >   ECHO                                                     'exists'
    9    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.55 ms | 1003 KiB | 16 Q