3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = "20/10/2014"; $dateparts = explode('/', $date); $newdate = "$dateparts[2]$dateparts[1]$dateparts[0]"; //$new = date('Ymd', strtotime($date)); echo $newdate; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UDgZE
function name:  (null)
number of ops:  15
compiled vars:  !0 = $date, !1 = $dateparts, !2 = $newdate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '20%2F10%2F2014'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     6        FETCH_DIM_R                                      ~6      !1, 2
          7        ROPE_INIT                                     3  ~10     ~6
          8        FETCH_DIM_R                                      ~7      !1, 1
          9        ROPE_ADD                                      1  ~10     ~10, ~7
         10        FETCH_DIM_R                                      ~8      !1, 0
         11        ROPE_END                                      2  ~9      ~10, ~8
         12        ASSIGN                                                   !2, ~9
    9    13        ECHO                                                     !2
   11    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.52 ms | 1394 KiB | 15 Q