3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); preg_match_all('/(ERR)?.+/', 'abc', $results, PREG_SET_ORDER); var_dump($results); preg_match_all('/(ERR)?(.+)/', 'abc', $results, PREG_SET_ORDER); var_dump($results);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iaF0d
function name:  (null)
number of ops:  19
compiled vars:  !0 = $results
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_match_all'
          1        SEND_VAL                                                 '%2F%28ERR%29%3F.%2B%2F'
          2        SEND_VAL                                                 'abc'
          3        SEND_REF                                                 !0
          4        SEND_VAL                                                 2
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'preg_match_all'
         10        SEND_VAL                                                 '%2F%28ERR%29%3F%28.%2B%29%2F'
         11        SEND_VAL                                                 'abc'
         12        SEND_REF                                                 !0
         13        SEND_VAL                                                 2
         14        DO_ICALL                                                 
    7    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
191.18 ms | 1002 KiB | 15 Q