3v4l.org

run code in 500+ PHP versions simultaneously
<?php $regex = '^(/|https?://)?'; var_dump(preg_match('/' . $regex . '/u', ''));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hPCA3
function name:  (null)
number of ops:  8
compiled vars:  !0 = $regex
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%5E%28%2F%7Chttps%3F%3A%2F%2F%29%3F'
    4     1        INIT_FCALL                                                   'var_dump'
          2        CONCAT                                               ~2      '%2F', !0
          3        CONCAT                                               ~3      ~2, '%2Fu'
          4        FRAMELESS_ICALL_2                preg_match          ~4      ~3, ''
          5        SEND_VAL                                                     ~4
          6        DO_ICALL                                                     
          7      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
129.3 ms | 1466 KiB | 14 Q