3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'September 14-20, 26, 28-30, October 1-8, 10, 11, 15-20, 24, November 25, 28-30'; preg_match('/(\w+)\s(\d+)/', $str, $pieces); $first_month = $pieces[1]; $first_day = $pieces[2]; var_dump($first_month, $first_day);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/USVNa
function name:  (null)
number of ops:  15
compiled vars:  !0 = $str, !1 = $pieces, !2 = $first_month, !3 = $first_day
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'September+14-20%2C+26%2C+28-30%2C+October+1-8%2C+10%2C+11%2C+15-20%2C+24%2C+November+25%2C+28-30'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%28%5Cw%2B%29%5Cs%28%5Cd%2B%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    4     6        FETCH_DIM_R                                      ~6      !1, 1
          7        ASSIGN                                                   !2, ~6
    5     8        FETCH_DIM_R                                      ~8      !1, 2
          9        ASSIGN                                                   !3, ~8
    6    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        SEND_VAR                                                 !3
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.83 ms | 1005 KiB | 15 Q