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'; $new_date = substr($date,0,18).substr($date, 25,28); $new_date = str_replace(".", ":", $new_date); //$newDate = str_replace(substr($date, 18, 25), "", $date); echo $new_date;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sldrs
function name:  (null)
number of ops:  21
compiled vars:  !0 = $date, !1 = $new_date
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                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 18
          5        DO_ICALL                                         $3      
          6        INIT_FCALL                                               'substr'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 25
          9        SEND_VAL                                                 28
         10        DO_ICALL                                         $4      
         11        CONCAT                                           ~5      $3, $4
         12        ASSIGN                                                   !1, ~5
    6    13        INIT_FCALL                                               'str_replace'
         14        SEND_VAL                                                 '.'
         15        SEND_VAL                                                 '%3A'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $7      
         18        ASSIGN                                                   !1, $7
    8    19        ECHO                                                     !1
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.56 ms | 1395 KiB | 17 Q