3v4l.org

run code in 200+ PHP versions simultaneously
<?php function createTempDir() { $separator = DIRECTORY_SEPARATOR; $path = rtrim(sys_get_temp_dir(), $separator) . $separator . mt_rand() . microtime(TRUE); $createdTempDir = mkdir($path); if ($createdTempDir) return $path; return FALSE; } var_dump(createTempDir());
Output for 7.1.11, 7.1.19, 7.4.1
string(29) "/tmp/8827725621536083806.0002"
Output for 7.2.0, 7.4.0
string(30) "/tmp/16676297961536083806.0002"
Output for 7.1.21, 7.3.13
string(30) "/tmp/20406607411536083806.0002"
Output for 7.3.12
string(30) "/tmp/15673550331536083806.0002"
Output for 7.3.11
string(30) "/tmp/18329195461536083806.0002"
Output for 7.3.10
string(29) "/tmp/6363543111536083806.0002"
Output for 7.3.9
string(30) "/tmp/18705071551536083806.0002"
Output for 7.3.8
string(29) "/tmp/2973265531536083806.0002"
Output for 7.3.7
string(30) "/tmp/20377423111536083806.0001"
Output for 7.3.6
string(30) "/tmp/18382422481536083806.0003"
Output for 7.3.5
string(28) "/tmp/855175561536083806.0003"
Output for 7.3.4
string(30) "/tmp/17777685131536083806.0003"
Output for 7.3.3
string(28) "/tmp/106461821536083806.0002"
Output for 7.3.2
string(30) "/tmp/16329763121536083806.0001"
Output for 7.3.1
string(30) "/tmp/15988913231536083807.0001"
Output for 7.3.0
string(30) "/tmp/14142736741536083806.0001"
Output for 7.2.26
string(30) "/tmp/10755874971536083806.0002"
Output for 7.2.25
string(29) "/tmp/8222395421536083806.0002"
Output for 7.2.24
string(29) "/tmp/4494432521536083806.0001"
Output for 7.2.23
string(30) "/tmp/11999507981536083806.0002"
Output for 7.2.22
string(30) "/tmp/20799438331536083806.0001"
Output for 7.1.1, 7.2.1, 7.2.5, 7.2.21
string(30) "/tmp/15082280721536083806.0001"
Output for 7.2.20
string(30) "/tmp/11248287101536083806.0002"
Output for 7.2.19
string(30) "/tmp/16451479111536083806.0002"
Output for 7.2.18
string(30) "/tmp/16086118261536083806.0003"
Output for 7.2.17
string(30) "/tmp/19844150861536083806.0001"
Output for 7.2.16
string(29) "/tmp/5597492911536083806.0002"
Output for 7.2.15
string(30) "/tmp/15287238661536083806.0002"
Output for 7.2.14
string(29) "/tmp/4321768841536083807.0001"
Output for 7.2.13
string(30) "/tmp/14725425701536083806.0001"
Output for 7.2.12
string(30) "/tmp/17493987601536083806.0002"
Output for 7.2.11
string(30) "/tmp/17667649201536083806.0002"
Output for 7.2.10
string(29) "/tmp/8395398961536083806.0001"
Output for 7.2.9
string(29) "/tmp/5985033211536083806.0001"
Output for 7.2.8
string(29) "/tmp/6322034271536083806.0001"
Output for 7.2.7
string(29) "/tmp/5666256901536083806.0001"
Output for 7.1.27, 7.2.6
string(29) "/tmp/5772937481536083806.0001"
Output for 7.2.4
string(30) "/tmp/13491807701536083806.0002"
Output for 7.2.3
string(29) "/tmp/8362522321536083806.0002"
Output for 7.1.3, 7.1.17, 7.2.2
string(29) "/tmp/3964850561536083806.0001"
Output for 7.1.33
string(29) "/tmp/4624977521536083806.0001"
Output for 7.1.32
string(30) "/tmp/12670333431536083806.0001"
Output for 7.1.31
string(30) "/tmp/19248180321536083806.0001"
Output for 7.1.24, 7.1.30
string(29) "/tmp/9430128251536083806.0002"
Output for 7.1.29
string(29) "/tmp/6130357511536083806.0002"
Output for 7.1.20, 7.1.28
string(30) "/tmp/21471342041536083806.0002"
Output for 7.1.26
string(29) "/tmp/6685388491536083806.0001"
Output for 7.1.25
string(29) "/tmp/8142401391536083806.0002"
Output for 7.1.23
string(29) "/tmp/1003622011536083806.0001"
Output for 7.1.22
string(30) "/tmp/21047828721536083806.0002"
Output for 7.1.18
string(29) "/tmp/8077242181536083806.0001"
Output for 7.1.10, 7.1.16
string(29) "/tmp/8836813121536083806.0001"
Output for 7.1.15
string(30) "/tmp/11313564671536083806.0002"
Output for 7.1.14
string(30) "/tmp/18763116861536083806.0002"
Output for 7.1.13
string(29) "/tmp/4736796121536083806.0002"
Output for 7.1.4, 7.1.12
string(30) "/tmp/19711828631536083806.0001"
Output for 7.1.9
string(30) "/tmp/10141420721536083806.0002"
Output for 7.1.8
string(29) "/tmp/3668889401536083806.0001"
Output for 7.1.7
string(30) "/tmp/19523747481536083806.0002"
Output for 7.1.6
string(29) "/tmp/1208158681536083806.0001"
Output for 7.1.5
string(29) "/tmp/6548783271536083806.0001"
Output for 7.1.2
string(29) "/tmp/6532538081536083806.0001"
Output for 7.1.0
string(29) "/tmp/3127523631536083806.0002"
Output for 7.0.33
string(29) "/tmp/3374429991536083806.0002"
Output for 5.6.30, 7.0.22, 7.0.32
string(30) "/tmp/14860212711536083806.0001"
Output for 7.0.31
string(29) "/tmp/5725240151536083806.0002"
Output for 7.0.29 - 7.0.30
string(30) "/tmp/15863605561536083806.0001"
Output for 7.0.28
string(30) "/tmp/12809589281536083806.0001"
Output for 7.0.27
string(30) "/tmp/18654577631536083806.0002"
Output for 7.0.26
string(29) "/tmp/1713214651536083806.0001"
Output for 7.0.25
string(29) "/tmp/9112179161536083806.0002"
Output for 7.0.24
string(29) "/tmp/2149054311536083806.0001"
Output for 5.6.2, 7.0.23
string(29) "/tmp/2787768161536083806.0002"
Output for 7.0.21
string(29) "/tmp/5053339661536083806.0001"
Output for 5.6.24, 5.6.31, 7.0.20
string(30) "/tmp/18037790681536083806.0001"
Output for 7.0.12, 7.0.19
string(29) "/tmp/8859529051536083806.0001"
Output for 7.0.18
string(29) "/tmp/6183329721536083806.0002"
Output for 7.0.17
string(29) "/tmp/6494942871536083806.0002"
Output for 7.0.16
string(28) "/tmp/486750201536083806.0002"
Output for 7.0.15
string(30) "/tmp/15249812051536083806.0001"
Output for 7.0.14
string(28) "/tmp/596015301536083806.0001"
Output for 5.6.5, 7.0.5, 7.0.13
string(29) "/tmp/8489633351536083806.0001"
Output for 7.0.11
string(29) "/tmp/5312005861536083806.0002"
Output for 7.0.10
string(29) "/tmp/7974039651536083806.0002"
Output for 7.0.9
string(29) "/tmp/6489575981536083806.0001"
Output for 7.0.8
string(30) "/tmp/10108567841536083806.0002"
Output for 7.0.7
string(29) "/tmp/3778959871536083806.0002"
Output for 7.0.6
string(28) "/tmp/850781431536083806.0002"
Output for 7.0.4
string(30) "/tmp/20572291531536083806.0002"
Output for 7.0.3
string(29) "/tmp/7328470931536083806.0003"
Output for 7.0.2
string(30) "/tmp/14414915851536083806.0001"
Output for 5.6.3, 5.6.28, 7.0.1
string(29) "/tmp/5680306021536083806.0002"
Output for 7.0.0
string(29) "/tmp/9530405681536083806.0002"
Output for 5.6.40
string(29) "/tmp/7159531481536083806.0002"
Output for 5.6.39
string(30) "/tmp/18985717101536083806.0001"
Output for 5.6.38
string(30) "/tmp/21460110881536083806.0002"
Output for 5.6.37
string(29) "/tmp/3286378631536083806.0001"
Output for 5.6.36
string(30) "/tmp/10962753451536083806.0001"
Output for 5.6.35
string(30) "/tmp/13541980791536083806.0002"
Output for 5.6.34
string(30) "/tmp/10088515471536083806.0002"
Output for 5.6.33
string(30) "/tmp/12356055441536083806.0002"
Output for 5.6.32
string(29) "/tmp/9129610781536083806.0002"
Output for 5.6.29
string(30) "/tmp/16812983831536083806.0002"
Output for 5.6.9, 5.6.27
string(30) "/tmp/20583922391536083806.0001"
Output for 5.6.26
string(30) "/tmp/13326791161536083806.0001"
Output for 5.6.25
string(29) "/tmp/6804444441536083806.0001"
Output for 5.6.1, 5.6.23
string(29) "/tmp/2047508441536083806.0001"
Output for 5.6.22
string(30) "/tmp/12974852121536083806.0002"
Output for 5.6.21
string(28) "/tmp/881520561536083806.0002"
Output for 5.6.20
string(30) "/tmp/10122010411536083806.0002"
Output for 5.6.19
string(30) "/tmp/16104983191536083806.0002"
Output for 5.6.18
string(28) "/tmp/116243301536083806.0002"
Output for 5.6.17
string(30) "/tmp/16264946011536083806.0001"
Output for 5.6.16
string(30) "/tmp/15208310891536083806.0002"
Output for 5.6.15
string(27) "/tmp/91910651536083806.0001"
Output for 5.6.14
string(30) "/tmp/16920623821536083806.0001"
Output for 5.6.13
string(30) "/tmp/16984615271536083806.0002"
Output for 5.6.12
string(29) "/tmp/1159962751536083806.0002"
Output for 5.6.11
string(30) "/tmp/10087294191536083806.0001"
Output for 5.6.10
string(28) "/tmp/852450041536083806.0002"
Output for 5.6.8
string(30) "/tmp/12729787741536083806.0001"
Output for 5.6.7
string(29) "/tmp/2339351101536083806.0002"
Output for 5.6.6
string(30) "/tmp/16801605321536083806.0002"
Output for 5.6.4
string(30) "/tmp/18267112841536083806.0002"
Output for 5.6.0
string(28) "/tmp/374582251536083806.0001"