3v4l.org

run code in 300+ PHP versions simultaneously
<?php $match_me = "hello world!"; $pattern = '/[a-z].*\s?\!$/'; $preg_match($pattern, $match_me,$matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Nf5C2
function name:  (null)
number of ops:  11
compiled vars:  !0 = $match_me, !1 = $pattern, !2 = $preg_match, !3 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'hello+world%21'
    3     1        ASSIGN                                                   !1, '%2F%5Ba-z%5D.%2A%5Cs%3F%5C%21%24%2F'
    4     2        INIT_DYNAMIC_CALL                                        !2
          3        SEND_VAR_EX                                              !1
          4        SEND_VAR_EX                                              !0
          5        SEND_VAR_EX                                              !3
          6        DO_FCALL                                      0          
    5     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !3
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.34 ms | 1394 KiB | 15 Q