3v4l.org

run code in 300+ PHP versions simultaneously
<?php $r = '~^(?:(?:https?|ftp)://[^@]+(?:/.*)?|mailto:.+|[/?#].*|[^:]+)\z~i'; var_dump(preg_match($r, "javascript:foo")); var_dump(preg_match($r, "\njavascript:foo"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c05Sg
function name:  (null)
number of ops:  16
compiled vars:  !0 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7E%5E%28%3F%3A%28%3F%3Ahttps%3F%7Cftp%29%3A%2F%2F%5B%5E%40%5D%2B%28%3F%3A%2F.%2A%29%3F%7Cmailto%3A.%2B%7C%5B%2F%3F%23%5D.%2A%7C%5B%5E%3A%5D%2B%29%5Cz%7Ei'
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'javascript%3Afoo'
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'preg_match'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 '%0Ajavascript%3Afoo'
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.79 ms | 1394 KiB | 17 Q