3v4l.org

run code in 300+ PHP versions simultaneously
<?php $val = 'http://www.example.com'; $flag = FILTER_FLAG_PATH_REQUIRED | FILTER_FLAG_QUERY_REQUIRED; var_dump(filter_var($val, FILTER_VALIDATE_URL, $flag));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9ONWs
function name:  (null)
number of ops:  11
compiled vars:  !0 = $val, !1 = $flag
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.example.com'
    4     1        ASSIGN                                                   !1, 786432
    6     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'filter_var'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 273
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.34 ms | 1394 KiB | 17 Q