3v4l.org

run code in 300+ PHP versions simultaneously
<?php function derp(\DateTime $a, \DateTime $b, \DateTime $c = null) { var_dump($a, $b); } derp(new \DateTime(), null, new \DateTime());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k4iei
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'derp'
          1        NEW                                              $0      'DateTime'
          2        DO_FCALL                                      0          
          3        SEND_VAR                                                 $0
          4        SEND_VAL                                                 null
          5        NEW                                              $2      'DateTime'
          6        DO_FCALL                                      0          
          7        SEND_VAR                                                 $2
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function derp:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k4iei
function name:  derp
number of ops:  8
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV_INIT                                        !2      null
    4     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                                 
    5     7      > RETURN                                                   null

End of function derp

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.83 ms | 1402 KiB | 16 Q