3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date("Y-m-d h:i:s", strtotime('2014-09-31')); $test = new DateTime('2014-09-31 23:59:59'); echo date_format($test, 'Y-m-d H:i:s');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WEDn5
function name:  (null)
number of ops:  18
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d+h%3Ai%3As'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 '2014-09-31'
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                         $2      
          7        ECHO                                                     $2
    3     8        NEW                                              $3      'DateTime'
          9        SEND_VAL_EX                                              '2014-09-31+23%3A59%3A59'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !0, $3
    4    12        INIT_FCALL                                               'date_format'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         15        DO_ICALL                                         $6      
         16        ECHO                                                     $6
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
208.02 ms | 1386 KiB | 19 Q