3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (date("Y-m-d", strtotime("12/31/2013"))); $date = new DateTime(date("Y-m-d", strtotime("12/31/2013"))); echo $date->format('Y-m-d H:i:sP') . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KnRTV
function name:  (null)
number of ops:  25
compiled vars:  !0 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 '12%2F31%2F2013'
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                         $2      
          7        ECHO                                                     $2
    4     8        NEW                                              $3      'DateTime'
          9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'Y-m-d'
         11        INIT_FCALL                                               'strtotime'
         12        SEND_VAL                                                 '12%2F31%2F2013'
         13        DO_ICALL                                         $4      
         14        SEND_VAR                                                 $4
         15        DO_ICALL                                         $5      
         16        SEND_VAR_NO_REF_EX                                       $5
         17        DO_FCALL                                      0          
         18        ASSIGN                                                   !0, $3
    5    19        INIT_METHOD_CALL                                         !0, 'format'
         20        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3AsP'
         21        DO_FCALL                                      0  $8      
         22        CONCAT                                           ~9      $8, '%0A'
         23        ECHO                                                     ~9
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.47 ms | 1395 KiB | 17 Q