3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nl = PHP_EOL; $a = '/^javascript:|css:/' . $nl; $b = '| You have {{ messages }} messages!]'; print_r(preg_match($a, $b));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qB4C4
function name:  (null)
number of ops:  12
compiled vars:  !0 = $nl, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%0A'
    4     1        CONCAT                                           ~4      '%2F%5Ejavascript%3A%7Ccss%3A%2F', !0
          2        ASSIGN                                                   !1, ~4
    5     3        ASSIGN                                                   !2, '%7C+You+have+%7B%7B+messages+%7D%7D+messages%21%5D'
    7     4        INIT_FCALL                                               'print_r'
          5        INIT_FCALL                                               'preg_match'
          6        SEND_VAR                                                 !1
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                         $7      
          9        SEND_VAR                                                 $7
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.94 ms | 1394 KiB | 17 Q