3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Variable to check $url = "https://w3schools.com"; // Validate url if (filter_var($url, FILTER_VALIDATE_URL)) { echo("$url is a valid URL"); } else { echo("$url is not a valid URL"); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2UabO
function name:  (null)
number of ops:  14
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fw3schools.com'
    6     1        INIT_FCALL                                               'filter_var'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 273
          4        DO_ICALL                                         $2      
          5      > JMPZ                                                     $2, ->10
    7     6    >   NOP                                                      
          7        FAST_CONCAT                                      ~3      !0, '+is+a+valid+URL'
          8        ECHO                                                     ~3
          9      > JMP                                                      ->13
    9    10    >   NOP                                                      
         11        FAST_CONCAT                                      ~4      !0, '+is+not+a+valid+URL'
         12        ECHO                                                     ~4
   11    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.3 ms | 1394 KiB | 15 Q