3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL | E_STRICT); class Foo{ function construct(StdClass $boo) {}} class Bar extends Foo {function construct(StdClass $boo, array $a){}} (new Bar)->construct(new StdClass, []);
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/ID3VG
function name:  (null)
number of ops:  15
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   INIT_FCALL                                               'error_reporting'
         1        SEND_VAL                                                 32767
         2        DO_ICALL                                                 
   4     3        NOP                                                      
   5     4        NOP                                                      
         5        NOP                                                      
   7     6        NEW                                              $4      :-2
         7        DO_FCALL                                      0          
         8        INIT_METHOD_CALL                                         $4, 'construct'
         9        NEW                                              $6      :2
        10        DO_FCALL                                      0          
        11        SEND_VAR_NO_REF                               0          $6
        12        SEND_VAL_EX                                              <array>
        13        DO_FCALL                                      0          
        14      > RETURN                                                   1

Class Foo:
Function construct:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/ID3VG
function name:  construct
number of ops:  2
compiled vars:  !0 = $boo
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   RECV                                             !0      
         1      > RETURN                                                   null

End of function construct

End of class Foo.

Class Bar:
Function construct:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/ID3VG
function name:  construct
number of ops:  3
compiled vars:  !0 = $boo, !1 = $a
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 Bar.

Generated using Vulcan Logic Dumper, using php 7.2.0