3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.google.com'; if (filter_var("http://" . $url, FILTER_VALIDATE_URL)) $filter="true"; else $filter="false"; echo "Filter var result of concat with http is:" . $filter;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z2WZu
function name:  (null)
number of ops:  13
compiled vars:  !0 = $url, !1 = $filter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.google.com'
    5     1        INIT_FCALL                                               'filter_var'
          2        CONCAT                                           ~3      'http%3A%2F%2F', !0
          3        SEND_VAL                                                 ~3
          4        SEND_VAL                                                 273
          5        DO_ICALL                                         $4      
          6      > JMPZ                                                     $4, ->9
          7    >   ASSIGN                                                   !1, 'true'
          8      > JMP                                                      ->10
          9    >   ASSIGN                                                   !1, 'false'
    7    10    >   CONCAT                                           ~7      'Filter+var+result+of+concat+with+http+is%3A', !1
         11        ECHO                                                     ~7
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.41 ms | 1394 KiB | 15 Q