3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function belette($who) { echo "Belette $who!\n"; } class A { } class B { public function __construct($value) { } } new A(belette('A')); new B(belette('B'));
based on d6XWa
Output for 7.1.0 - 7.2.0
Belette A! Belette B!
Output for 5.5.0 - 7.0.20
Belette B!