run code in 200+ php & hhvm versions
Bugs & Features
<?php $stdObject = new StdClass; set_error_handler(function (int $severity, string $message, string $filename, int $line) { echo "Error Handled"; }); array_diff([$stdObject], [$stdObject]);
based on Pfj29
Output for hhvm-3.15.4, 7.0.0 - 7.3.0alpha1
Error HandledError Handled
Output for 5.6.0 - 5.6.30
Catchable fatal error: Argument 1 passed to {closure}() must be an instance of int, integer given in /in/H5e1E on line 3
Process exited with code 255.