3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = <<<CONTENT bab @tag CONTENT; $matches = array(); var_dump(preg_match('/^a/', $content, $matches, 0, 2) === 1); var_dump(preg_match('/^(\A|\n)\w*@/', $content, $matches, 0, 1) === 1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eKldK
function name:  (null)
number of ops:  25
compiled vars:  !0 = $content, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'bab%0A%40tag'
    7     1        ASSIGN                                                   !1, <array>
    8     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'preg_match'
          4        SEND_VAL                                                 '%2F%5Ea%2F'
          5        SEND_VAR                                                 !0
          6        SEND_REF                                                 !1
          7        SEND_VAL                                                 0
          8        SEND_VAL                                                 2
          9        DO_ICALL                                         $4      
         10        IS_IDENTICAL                                     ~5      $4, 1
         11        SEND_VAL                                                 ~5
         12        DO_ICALL                                                 
    9    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'preg_match'
         15        SEND_VAL                                                 '%2F%5E%28%5CA%7C%5Cn%29%5Cw%2A%40%2F'
         16        SEND_VAR                                                 !0
         17        SEND_REF                                                 !1
         18        SEND_VAL                                                 0
         19        SEND_VAL                                                 1
         20        DO_ICALL                                         $7      
         21        IS_IDENTICAL                                     ~8      $7, 1
         22        SEND_VAL                                                 ~8
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.2 ms | 1395 KiB | 17 Q