3v4l.org

run code in 300+ PHP versions simultaneously
<?php $day = '16'; $month = 'nov'; $year = '2013'; $newDate="$day-$month-$year"; $date_new = DateTime::createFromFormat('d-M-Y',$newDate); echo $newformat=$date_new->format('F dS Y'); //November 16th 2013
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eArtO
function name:  (null)
number of ops:  20
compiled vars:  !0 = $day, !1 = $month, !2 = $year, !3 = $newDate, !4 = $date_new, !5 = $newformat
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '16'
    3     1        ASSIGN                                                   !1, 'nov'
    4     2        ASSIGN                                                   !2, '2013'
    5     3        ROPE_INIT                                     5  ~10     !0
          4        ROPE_ADD                                      1  ~10     ~10, '-'
          5        ROPE_ADD                                      2  ~10     ~10, !1
          6        ROPE_ADD                                      3  ~10     ~10, '-'
          7        ROPE_END                                      4  ~9      ~10, !2
          8        ASSIGN                                                   !3, ~9
    6     9        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
         10        SEND_VAL                                                 'd-M-Y'
         11        SEND_VAR                                                 !3
         12        DO_FCALL                                      0  $14     
         13        ASSIGN                                                   !4, $14
    7    14        INIT_METHOD_CALL                                         !4, 'format'
         15        SEND_VAL_EX                                              'F+dS+Y'
         16        DO_FCALL                                      0  $16     
         17        ASSIGN                                           ~17     !5, $16
         18        ECHO                                                     ~17
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.8 ms | 1394 KiB | 13 Q