3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $f = fopen(tempnam(sys_get_Temp_dir(), 'gg'), 'w'); fwrite(6, 'bla', -5);
based on cFolD
Output for 5.3.0 - 7.2.0
Warning: fwrite() expects parameter 1 to be resource, integer given in /in/dNKaM on line 3
Output for 5.2.1 - 5.2.17
Output for 5.0.0 - 5.2.0
Fatal error: Call to undefined function sys_get_Temp_dir() in /in/dNKaM on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: sys_get_temp_dir() in /in/dNKaM on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: sys_get_temp_dir() in /in/dNKaM on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: sys_get_temp_dir() in /in/dNKaM on line 2