3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dutch_date = "donderdag 27 maart 2014 00:30"; $converted_date = array(); $pattern = "#(?P<day_of_the_week>\w+)\ (?P<day>\d+)\ (?P<month>\w+)\ (?P<year>\d+)\ (?P<hour>\d+):(?P<minute>\d+)#s"; preg_match($pattern,$dutch_date, $converted_date); $date = ""; $date .= $converted_date["year"] . " "; print_r($date); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZL43i
function name:  (null)
number of ops:  16
compiled vars:  !0 = $dutch_date, !1 = $converted_date, !2 = $pattern, !3 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'donderdag+27+maart+2014+00%3A30'
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, '%23%28%3FP%3Cday_of_the_week%3E%5Cw%2B%29%5C+%28%3FP%3Cday%3E%5Cd%2B%29%5C+%28%3FP%3Cmonth%3E%5Cw%2B%29%5C+%28%3FP%3Cyear%3E%5Cd%2B%29%5C+%28%3FP%3Chour%3E%5Cd%2B%29%3A%28%3FP%3Cminute%3E%5Cd%2B%29%23s'
    6     3        INIT_FCALL                                               'preg_match'
          4        SEND_VAR                                                 !2
          5        SEND_VAR                                                 !0
          6        SEND_REF                                                 !1
          7        DO_ICALL                                                 
    7     8        ASSIGN                                                   !3, ''
    8     9        FETCH_DIM_R                                      ~9      !1, 'year'
         10        CONCAT                                           ~10     ~9, '+'
         11        ASSIGN_OP                                     8          !3, ~10
   10    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !3
         14        DO_ICALL                                                 
   11    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.61 ms | 1394 KiB | 17 Q