3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $types = ['auto', 'int', 'float', 'string', 'html', 'list', 'pattern']; // echo '('.implode('|', $types).')'; $str = 'auto(1;25)'; preg_match('/('.implode('|', $types).')\((.*?)\)/i', $str, $matches); var_dump($matches);
based on 8l7GI
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bdK7t
function name:  (null)
number of ops:  17
compiled vars:  !0 = $types, !1 = $str, !2 = $matches
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, <array>
   5     1        ASSIGN                                                   !1, 'auto%281%3B25%29'
   6     2        INIT_FCALL                                               'preg_match'
         3        INIT_FCALL                                               'implode'
         4        SEND_VAL                                                 '%7C'
         5        SEND_VAR                                                 !0
         6        DO_ICALL                                         $5      
         7        CONCAT                                           ~6      '%2F%28', $5
         8        CONCAT                                           ~7      ~6, '%29%5C%28%28.%2A%3F%29%5C%29%2Fi'
         9        SEND_VAL                                                 ~7
        10        SEND_VAR                                                 !1
        11        SEND_REF                                                 !2
        12        DO_ICALL                                                 
   7    13        INIT_FCALL                                               'var_dump'
        14        SEND_VAR                                                 !2
        15        DO_ICALL                                                 
        16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0