3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function match(string $a, string $b = '') { } match('a', $v['do']);
based on vdYOe
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: v in /in/Fq58u on line 6 Fatal error: Uncaught TypeError: Argument 2 passed to match() must be of the type string, null given, called in /in/Fq58u on line 6 and defined in /in/Fq58u:2 Stack trace: #0 /in/Fq58u(6): match('a', NULL) #1 {main} thrown in /in/Fq58u on line 2
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Fatal error: Default value for parameters with a class type hint can only be NULL in /in/Fq58u on line 2
Process exited with code 255.