3v4l.org

run code in 300+ PHP versions simultaneously
<?php $year = "2008"; $range = "2008-2013"; $shite = "20008-2013"; $shite2 = "2008-20013"; $shite3 = "2008-"; $shite4 = "-2013"; $regex = "/(\d{4}+(?:-\d{4}+)?)/is"; $matches = array(array()); preg_match($regex, $range, $matches[0]); preg_match($regex, $year, $matches[1]); preg_match($regex, $shite, $matches[2]); preg_match($regex, $shite2, $matches[3]); preg_match($regex, $shite3, $matches[4]); preg_match($regex, $shite4, $matches[5]); print_r($matches); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eZ1kC
function name:  (null)
number of ops:  48
compiled vars:  !0 = $year, !1 = $range, !2 = $shite, !3 = $shite2, !4 = $shite3, !5 = $shite4, !6 = $regex, !7 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2008'
    4     1        ASSIGN                                                   !1, '2008-2013'
    5     2        ASSIGN                                                   !2, '20008-2013'
    6     3        ASSIGN                                                   !3, '2008-20013'
    7     4        ASSIGN                                                   !4, '2008-'
    8     5        ASSIGN                                                   !5, '-2013'
   10     6        ASSIGN                                                   !6, '%2F%28%5Cd%7B4%7D%2B%28%3F%3A-%5Cd%7B4%7D%2B%29%3F%29%2Fis'
   11     7        ASSIGN                                                   !7, <array>
   13     8        INIT_FCALL                                               'preg_match'
          9        SEND_VAR                                                 !6
         10        SEND_VAR                                                 !1
         11        FETCH_DIM_W                                      $16     !7, 0
         12        SEND_REF                                                 $16
         13        DO_ICALL                                                 
   14    14        INIT_FCALL                                               'preg_match'
         15        SEND_VAR                                                 !6
         16        SEND_VAR                                                 !0
         17        FETCH_DIM_W                                      $18     !7, 1
         18        SEND_REF                                                 $18
         19        DO_ICALL                                                 
   15    20        INIT_FCALL                                               'preg_match'
         21        SEND_VAR                                                 !6
         22        SEND_VAR                                                 !2
         23        FETCH_DIM_W                                      $20     !7, 2
         24        SEND_REF                                                 $20
         25        DO_ICALL                                                 
   16    26        INIT_FCALL                                               'preg_match'
         27        SEND_VAR                                                 !6
         28        SEND_VAR                                                 !3
         29        FETCH_DIM_W                                      $22     !7, 3
         30        SEND_REF                                                 $22
         31        DO_ICALL                                                 
   17    32        INIT_FCALL                                               'preg_match'
         33        SEND_VAR                                                 !6
         34        SEND_VAR                                                 !4
         35        FETCH_DIM_W                                      $24     !7, 4
         36        SEND_REF                                                 $24
         37        DO_ICALL                                                 
   18    38        INIT_FCALL                                               'preg_match'
         39        SEND_VAR                                                 !6
         40        SEND_VAR                                                 !5
         41        FETCH_DIM_W                                      $26     !7, 5
         42        SEND_REF                                                 $26
         43        DO_ICALL                                                 
   20    44        INIT_FCALL                                               'print_r'
         45        SEND_VAR                                                 !7
         46        DO_ICALL                                                 
   22    47      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.47 ms | 1400 KiB | 17 Q