3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '2014-05-01'; $a = explode('-',$input); $result = strftime("%m",mktime(0,0,0,$a[0])).' '.intval($a[1]); echo $result;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vhgaA
function name:  (null)
number of ops:  24
compiled vars:  !0 = $input, !1 = $a, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, '2014-05-01'
    6     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '-'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    7     6        INIT_FCALL                                               'strftime'
          7        SEND_VAL                                                 '%25m'
          8        INIT_FCALL                                               'mktime'
          9        SEND_VAL                                                 0
         10        SEND_VAL                                                 0
         11        SEND_VAL                                                 0
         12        FETCH_DIM_R                                      ~6      !1, 0
         13        SEND_VAL                                                 ~6
         14        DO_ICALL                                         $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                         $8      
         17        CONCAT                                           ~9      $8, '+'
         18        FETCH_DIM_R                                      ~10     !1, 1
         19        CAST                                          4  ~11     ~10
         20        CONCAT                                           ~12     ~9, ~11
         21        ASSIGN                                                   !2, ~12
    8    22        ECHO                                                     !2
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.32 ms | 1395 KiB | 19 Q