3v4l.org

run code in 500+ PHP versions simultaneously
<?php $date = new \DateTime('2014-01-01T20:00:00+00:00'); print $date->format('c') . PHP_EOL; print $date->format('r') . PHP_EOL; print $date->getTimeZone()->getName() . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jctWg
function name:  (null)
number of ops:  21
compiled vars:  !0 = $date
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $1      'DateTime'
          1        SEND_VAL_EX                                                  '2014-01-01T20%3A00%3A00%2B00%3A00'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $1
    4     4        INIT_METHOD_CALL                                             !0, 'format'
          5        SEND_VAL_EX                                                  'c'
          6        DO_FCALL                                          0  $4      
          7        CONCAT                                               ~5      $4, '%0A'
          8        ECHO                                                         ~5
    5     9        INIT_METHOD_CALL                                             !0, 'format'
         10        SEND_VAL_EX                                                  'r'
         11        DO_FCALL                                          0  $6      
         12        CONCAT                                               ~7      $6, '%0A'
         13        ECHO                                                         ~7
    6    14        INIT_METHOD_CALL                                             !0, 'getTimeZone'
         15        DO_FCALL                                          0  $8      
         16        INIT_METHOD_CALL                                             $8, 'getName'
         17        DO_FCALL                                          0  $9      
         18        CONCAT                                               ~10     $9, '%0A'
         19        ECHO                                                         ~10
    7    20      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.64 ms | 2091 KiB | 13 Q