3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = "Wednesday, 22 Apr, 2015, 12:39 PM"; $dateArray = explode(',', $date); var_dump($dateArray); echo date('F d Y', strtotime($dateArray[1].' '.$dateArray[2]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2BUWW
function name:  (null)
number of ops:  22
compiled vars:  !0 = $date, !1 = $dateArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Wednesday%2C+22+Apr%2C+2015%2C+12%3A39+PM'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    4     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'F+d+Y'
         11        INIT_FCALL                                               'strtotime'
         12        FETCH_DIM_R                                      ~6      !1, 1
         13        CONCAT                                           ~7      ~6, '+'
         14        FETCH_DIM_R                                      ~8      !1, 2
         15        CONCAT                                           ~9      ~7, ~8
         16        SEND_VAL                                                 ~9
         17        DO_ICALL                                         $10     
         18        SEND_VAR                                                 $10
         19        DO_ICALL                                         $11     
         20        ECHO                                                     $11
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.52 ms | 1395 KiB | 21 Q