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 int(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/58ibn
function name:  (null)
number of ops:  37
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_BY_NAME                                       'int'
         22        INIT_FCALL                                               'date'
         23        SEND_VAL                                                 'm'
         24        SEND_VAR                                                 !1
         25        DO_ICALL                                         $10     
         26        SEND_VAR_NO_REF_EX                                       $10
         27        DO_FCALL                                      0  $11     
         28        CONCAT                                           ~12     $11, '%0A'
         29        ECHO                                                     ~12
    9    30        INIT_FCALL                                               'date'
         31        SEND_VAL                                                 'd'
         32        SEND_VAR                                                 !1
         33        DO_ICALL                                         $13     
         34        CONCAT                                           ~14     $13, '%0A'
         35        ECHO                                                     ~14
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.41 ms | 1396 KiB | 19 Q