3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a1 = array('5'); $a2 = array('3'); var_dump(array_diff($a1, $a2)); var_dump($a1-$a2);
based on eqmpR
Output for 7.0.0 - 7.1.0
array(1) { [0]=> string(1) "5" } Fatal error: Uncaught Error: Unsupported operand types in /in/8bNAF:5 Stack trace: #0 {main} thrown in /in/8bNAF on line 5
Process exited with code 255.
Output for 4.3.2 - 5.6.28
array(1) { [0]=> string(1) "5" } Fatal error: Unsupported operand types in /in/8bNAF on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
array(1) { [0]=> string(1) "5" } Fatal error: Unsupported operand types in /in/8bNAF on line 5