3v4l.org

run code in 500+ PHP versions simultaneously
<?php $o = function () {}; var_dump($o); // just for visual compare var_dump((array) $o); // <-- the issue $o = new \DateTime('2013-02-20 20:00:12 UTC'); var_dump($o); var_dump((array) $o);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fQ0ep
function name:  (null)
number of ops:  21
compiled vars:  !0 = $o
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                              ~1      [0]
          1        ASSIGN                                                       !0, ~1
    4     2        INIT_FCALL                                                   'var_dump'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                                     
    5     5        INIT_FCALL                                                   'var_dump'
          6        CAST                                              7  ~4      !0
          7        SEND_VAL                                                     ~4
          8        DO_ICALL                                                     
    7     9        NEW                                                  $6      'DateTime'
         10        SEND_VAL_EX                                                  '2013-02-20+20%3A00%3A12+UTC'
         11        DO_FCALL                                          0          
         12        ASSIGN                                                       !0, $6
    8    13        INIT_FCALL                                                   'var_dump'
         14        SEND_VAR                                                     !0
         15        DO_ICALL                                                     
    9    16        INIT_FCALL                                                   'var_dump'
         17        CAST                                              7  ~10     !0
         18        SEND_VAL                                                     ~10
         19        DO_ICALL                                                     
         20      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fQ0ep
function name:  {closure:/in/fQ0ep:3}
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.82 ms | 1480 KiB | 14 Q