3v4l.org

run code in 300+ PHP versions simultaneously
<?php class OptionalParameter { public function __construct(?stdClass $a = null, stdClass $b) {} } $param = new OptionalParameter(null, new stdClass());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n4leq
function name:  (null)
number of ops:  8
compiled vars:  !0 = $param
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'OptionalParameter'
          1        SEND_VAL_EX                                              null
          2        NEW                                              $2      'stdClass'
          3        DO_FCALL                                      0          
          4        SEND_VAR_NO_REF_EX                                       $2
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $1
          7      > RETURN                                                   1

Class OptionalParameter:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n4leq
function name:  __construct
number of ops:  3
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2      > RETURN                                                   null

End of function __construct

End of class OptionalParameter.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
243.63 ms | 998 KiB | 13 Q