3v4l.org

run code in 300+ PHP versions simultaneously
$subject = "abcdef"; $pattern = '/^def/'; preg_match($pattern, $subject, $matches); print_r($matches);<?php
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RWqg0
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%24subject+%3D+%22abcdef%22%3B%0A%24pattern+%3D+%27%2F%5Edef%2F%27%3B%0Apreg_match%28%24pattern%2C+%24subject%2C+%24matches%29%3B%0Aprint_r%28%24matches%29%3B'
    4     1      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.56 ms | 1397 KiB | 13 Q