3v4l.org

run code in 300+ PHP versions simultaneously
<?php $uri_string = ' url( "http://www.example.com/" ) '; $uri_string = substr($uri_string, 4); if (strlen($uri_string) == 0) { return false; } $new_length = strlen($uri_string) - 1; $uri_string[$new_length] != ')'; var_dump($uri_string);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jRRGl
function name:  (null)
number of ops:  20
compiled vars:  !0 = $uri_string, !1 = $new_length
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '++url%28++%22http%3A%2F%2Fwww.example.com%2F%22+%29+++'
    3     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 4
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !0, $3
    4     6        STRLEN                                           ~5      !0
          7        IS_EQUAL                                                 ~5, 0
          8      > JMPZ                                                     ~6, ->10
    5     9    > > RETURN                                                   <false>
    7    10    >   STRLEN                                           ~7      !0
         11        SUB                                              ~8      ~7, 1
         12        ASSIGN                                                   !1, ~8
    8    13        FETCH_DIM_R                                      ~10     !0, !1
         14        IS_NOT_EQUAL                                     ~11     ~10, '%29'
         15        FREE                                                     ~11
    9    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.5 ms | 1395 KiB | 17 Q