3v4l.org

run code in 300+ 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 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/65QGU
function name:  (null)
number of ops:  17
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                                               'in_array'
          3        INIT_FCALL                                               'parse_url'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 0
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        SEND_VAL                                                 <array>
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                         $5      
         11      > JMPZ                                                     $5, ->13
    5    12    >   ASSIGN                                                   !1, <false>
    7    13    >   INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.27 ms | 1438 KiB | 16 Q