3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php mkdir('/tmp/fooBarBaz'); var_dump(realpath('/tmp/foobarbaz')); var_dump(realpath('/tmp/fooBarBaz'));
Output for 4.3.0, 5.3.29, 5.4.32 - 5.5.24, 5.5.29, 5.5.32, 5.5.35, 5.6.10, 5.6.12 - 5.6.13, 5.6.18 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.0.2, 7.0.4 - 7.0.5, 7.0.14 - 7.1.0
bool(false) string(14) "/tmp/fooBarBaz"
Output for 5.0.0 - 5.3.28, 5.4.0 - 5.4.31, 5.5.25 - 5.5.28, 5.5.30 - 5.5.31, 5.5.33 - 5.5.34, 5.6.8 - 5.6.9, 5.6.11, 5.6.14 - 5.6.17, 7.0.3, 7.0.6
Warning: mkdir(): File exists in /in/D1HQE on line 2 bool(false) string(14) "/tmp/fooBarBaz"
Output for hhvm-3.10.0
Warning: mkdir(): File exists in /in/D1HQE on line 9 bool(false) string(14) "/tmp/fooBarBaz"
Output for 4.3.2 - 4.4.9
Warning: mkdir(/tmp/fooBarBaz): File exists in /in/D1HQE on line 2 bool(false) string(14) "/tmp/fooBarBaz"
Output for 4.3.1
Warning: mkdir(/tmp/fooBarBaz) [http://www.php.net/function.mkdir]: File exists in /in/D1HQE on line 2 bool(false) string(14) "/tmp/fooBarBaz"