3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo extends DateTime { } var_dump(get_class(Foo::__set_state([ 'date' => '1970-01-01 00:00:00.000000', 'timezone_type' => 1, 'timezone' => '+00:00', ])));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eWcTv
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_STATIC_METHOD_CALL                                  'Foo', '__set_state'
    8     2        SEND_VAL                                                 <array>
    7     3        DO_FCALL                                      0  $0      
    8     4        GET_CLASS                                        ~1      $0
          5        SEND_VAL                                                 ~1
    7     6        DO_ICALL                                                 
   11     7      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.89 ms | 1008 KiB | 14 Q