3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('UTC'); $tz = new DateTimeZone('+2400'); $date = new DateTime("202343-2208-153523", $tz); var_dump($date->format('Y-m-d H:i:s T')); var_export(strtotime("2023-10-04 18:31:43 UTC"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D16rt
function name:  (null)
number of ops:  25
compiled vars:  !0 = $tz, !1 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'UTC'
          2        DO_ICALL                                                 
    4     3        NEW                                              $3      'DateTimeZone'
          4        SEND_VAL_EX                                              '%2B2400'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $3
    5     7        NEW                                              $6      'DateTime'
          8        SEND_VAL_EX                                              '202343-2208-153523'
          9        SEND_VAR_EX                                              !0
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !1, $6
    6    12        INIT_FCALL                                               'var_dump'
         13        INIT_METHOD_CALL                                         !1, 'format'
         14        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As+T'
         15        DO_FCALL                                      0  $9      
         16        SEND_VAR                                                 $9
         17        DO_ICALL                                                 
    7    18        INIT_FCALL                                               'var_export'
         19        INIT_FCALL                                               'strtotime'
         20        SEND_VAL                                                 '2023-10-04+18%3A31%3A43+UTC'
         21        DO_ICALL                                         $11     
         22        SEND_VAR                                                 $11
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.75 ms | 1013 KiB | 17 Q