3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function bar(array $baz = null); } class Hello implements Foo { public function bar(array $baz = []) { } }

Looking for PHP 7.0.6 bugs?

Version 7.0.6 was released twice by the PHP Team. We're using the latest version;
meaning this script no longer shows the bug which the original release had.

The bugs that were fixed in the second release are 72116 and 72119.

Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VhEtd
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'hello'
   12     1      > RETURN                                                   1

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VhEtd
function name:  bar
number of ops:  2
compiled vars:  !0 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV_INIT                                        !0      null
          1      > RETURN                                                   null

End of function bar

End of class Foo.

Class Hello:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VhEtd
function name:  bar
number of ops:  2
compiled vars:  !0 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV_INIT                                        !0      <array>
   11     1      > RETURN                                                   null

End of function bar

End of class Hello.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.33 ms | 1393 KiB | 13 Q