3v4l.org

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