3v4l.org

run code in 300+ PHP versions simultaneously
<?php $types = ['auto', 'int', 'float', 'string', 'html', 'list', 'pattern']; // echo '('.implode('|', $types).')'; $str = 'string(1;25)'; preg_match('/('.implode('|', $types).')\((.*?)\)/i', $str, $matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8l7GI
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, 'string%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 8.0.0


preferences:
203.67 ms | 1394 KiB | 19 Q