3v4l.org

run code in 300+ PHP versions simultaneously
<?php $originalDate = "12/May/2018"; $newDate = date("Y-m-d", strtotime(str_replace("/", " " ,$originalDate))); echo $newDate;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K8cOF
function name:  (null)
number of ops:  16
compiled vars:  !0 = $originalDate, !1 = $newDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '12%2FMay%2F2018'
    4     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-d'
          3        INIT_FCALL                                               'strtotime'
          4        INIT_FCALL                                               'str_replace'
          5        SEND_VAL                                                 '%2F'
          6        SEND_VAL                                                 '+'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !1, $5
    5    14        ECHO                                                     !1
    6    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.08 ms | 1006 KiB | 16 Q