3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php set_error_handler(function(){ echo "Error handler\n"; }); try { fopen('php://temp/maxmemory:-1', 'w+'); } catch (Throwable $e) { echo "Catch\n"; }
based on 5IJmH
Output for 7.1.0 - 7.2.0
Catch
Output for 5.3.18 - 7.0.20
Error handler Error handler