3v4l.org

run code in 300+ PHP versions simultaneously
<?php //echo date('d-M-y'); //echo date('d-m-y H:i:s A' , strtotime( '29-APR-13 09.28.12.505032 pm')); $date = '29-APR-13 09.28.12.505032 PM'; $newDate = str_replace(substr($date, 19, 25), "", $date); echo $newDate; //echo date("d-m-y H:i:s", strtotime("29-APR-13 09:28:12:505032 PM"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HIH2s
function name:  (null)
number of ops:  14
compiled vars:  !0 = $date, !1 = $newDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '29-APR-13+09.28.12.505032+PM'
    5     1        INIT_FCALL                                               'str_replace'
          2        INIT_FCALL                                               'substr'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 19
          5        SEND_VAL                                                 25
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        SEND_VAL                                                 ''
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11        ASSIGN                                                   !1, $4
    6    12        ECHO                                                     !1
    7    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.07 ms | 1394 KiB | 17 Q