3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime("1809-02-12 10:30", new DateTimeZone("America/New_York")); print timezone_version_get() . ': ' . $date->format('c');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lo0Ya
function name:  (null)
number of ops:  17
compiled vars:  !0 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'DateTime'
          1        SEND_VAL_EX                                              '1809-02-12+10%3A30'
          2        NEW                                              $2      'DateTimeZone'
          3        SEND_VAL_EX                                              'America%2FNew_York'
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $2
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $1
    4     8        INIT_FCALL                                               'timezone_version_get'
          9        DO_ICALL                                         $6      
         10        CONCAT                                           ~7      $6, '%3A+'
         11        INIT_METHOD_CALL                                         !0, 'format'
         12        SEND_VAL_EX                                              'c'
         13        DO_FCALL                                      0  $8      
         14        CONCAT                                           ~9      ~7, $8
         15        ECHO                                                     ~9
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.68 ms | 1004 KiB | 15 Q