3v4l.org

run code in 500+ PHP versions simultaneously
<?php $value = "Ceci n'est pas une URL."; $valid = TRUE; if (in_array(parse_url($value, PHP_URL_SCHEME), [NULL, FALSE], TRUE)) { $valid = FALSE; } var_dump($valid);
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
filename:       /in/65QGU
function name:  (null)
number of ops:  14
compiled vars:  !0 = $value, !1 = $valid
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'Ceci+n%27est+pas+une+URL.'
    3     1        ASSIGN                                                       !1, <true>
    4     2        INIT_FCALL                                                   'parse_url'
          3        SEND_VAR                                                     !0
          4        SEND_VAL                                                     0
          5        DO_ICALL                                             $4      
          6        FRAMELESS_ICALL_3                in_array            ~5      $4, <array>
          7        OP_DATA                                                      <true>
          8      > JMPZ                                                         ~5, ->10
    5     9    >   ASSIGN                                                       !1, <false>
    7    10    >   INIT_FCALL                                                   'var_dump'
         11        SEND_VAR                                                     !1
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
154.24 ms | 1707 KiB | 15 Q