3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_ALL, 0); $pattern = '\G(?>\s+|\#[^\n]*)*'; var_dump($pattern); mb_ereg_search_init(' # and a comment'); mb_ereg_search_setpos(0); var_dump(mb_ereg_search($pattern));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Sr2tT
function name:  (null)
number of ops:  21
compiled vars:  !0 = $pattern
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'setlocale'
          1        SEND_VAL                                                 6
          2        SEND_VAL                                                 0
          3        DO_ICALL                                                 
    5     4        ASSIGN                                                   !0, '%5CG%28%3F%3E%5Cs%2B%7C%5C%23%5B%5E%5Cn%5D%2A%29%2A'
    6     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    8     8        INIT_FCALL                                               'mb_ereg_search_init'
          9        SEND_VAL                                                 '+++%23+and+a+comment'
         10        DO_ICALL                                                 
    9    11        INIT_FCALL                                               'mb_ereg_search_setpos'
         12        SEND_VAL                                                 0
         13        DO_ICALL                                                 
   10    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'mb_ereg_search'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $6      
         18        SEND_VAR                                                 $6
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.2 ms | 1395 KiB | 23 Q