3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Asia/Chongqing'); $time1 = "2006-04-16 08:40:54"; $time2 = strtotime($time1); echo $time2; echo date('Y-m-d h:i:s',$time2)."\n"; echo date('Y',$time2)."\n"; echo date('m',$time2)."\n"; echo date('d',$time2)."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kDHHa
function name:  (null)
number of ops:  34
compiled vars:  !0 = $time1, !1 = $time2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Asia%2FChongqing'
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, '2006-04-16+08%3A40%3A54'
    4     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    5     8        ECHO                                                     !1
    6     9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'Y-m-d+h%3Ai%3As'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $6      
         13        CONCAT                                           ~7      $6, '%0A'
         14        ECHO                                                     ~7
    7    15        INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'Y'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $8      
         19        CONCAT                                           ~9      $8, '%0A'
         20        ECHO                                                     ~9
    8    21        INIT_FCALL                                               'date'
         22        SEND_VAL                                                 'm'
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                         $10     
         25        CONCAT                                           ~11     $10, '%0A'
         26        ECHO                                                     ~11
    9    27        INIT_FCALL                                               'date'
         28        SEND_VAL                                                 'd'
         29        SEND_VAR                                                 !1
         30        DO_ICALL                                         $12     
         31        CONCAT                                           ~13     $12, '%0A'
         32        ECHO                                                     ~13
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.82 ms | 1396 KiB | 19 Q