3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $file_location=stream_get_meta_data(tmpfile())['uri']; var_dump($file_location, file_exists($file_location));
Output for 7.2.0
string(14) "/tmp/php0M8vw3" bool(false)
Output for 7.1.10
string(14) "/tmp/phpTOvMCJ" bool(false)
Output for 7.1.7
string(14) "/tmp/phpwbmF3l" bool(false)
Output for 7.1.6
string(14) "/tmp/phpqeR6el" bool(false)
Output for 7.1.5
string(14) "/tmp/phpIQUTfG" bool(false)
Output for 7.1.0
string(14) "/tmp/phpmdBb0g" bool(false)
Output for 7.0.20
string(14) "/tmp/php1FIWNw" bool(false)
Output for 7.0.6
string(14) "/tmp/php4FxrVA" bool(false)
Output for 7.0.5
string(14) "/tmp/php6uHP9y" bool(false)
Output for 7.0.4
string(14) "/tmp/phpVHOeN1" bool(false)
Output for 7.0.3
string(14) "/tmp/phphW0iZG" bool(false)
Output for 7.0.2
string(14) "/tmp/phpKZEVGV" bool(false)
Output for 7.0.1
string(14) "/tmp/phpseOePw" bool(false)
Output for 7.0.0
string(14) "/tmp/phpFWsmqK" bool(false)
Output for 5.6.28
string(14) "/tmp/phpzqQ6pJ" bool(false)
Output for 5.6.21
string(14) "/tmp/php4IRgcP" bool(false)
Output for 5.6.20
string(14) "/tmp/phpPWPgvr" bool(false)
Output for 5.6.19
string(14) "/tmp/phpZ67dzK" bool(false)
Output for 5.6.18
string(14) "/tmp/phpxjbcKB" bool(false)
Output for 5.6.17
string(14) "/tmp/phpscnK3o" bool(false)
Output for 5.6.16
string(14) "/tmp/phpeGJp2w" bool(false)
Output for 5.6.15
string(14) "/tmp/phpLgTTes" bool(false)
Output for 5.6.14
string(14) "/tmp/php2yafIr" bool(false)
Output for 5.6.13
string(14) "/tmp/phpbw0VQb" bool(false)
Output for 5.6.12
string(14) "/tmp/phpPGNrKo" bool(false)
Output for 5.6.11
string(14) "/tmp/phpH94m1O" bool(false)
Output for 5.6.10
string(14) "/tmp/phphc4oZy" bool(false)
Output for 5.6.9
string(14) "/tmp/phpKnRy4e" bool(false)
Output for 5.6.8
string(14) "/tmp/phpgkhisR" bool(false)
Output for 5.5.35
string(14) "/tmp/phpd28Sd6" bool(false)
Output for 5.5.34
string(14) "/tmp/phpO99lIJ" bool(false)
Output for 5.5.33
string(14) "/tmp/php27Ckp6" bool(false)
Output for 5.5.32
string(14) "/tmp/phpv4rbHm" bool(false)
Output for 5.5.31
string(14) "/tmp/phpDxW6Qa" bool(false)
Output for 5.5.30
string(14) "/tmp/php7ZRK8R" bool(false)
Output for 5.5.29
string(14) "/tmp/phpt0bh7M" bool(false)
Output for 5.5.28
string(14) "/tmp/phpZH9fih" bool(false)
Output for 5.5.27
string(14) "/tmp/phptU9OWQ" bool(false)
Output for 5.5.26
string(14) "/tmp/phpDSWLLm" bool(false)
Output for 5.5.25
string(14) "/tmp/phpk0xSnf" bool(false)
Output for 5.5.24
string(14) "/tmp/phplTqumi" bool(false)
Output for 5.4.45
string(14) "/tmp/phpj5XDhJ" bool(false)
Output for 5.4.44
string(14) "/tmp/php6Kn01C" bool(false)
Output for 5.4.43
string(14) "/tmp/phpuezise" bool(false)
Output for 5.4.42
string(14) "/tmp/phpgX285w" bool(false)
Output for 5.4.41
string(14) "/tmp/phpxX9YdX" bool(false)
Output for 5.4.40
string(14) "/tmp/phptpakno" bool(false)
Output for 5.4.39
string(14) "/tmp/phpjDizAi" bool(false)
Output for 5.4.38
string(14) "/tmp/phpoZ3rsJ" bool(false)
Output for 5.4.37
string(14) "/tmp/phpW1HVw5" bool(false)
Output for 5.4.36
string(14) "/tmp/php34YKcz" bool(false)
Output for 5.4.35
string(14) "/tmp/phpSDFLGZ" bool(false)
Output for 5.4.34
string(14) "/tmp/phpIUO0ix" bool(false)
Output for 5.4.32
string(14) "/tmp/phpWN9xxX" bool(false)
Output for 5.4.31
string(14) "/tmp/php1nTpvd" bool(false)
Output for 5.4.30
string(14) "/tmp/php79oFTB" bool(false)
Output for 5.4.29
string(14) "/tmp/phpALlA7H" bool(false)
Output for 5.4.28
string(14) "/tmp/phpZ4b6rX" bool(false)
Output for 5.4.27
string(14) "/tmp/phpqaaekZ" bool(false)
Output for 5.4.26
string(14) "/tmp/phpehR9Ue" bool(false)
Output for 5.4.25
string(14) "/tmp/phpnBNbZD" bool(false)
Output for 5.4.24
string(14) "/tmp/php4HL2E1" bool(false)
Output for 5.4.23
string(14) "/tmp/phpI9MsRW" bool(false)
Output for 5.4.22
string(14) "/tmp/phpk77Kju" bool(false)
Output for 5.4.21
string(14) "/tmp/phpHzltBA" bool(false)
Output for 5.4.20
string(14) "/tmp/phpkbJSrM" bool(false)
Output for 5.4.19
string(14) "/tmp/phpAzjQp0" bool(false)
Output for 5.4.18
string(14) "/tmp/phpuxx2Fg" bool(false)
Output for 5.4.17
string(14) "/tmp/phpNJjwSL" bool(false)
Output for 5.4.16
string(14) "/tmp/phporxk6Y" bool(false)
Output for 5.4.15
string(14) "/tmp/phpjmleGg" bool(false)
Output for 5.4.14
string(14) "/tmp/phpkArTFr" bool(false)
Output for 5.4.13
string(14) "/tmp/php42johI" bool(false)
Output for 5.4.12
string(14) "/tmp/phpGFwmqU" bool(false)
Output for 5.4.11
string(14) "/tmp/phpMnUbAa" bool(false)
Output for 5.4.10
string(14) "/tmp/phpKpqbEj" bool(false)
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/j2AhO on line 3
Process exited with code 255.