3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array_months = ["empty", "januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "december"]; $input = "2017-04-04"; Echo $array_months[date("n", strtotime($input))];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MDLPO
function name:  (null)
number of ops:  12
compiled vars:  !0 = $array_months, !1 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, '2017-04-04'
    6     2        INIT_FCALL                                               'date'
          3        SEND_VAL                                                 'n'
          4        INIT_FCALL                                               'strtotime'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                         $5      
          9        FETCH_DIM_R                                      ~6      !0, $5
         10        ECHO                                                     ~6
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.32 ms | 1001 KiB | 15 Q