3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test($x){ $x += array( 'first' => 'a', 'second' => 'y', 'thrid' => 'z' ); echo $x; } test('ori');
based on 6j44M
Output for 7.1.0 - 7.2.0
Warning: A non-numeric value encountered in /in/UBB2K on line 5 Fatal error: Uncaught Error: Unsupported operand types in /in/UBB2K:5 Stack trace: #0 /in/UBB2K(11): test(0) #1 {main} thrown in /in/UBB2K on line 5
Process exited with code 255.
Output for 7.0.0 - 7.0.20
Fatal error: Uncaught Error: Unsupported operand types in /in/UBB2K:5 Stack trace: #0 /in/UBB2K(11): test(0) #1 {main} thrown in /in/UBB2K on line 5
Process exited with code 255.
Output for 5.3.22 - 5.6.28
Fatal error: Unsupported operand types in /in/UBB2K on line 8
Process exited with code 255.