3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_match('/a/u', " ", $m, 0, 1)); var_dump(preg_last_error_msg()); var_dump(preg_match('/(?:\D+|<\d+>)*[!?]/', "foobar foobar foobar", $m, 0, 1)); var_dump(preg_last_error_msg());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M2cZeV
function name:  (null)
number of ops:  31
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2Fa%2Fu'
          3        SEND_VAL                                                 '+'
          4        SEND_REF                                                 !0
          5        SEND_VAL                                                 0
          6        SEND_VAL                                                 1
          7        DO_ICALL                                         $1      
          8        SEND_VAR                                                 $1
          9        DO_ICALL                                                 
    4    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'preg_last_error_msg'
         12        DO_ICALL                                         $3      
         13        SEND_VAR                                                 $3
         14        DO_ICALL                                                 
    5    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'preg_match'
         17        SEND_VAL                                                 '%2F%28%3F%3A%5CD%2B%7C%3C%5Cd%2B%3E%29%2A%5B%21%3F%5D%2F'
         18        SEND_VAL                                                 'foobar+foobar+foobar'
         19        SEND_REF                                                 !0
         20        SEND_VAL                                                 0
         21        SEND_VAL                                                 1
         22        DO_ICALL                                         $5      
         23        SEND_VAR                                                 $5
         24        DO_ICALL                                                 
    6    25        INIT_FCALL                                               'var_dump'
         26        INIT_FCALL                                               'preg_last_error_msg'
         27        DO_ICALL                                         $7      
         28        SEND_VAR                                                 $7
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
209.28 ms | 1007 KiB | 16 Q