3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = '12:33'; var_dump(date('Y-m-d H:i:s', strtotime($n))); $dt = new DateTime($n); var_dump($dt->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/3TJkj
function name:  (null)
number of ops:  22
compiled vars:  !0 = $n, !1 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '12%3A33'
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'date'
          3        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          4        INIT_FCALL                                               'strtotime'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
         10        DO_ICALL                                                 
    4    11        NEW                                              $6      'DateTime'
         12        SEND_VAR_EX                                              !0
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !1, $6
    5    15        INIT_FCALL                                               'var_dump'
         16        INIT_METHOD_CALL                                         !1, 'format'
         17        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
         18        DO_FCALL                                      0  $9      
         19        SEND_VAR                                                 $9
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.84 ms | 1395 KiB | 19 Q