3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'ht://www.google.co.m'; if (!preg_match("~^(?:f|ht)tps?://~i", $url)) { $url = "http://" . $url; } print_R($url);
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 = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/FauTk
function name:  (null)
number of ops:  13
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'ht%3A%2F%2Fwww.google.co.m'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%7E%5E%28%3F%3Af%7Cht%29tps%3F%3A%2F%2F%7Ei'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        BOOL_NOT                                         ~3      $2
          6      > JMPZ                                                     ~3, ->9
    4     7    >   CONCAT                                           ~4      'http%3A%2F%2F', !0
          8        ASSIGN                                                   !0, ~4
    6     9    >   INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.73 ms | 1385 KiB | 17 Q