3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php set_time_limit(5); $startTime = microtime(true); while (true) { $newTime = microtime(true); if(($newTime + 60) >= $startTime) { break; } } echo 'Total execution time in seconds: ' . (microtime(true) - $startTime);
based on a7ruC
Output for 5.4.45, 5.6.19, 7.0.0 - 7.0.3, 7.0.6, 7.1.0
Total execution time in seconds: 9.5367431640625E-7
Output for 5.5.25 - 5.5.26, 5.5.28, 5.5.32 - 5.5.33, 5.6.9 - 5.6.10, 5.6.15 - 5.6.18, 5.6.28, 7.0.4, 7.0.14
Total execution time in seconds: 1.9073486328125E-6
Output for 7.0.5
Total execution time in seconds: 0
Output for hhvm-3.12.0
Total execution time in seconds: 1.3113021850586E-5
Output for 5.3.23 - 5.3.24, 5.3.27, 5.4.3 - 5.4.4, 5.4.7, 5.4.10, 5.4.14, 5.4.22 - 5.4.23, 5.4.25, 5.4.30, 5.5.24, 5.5.30 - 5.5.31, 5.6.7, 5.6.12, hhvm-3.10.0
Total execution time in seconds: 3.0994415283203E-6
Output for 5.4.2, 5.4.12 - 5.4.13, 5.4.20, 5.4.24, 5.4.27 - 5.4.28, 5.4.31 - 5.4.32, 5.5.35, 5.6.11, 5.6.20 - 5.6.21
Total execution time in seconds: 2.8610229492188E-6
Output for 5.5.29, 5.5.34, 5.6.8, 5.6.13 - 5.6.14
Total execution time in seconds: 2.1457672119141E-6
Output for 5.2.11, 5.3.2, 5.3.5, 5.3.7 - 5.3.8, 5.3.12, 5.3.17 - 5.3.20, 5.3.22, 5.3.25 - 5.3.26, 5.3.29 - 5.4.1, 5.4.8 - 5.4.9, 5.4.11, 5.4.15 - 5.4.19, 5.4.21, 5.4.26, 5.4.29, 5.4.35, 5.5.27
Total execution time in seconds: 4.0531158447266E-6
Output for 5.2.3, 5.4.44
Total execution time in seconds: 7.1525573730469E-6
Output for 5.2.5, 5.4.43
Total execution time in seconds: 8.1062316894531E-6
Output for 5.2.8, 5.2.10, 5.2.13 - 5.3.1, 5.3.3, 5.3.6, 5.3.9 - 5.3.11, 5.3.13 - 5.3.15, 5.4.5, 5.4.34, 5.4.37 - 5.4.42
Total execution time in seconds: 5.0067901611328E-6
Output for 5.4.36
Total execution time in seconds: 6.1988830566406E-6
Output for 5.2.7, 5.3.16, 5.3.21, 5.3.28, 5.4.6
Total execution time in seconds: 3.814697265625E-6
Output for 5.2.2, 5.2.9, 5.3.4
Total execution time in seconds: 5.9604644775391E-6
Output for 5.2.12
Total execution time in seconds: 4.7683715820312E-6
Output for 5.2.6
Total execution time in seconds: 6.9141387939453E-6
Output for 5.2.4
Total execution time in seconds: 1.0013580322266E-5
Output for 5.0.1, 5.0.4, 5.1.5 - 5.2.1
Total execution time in seconds: 5.0067901611328E-06
Output for 5.1.4
Total execution time in seconds: 6.9141387939453E-06
Output for 5.0.0, 5.1.2 - 5.1.3
Total execution time in seconds: 5.9604644775391E-06
Output for 5.1.1
Total execution time in seconds: 8.1062316894531E-06
Output for 5.1.0
Total execution time in seconds: 6.1988830566406E-06
Output for 5.0.2, 5.0.5
Total execution time in seconds: 4.0531158447266E-06
Output for 5.0.3
Total execution time in seconds: 3.814697265625E-06
Output for 4.4.0, 4.4.6, 4.4.9
Total execution time in seconds: 1.4000000000014E-05
Output for 4.4.8
Total execution time in seconds: 1.3999999999986E-05
Output for 4.4.7
Total execution time in seconds: 1.0999999999983E-05
Output for 4.3.11, 4.4.5
Total execution time in seconds: 1.000000000001E-05
Output for 4.4.2, 4.4.4
Total execution time in seconds: 1.2000000000012E-05
Output for 4.4.3
Total execution time in seconds: 1.3000000000041E-05
Output for 4.4.1
Total execution time in seconds: 1.1999999999956E-05
Output for 4.3.10
Total execution time in seconds: 1.6000000000016E-05
Output for 4.3.9
Total execution time in seconds: 0.00016899999999997
Output for 4.3.6 - 4.3.8
Total execution time in seconds: 2.2999999999995E-05
Output for 4.3.5
Total execution time in seconds: 3.1999999999921E-05
Output for 4.3.4
Total execution time in seconds: 5.8000000000002E-05
Output for 4.3.3
Total execution time in seconds: 2.0999999999938E-05
Output for 4.3.2
Total execution time in seconds: 2.3999999999913E-05
Output for 4.3.1
Total execution time in seconds: 2.4000000000024E-05
Output for 4.3.0
Total execution time in seconds: 1.3999999999958E-05