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); //$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/RuJCk
function name:  (null)
number of ops:  15
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
    7    13        ECHO                                                     !1
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.74 ms | 1385 KiB | 15 Q