3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { fopen('php://temp/maxmemory:-1', 'w+'); } catch (Throwable $e) { echo "Catch\n"; }
based on NANL4
Output for 7.1.0 - 7.2.0
Warning: fopen(php://temp/maxmemory:-1): failed to open stream: operation failed in /in/2IXCS on line 5 Catch
Output for 5.3.18 - 7.0.20
Catchable fatal error: fopen(): Max memory must be >= 0 in /in/2IXCS on line 5
Process exited with code 255.