3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = (new ReflectionClass(DateTime::class))->newInstanceWithoutConstructor(); $d->date = '1990-01-17 10:28:07'; $d->timezone_type = 3; $d->timezone = 'US/Pacific'; $d = unserialize(serialize($d)); var_dump($d->format('c'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DROXa
function name:  (null)
number of ops:  26
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'ReflectionClass'
          1        SEND_VAL_EX                                              'DateTime'
          2        DO_FCALL                                      0          
          3        INIT_METHOD_CALL                                         $1, 'newInstanceWithoutConstructor'
          4        DO_FCALL                                      0  $3      
          5        ASSIGN                                                   !0, $3
    5     6        ASSIGN_OBJ                                               !0, 'date'
          7        OP_DATA                                                  '1990-01-17+10%3A28%3A07'
    6     8        ASSIGN_OBJ                                               !0, 'timezone_type'
          9        OP_DATA                                                  3
    7    10        ASSIGN_OBJ                                               !0, 'timezone'
         11        OP_DATA                                                  'US%2FPacific'
    9    12        INIT_FCALL                                               'unserialize'
         13        INIT_FCALL                                               'serialize'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $8      
         16        SEND_VAR                                                 $8
         17        DO_ICALL                                         $9      
         18        ASSIGN                                                   !0, $9
   11    19        INIT_FCALL                                               'var_dump'
         20        INIT_METHOD_CALL                                         !0, 'format'
         21        SEND_VAL_EX                                              'c'
         22        DO_FCALL                                      0  $11     
         23        SEND_VAR                                                 $11
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.63 ms | 1000 KiB | 16 Q