3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match("@^x@", "xa", $m1, 0); var_dump($m1); preg_match("@^a@", "xa", $m2, 0, 1); var_dump($m2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UkcnY
function name:  (null)
number of ops:  20
compiled vars:  !0 = $m1, !1 = $m2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%40%5Ex%40'
          2        SEND_VAL                                                 'xa'
          3        SEND_REF                                                 !0
          4        SEND_VAL                                                 0
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'preg_match'
         10        SEND_VAL                                                 '%40%5Ea%40'
         11        SEND_VAL                                                 'xa'
         12        SEND_REF                                                 !1
         13        SEND_VAL                                                 0
         14        SEND_VAL                                                 1
         15        DO_ICALL                                                 
    9    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.37 ms | 1072 KiB | 15 Q