3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fx = (array) (static fn () => true); $refl = (array) (new \ReflectionClass(new \DateTime())); print_r($fx); print_r($refl);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rBXM3
function name:  (null)
number of ops:  17
compiled vars:  !0 = $fx, !1 = $refl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                          ~2      [0]
          1        CAST                                          7  ~3      ~2
          2        ASSIGN                                                   !0, ~3
    5     3        NEW                                              $5      'ReflectionClass'
          4        NEW                                              $6      'DateTime'
          5        DO_FCALL                                      0          
          6        SEND_VAR_NO_REF_EX                                       $6
          7        DO_FCALL                                      0          
          8        CAST                                          7  ~9      $5
          9        ASSIGN                                                   !1, ~9
    7    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
    8    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > 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/rBXM3
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   <true>
          1*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.22 ms | 1004 KiB | 14 Q