3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = (new ReflectionClass(DateTime::class))->newInstanceWithoutConstructor(); $d->__unserialize([ 'date' => '1990-01-17 10:28:07', 'timezone_type' => 3, 'timezone' => 'US/Pacific', ]); var_dump($d, $d->format('c'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4poVG
function name:  (null)
number of ops:  17
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        INIT_METHOD_CALL                                         !0, '__unserialize'
    6     7        SEND_VAL_EX                                              <array>
    5     8        DO_FCALL                                      0          
   11     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        INIT_METHOD_CALL                                         !0, 'format'
         12        SEND_VAL_EX                                              'c'
         13        DO_FCALL                                      0  $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.15 ms | 1009 KiB | 14 Q