3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Madrid'); var_dump(date('Y-m-d H:i:s',strtotime('1959'))); var_dump(date('Y-m-d H:i:s',strtotime('1960'))); var_dump(date('Y-m-d',mktime(0, year: 1959)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9X8pm
function name:  (null)
number of ops:  36
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FMadrid'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          6        INIT_FCALL                                               'strtotime'
          7        SEND_VAL                                                 '1959'
          8        DO_ICALL                                         $1      
          9        SEND_VAR                                                 $1
         10        DO_ICALL                                         $2      
         11        SEND_VAR                                                 $2
         12        DO_ICALL                                                 
    5    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'date'
         15        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         16        INIT_FCALL                                               'strtotime'
         17        SEND_VAL                                                 '1960'
         18        DO_ICALL                                         $4      
         19        SEND_VAR                                                 $4
         20        DO_ICALL                                         $5      
         21        SEND_VAR                                                 $5
         22        DO_ICALL                                                 
    7    23        INIT_FCALL                                               'var_dump'
         24        INIT_FCALL                                               'date'
         25        SEND_VAL                                                 'Y-m-d'
         26        INIT_FCALL                                               'mktime'
         27        SEND_VAL                                                 0
         28        SEND_VAL                                                 1959
         29        CHECK_UNDEF_ARGS                                         
         30        DO_ICALL                                         $7      
         31        SEND_VAR                                                 $7
         32        DO_ICALL                                         $8      
         33        SEND_VAR                                                 $8
         34        DO_ICALL                                                 
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.76 ms | 1003 KiB | 18 Q