3v4l.org

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

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

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.38 ms | 1397 KiB | 17 Q