3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $f = tempnam(sys_get_temp_dir(), 'whatever'); unlink($f); mkdir($f); var_dump(is_dir($f)); file_put_contents("$f/foo", "hi"); var_dump(file_get_contents("$f/foo")); rmdir($f);
based on If394
Output for 7.1.0
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverlX7l1A): Directory not empty in /in/dkXPO on line 9
Output for 7.0.14
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatevermDr3oG): Directory not empty in /in/dkXPO on line 9
Output for 7.0.6
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever9EHJ3t): Directory not empty in /in/dkXPO on line 9
Output for 7.0.5
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverNiWgt2): Directory not empty in /in/dkXPO on line 9
Output for 7.0.4
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatevere7yNgH): Directory not empty in /in/dkXPO on line 9
Output for 7.0.3
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever9i2w0Y): Directory not empty in /in/dkXPO on line 9
Output for 7.0.2
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverzTNWcb): Directory not empty in /in/dkXPO on line 9
Output for 7.0.1
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverYYyUWs): Directory not empty in /in/dkXPO on line 9
Output for 7.0.0
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever3ibGIL): Directory not empty in /in/dkXPO on line 9
Output for hhvm-3.12.0
bool(true) string(2) "hi" Warning: rmdir(): Directory not empty in /in/dkXPO on line 9
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatevermCsCBn): Directory not empty in /in/dkXPO on line 9
Output for 5.6.21
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverjkfeFY): Directory not empty in /in/dkXPO on line 9
Output for 5.6.20
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever1AE31D): Directory not empty in /in/dkXPO on line 9
Output for 5.6.19
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverJppImi): Directory not empty in /in/dkXPO on line 9
Output for 5.6.18
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatevery5cj8I): Directory not empty in /in/dkXPO on line 9
Output for 5.6.17
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverXHm7BE): Directory not empty in /in/dkXPO on line 9
Output for 5.6.16
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverL1JlQE): Directory not empty in /in/dkXPO on line 9
Output for 5.6.15
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever3BV5Dk): Directory not empty in /in/dkXPO on line 9
Output for 5.6.14
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverWjlM2n): Directory not empty in /in/dkXPO on line 9
Output for 5.6.13
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverYvNB4b): Directory not empty in /in/dkXPO on line 9
Output for 5.6.12
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverUI9abV): Directory not empty in /in/dkXPO on line 9
Output for 5.6.11
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever17f19I): Directory not empty in /in/dkXPO on line 9
Output for 5.6.10
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever7yt15O): Directory not empty in /in/dkXPO on line 9
Output for 5.6.9
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverNDhIam): Directory not empty in /in/dkXPO on line 9
Output for 5.6.8
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverpao2RP): Directory not empty in /in/dkXPO on line 9
Output for 5.6.7
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverzSSnqG): Directory not empty in /in/dkXPO on line 9
Output for 5.5.35
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverXRkSDa): Directory not empty in /in/dkXPO on line 9
Output for 5.5.34
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverait4Gp): Directory not empty in /in/dkXPO on line 9
Output for 5.5.33
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatevera24Aiy): Directory not empty in /in/dkXPO on line 9
Output for 5.5.32
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverniY6Br): Directory not empty in /in/dkXPO on line 9
Output for 5.5.31
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever4fap9w): Directory not empty in /in/dkXPO on line 9
Output for 5.5.30
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverHjLpSl): Directory not empty in /in/dkXPO on line 9
Output for 5.5.29
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverSosfRr): Directory not empty in /in/dkXPO on line 9
Output for 5.5.28
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverbiwh6N): Directory not empty in /in/dkXPO on line 9
Output for 5.5.27
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverjqfrU2): Directory not empty in /in/dkXPO on line 9
Output for 5.5.26
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverIfe6kt): Directory not empty in /in/dkXPO on line 9
Output for 5.5.25
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverKT10No): Directory not empty in /in/dkXPO on line 9
Output for 5.5.24
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverdXSy3V): Directory not empty in /in/dkXPO on line 9
Output for 5.4.45
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverJFU6ng): Directory not empty in /in/dkXPO on line 9
Output for 5.4.44
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatevermiUsI5): Directory not empty in /in/dkXPO on line 9
Output for 5.4.43
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatevergg4Mny): Directory not empty in /in/dkXPO on line 9
Output for 5.4.42
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverOera5T): Directory not empty in /in/dkXPO on line 9
Output for 5.4.41
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever9TakXS): Directory not empty in /in/dkXPO on line 9
Output for 5.4.40
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever0zThvp): Directory not empty in /in/dkXPO on line 9
Output for 5.4.39
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatevernHeJdW): Directory not empty in /in/dkXPO on line 9
Output for 5.4.38
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverERa9je): Directory not empty in /in/dkXPO on line 9
Output for 5.4.37
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverJmYItu): Directory not empty in /in/dkXPO on line 9
Output for 5.4.36
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever7SoZfw): Directory not empty in /in/dkXPO on line 9
Output for 5.4.35
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateveryPvTFd): Directory not empty in /in/dkXPO on line 9
Output for 5.4.34
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever5c2mNB): Directory not empty in /in/dkXPO on line 9
Output for 5.4.32
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever5lH36H): Directory not empty in /in/dkXPO on line 9
Output for 5.4.31
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverDk4WRK): Directory not empty in /in/dkXPO on line 9
Output for 5.4.30
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverQDf4xM): Directory not empty in /in/dkXPO on line 9
Output for 5.4.29
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatevervP1lCR): Directory not empty in /in/dkXPO on line 9
Output for 5.4.28
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverrP9OjT): Directory not empty in /in/dkXPO on line 9
Output for 5.4.27
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverdSjAsW): Directory not empty in /in/dkXPO on line 9
Output for 5.4.26
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverIYj4C1): Directory not empty in /in/dkXPO on line 9
Output for 5.4.25
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverWrZag3): Directory not empty in /in/dkXPO on line 9
Output for 5.4.24
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverNzoj25): Directory not empty in /in/dkXPO on line 9
Output for 5.4.23
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverDpOYCa): Directory not empty in /in/dkXPO on line 9
Output for 5.4.22
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverVd4Xwd): Directory not empty in /in/dkXPO on line 9
Output for 5.4.21
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever4rziIj): Directory not empty in /in/dkXPO on line 9
Output for 5.4.20
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateversGyi6j): Directory not empty in /in/dkXPO on line 9
Output for 5.4.19
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverNFNvlq): Directory not empty in /in/dkXPO on line 9
Output for 5.4.18
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverSfNFDt): Directory not empty in /in/dkXPO on line 9
Output for 5.4.17
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverrR2W3t): Directory not empty in /in/dkXPO on line 9
Output for 5.4.16
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverJQRAuA): Directory not empty in /in/dkXPO on line 9
Output for 5.4.15
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverhFzheD): Directory not empty in /in/dkXPO on line 9
Output for 5.4.14
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverEn6AQE): Directory not empty in /in/dkXPO on line 9
Output for 5.4.13
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateveraQMwTJ): Directory not empty in /in/dkXPO on line 9
Output for 5.4.12
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverER9igB): Directory not empty in /in/dkXPO on line 9
Output for 5.4.11
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverIp5akH): Directory not empty in /in/dkXPO on line 9
Output for 5.4.10
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverbj8LfI): Directory not empty in /in/dkXPO on line 9
Output for 5.4.9
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever1fg34K): Directory not empty in /in/dkXPO on line 9
Output for 5.4.8
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverS0eC1Q): Directory not empty in /in/dkXPO on line 9
Output for 5.4.7
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverOhB4NR): Directory not empty in /in/dkXPO on line 9
Output for 5.4.6
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverXn67XX): Directory not empty in /in/dkXPO on line 9
Output for 5.4.5
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverMSbbQ0): Directory not empty in /in/dkXPO on line 9
Output for 5.4.4
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverrhEhr2): Directory not empty in /in/dkXPO on line 9
Output for 5.4.3
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverCcxZ47): Directory not empty in /in/dkXPO on line 9
Output for 5.4.2
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverNTWLDa): Directory not empty in /in/dkXPO on line 9
Output for 5.4.1
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverqb1fCb): Directory not empty in /in/dkXPO on line 9
Output for 5.4.0
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverXlEUSh): Directory not empty in /in/dkXPO on line 9
Output for 5.3.29
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverKdLj7i): Directory not empty in /in/dkXPO on line 9
Output for 5.3.28
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverzWHP0l): Directory not empty in /in/dkXPO on line 9
Output for 5.3.27
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverP2JbWr): Directory not empty in /in/dkXPO on line 9
Output for 5.3.26
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverGnJbJt): Directory not empty in /in/dkXPO on line 9
Output for 5.3.25
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverds5DLy): Directory not empty in /in/dkXPO on line 9
Output for 5.3.24
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverdoi50z): Directory not empty in /in/dkXPO on line 9
Output for 5.3.23
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverYVW3fG): Directory not empty in /in/dkXPO on line 9
Output for 5.3.22
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverdri1EH): Directory not empty in /in/dkXPO on line 9
Output for 5.3.21
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverEOq8sN): Directory not empty in /in/dkXPO on line 9
Output for 5.3.20
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverrqHsNE): Directory not empty in /in/dkXPO on line 9
Output for 5.3.19
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverQR1sEK): Directory not empty in /in/dkXPO on line 9
Output for 5.3.18
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverVTNnoM): Directory not empty in /in/dkXPO on line 9
Output for 5.3.17
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverwD8hvR): Directory not empty in /in/dkXPO on line 9
Output for 5.3.16
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverbHawgT): Directory not empty in /in/dkXPO on line 9
Output for 5.3.15
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever4VYb1V): Directory not empty in /in/dkXPO on line 9
Output for 5.3.14
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverAz5In2): Directory not empty in /in/dkXPO on line 9
Output for 5.3.13
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever3YL9y3): Directory not empty in /in/dkXPO on line 9
Output for 5.3.12
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverZPgAJ9): Directory not empty in /in/dkXPO on line 9
Output for 5.3.11
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverfUf7Va): Directory not empty in /in/dkXPO on line 9
Output for 5.3.10
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverqrJ24f): Directory not empty in /in/dkXPO on line 9
Output for 5.3.9
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverWxJzGh): Directory not empty in /in/dkXPO on line 9
Output for 5.3.8
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverjZ0DAk): Directory not empty in /in/dkXPO on line 9
Output for 5.3.7
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverIC0A5p): Directory not empty in /in/dkXPO on line 9
Output for 5.3.6
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverk7S1Gr): Directory not empty in /in/dkXPO on line 9
Output for 5.3.5
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverrzTluu): Directory not empty in /in/dkXPO on line 9
Output for 5.3.4
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatevercCZsMA): Directory not empty in /in/dkXPO on line 9
Output for 5.3.3
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever6Yck9A): Directory not empty in /in/dkXPO on line 9
Output for 5.3.2
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverXj00sH): Directory not empty in /in/dkXPO on line 9
Output for 5.3.1
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateveruq01xK): Directory not empty in /in/dkXPO on line 9
Output for 5.3.0
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever8gWhXK): Directory not empty in /in/dkXPO on line 9
Output for 5.2.17
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverjFL2kO): Directory not empty in /in/dkXPO on line 9
Output for 5.2.16
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverVu633H): Directory not empty in /in/dkXPO on line 9
Output for 5.2.15
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverjDppdL): Directory not empty in /in/dkXPO on line 9
Output for 5.2.14
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateveriFfEqQ): Directory not empty in /in/dkXPO on line 9
Output for 5.2.13
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverhlGYMS): Directory not empty in /in/dkXPO on line 9
Output for 5.2.12
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverQ9phVV): Directory not empty in /in/dkXPO on line 9
Output for 5.2.11
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverJhAleY): Directory not empty in /in/dkXPO on line 9
Output for 5.2.10
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever8q6qK0): Directory not empty in /in/dkXPO on line 9
Output for 5.2.9
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever1XceP1): Directory not empty in /in/dkXPO on line 9
Output for 5.2.8
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverraxKZ3): Directory not empty in /in/dkXPO on line 9
Output for 5.2.7
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever4tLDo7): Directory not empty in /in/dkXPO on line 9
Output for 5.2.6
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateveria4CA9): Directory not empty in /in/dkXPO on line 9
Output for 5.2.5
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverJ2LqGf): Directory not empty in /in/dkXPO on line 9
Output for 5.2.4
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverGUftRh): Directory not empty in /in/dkXPO on line 9
Output for 5.2.3
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever8cfnUi): Directory not empty in /in/dkXPO on line 9
Output for 5.2.2
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever5M8Orl): Directory not empty in /in/dkXPO on line 9
Output for 5.2.1
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverZijCHn): Directory not empty in /in/dkXPO on line 9
Output for 5.0.0 - 5.2.0
Fatal error: Call to undefined function sys_get_temp_dir() in /in/dkXPO on line 3
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/dkXPO on line 3
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/dkXPO on line 3
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/dkXPO on line 3