3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = '08/2019/19 10:23:41'; echo date('Y-m-d H:i:s', strtotime($date)) . PHP_EOL; echo date_create_from_format('m/Y/d h:i:s', $date)->format('Y-m-d H:i:s');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/g9h5B
function name:  (null)
number of ops:  19
compiled vars:  !0 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '08%2F2019%2F19+10%3A23%3A41'
    4     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          3        INIT_FCALL                                               'strtotime'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                         $3      
          8        CONCAT                                           ~4      $3, '%0A'
          9        ECHO                                                     ~4
    5    10        INIT_FCALL                                               'date_create_from_format'
         11        SEND_VAL                                                 'm%2FY%2Fd+h%3Ai%3As'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $5      
         14        INIT_METHOD_CALL                                         $5, 'format'
         15        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
         16        DO_FCALL                                      0  $6      
         17        ECHO                                                     $6
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169 ms | 1394 KiB | 19 Q