3v4l.org

run code in 300+ PHP versions simultaneously
<?php $range = "2008-2013"; $year = "2008"; $shite = "-2013"; $regex = "/(\d{0,4}-\d{0,4})/is"; $matches = array(); preg_match($regex, $range, $matches); preg_match($regex, $year, $matches); preg_match($regex, $shite, $matches); print_r($matches); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jkFHu
function name:  (null)
number of ops:  24
compiled vars:  !0 = $range, !1 = $year, !2 = $shite, !3 = $regex, !4 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2008-2013'
    4     1        ASSIGN                                                   !1, '2008'
    5     2        ASSIGN                                                   !2, '-2013'
    7     3        ASSIGN                                                   !3, '%2F%28%5Cd%7B0%2C4%7D-%5Cd%7B0%2C4%7D%29%2Fis'
    8     4        ASSIGN                                                   !4, <array>
   10     5        INIT_FCALL                                               'preg_match'
          6        SEND_VAR                                                 !3
          7        SEND_VAR                                                 !0
          8        SEND_REF                                                 !4
          9        DO_ICALL                                                 
   11    10        INIT_FCALL                                               'preg_match'
         11        SEND_VAR                                                 !3
         12        SEND_VAR                                                 !1
         13        SEND_REF                                                 !4
         14        DO_ICALL                                                 
   12    15        INIT_FCALL                                               'preg_match'
         16        SEND_VAR                                                 !3
         17        SEND_VAR                                                 !2
         18        SEND_REF                                                 !4
         19        DO_ICALL                                                 
   14    20        INIT_FCALL                                               'print_r'
         21        SEND_VAR                                                 !4
         22        DO_ICALL                                                 
   16    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.39 ms | 1386 KiB | 17 Q