3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo date("Y-m-d H:i:s\n", strtotime('151011')); echo date("Y-m-d H:i:s\n", strtotime('20151011')); echo date("Y-m-d H:i:s\n", '20' . strtotime('151011'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TTj3g
function name:  (null)
number of ops:  26
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'date'
          1        SEND_VAL                                                     'Y-m-d+H%3Ai%3As%0A'
          2        INIT_FCALL                                                   'strtotime'
          3        SEND_VAL                                                     '151011'
          4        DO_ICALL                                             $0      
          5        SEND_VAR                                                     $0
          6        DO_ICALL                                             $1      
          7        ECHO                                                         $1
    4     8        INIT_FCALL                                                   'date'
          9        SEND_VAL                                                     'Y-m-d+H%3Ai%3As%0A'
         10        INIT_FCALL                                                   'strtotime'
         11        SEND_VAL                                                     '20151011'
         12        DO_ICALL                                             $2      
         13        SEND_VAR                                                     $2
         14        DO_ICALL                                             $3      
         15        ECHO                                                         $3
    5    16        INIT_FCALL                                                   'date'
         17        SEND_VAL                                                     'Y-m-d+H%3Ai%3As%0A'
         18        INIT_FCALL                                                   'strtotime'
         19        SEND_VAL                                                     '151011'
         20        DO_ICALL                                             $4      
         21        CONCAT                                               ~5      '20', $4
         22        SEND_VAL                                                     ~5
         23        DO_ICALL                                             $6      
         24        ECHO                                                         $6
         25      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
127.29 ms | 478 KiB | 9 Q