3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = new DateTime; $a = (array) $test; var_dump($test::__set_state($a));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JYmdM
function name:  (null)
number of ops:  13
compiled vars:  !0 = $test, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    5     3        CAST                                          7  ~5      !0
          4        ASSIGN                                                   !1, ~5
    7     5        INIT_FCALL                                               'var_dump'
          6        FETCH_CLASS                                   0  $7      !0
          7        INIT_STATIC_METHOD_CALL                                  $7, '__set_state'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0  $8      
         10        SEND_VAR                                                 $8
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.1 ms | 1394 KiB | 15 Q