3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A{ public $name; } $c = new A(); $c->name = 'A'; $a = new A(); $a->name = 'C'; function a($a, $c){ return var_dump($a == $c); } echo a();
based on 4n0hT
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function a(), 0 passed in /in/IBHIa on line 17 and exactly 2 expected in /in/IBHIa:14 Stack trace: #0 /in/IBHIa(17): a() #1 {main} thrown in /in/IBHIa on line 14
Process exited with code 255.
Output for 7.0.0 - 7.0.20
Warning: Missing argument 1 for a(), called in /in/IBHIa on line 17 and defined in /in/IBHIa on line 14 Warning: Missing argument 2 for a(), called in /in/IBHIa on line 17 and defined in /in/IBHIa on line 14 Notice: Undefined variable: a in /in/IBHIa on line 15 Notice: Undefined variable: c in /in/IBHIa on line 15 bool(true)
Output for 5.3.18 - 5.6.28
Warning: Missing argument 1 for a(), called in /in/IBHIa on line 17 and defined in /in/IBHIa on line 14 Warning: Missing argument 2 for a(), called in /in/IBHIa on line 17 and defined in /in/IBHIa on line 14 Notice: Undefined variable: c in /in/IBHIa on line 15 Notice: Undefined variable: a in /in/IBHIa on line 15 bool(true)