3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $file = sys_get_temp_dir().'/test'; echo $file; touch($file); var_dump(file_exists($file));
Output for 5.2.1 - 7.3.0rc4
/tmp/testbool(true)
Output for 5.0.0 - 5.2.0
Fatal error: Call to undefined function sys_get_temp_dir() in /in/Ckb0V 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/Ckb0V 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/Ckb0V 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/Ckb0V on line 2