3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = microtime(true); $a = 0; while(true) { $a++; if($a > 100) { break; } } $mid = microtime(true); $a = 0; start: $a++; if($a > 100) { goto end; } else { goto start; } end: $end = microtime(true); echo "retry " . ($mid-$start) . " retry2 " . ($end-$mid) . "\n";
Output for 7.1.0
retry 3.0994415283203E-6 retry2 1.9073486328125E-6
Output for 7.0.14
retry 2.8610229492188E-6 retry2 2.1457672119141E-6
Output for 7.0.6
retry 1.9073486328125E-6 retry2 1.9073486328125E-6
Output for 7.0.5
retry 2.8610229492188E-6 retry2 9.5367431640625E-7
Output for 7.0.4
retry 9.5367431640625E-7 retry2 9.5367431640625E-7
Output for 7.0.3
retry 3.0994415283203E-6 retry2 9.5367431640625E-7
Output for 7.0.2
retry 2.1457672119141E-6 retry2 1.9073486328125E-6
Output for 7.0.0 - 7.0.1
retry 2.8610229492188E-6 retry2 1.1920928955078E-6
Output for 5.4.7, 5.4.9, 5.4.15, 5.4.21, 5.4.23, 5.4.42, 5.6.17, 5.6.28
retry 5.9604644775391E-6 retry2 3.0994415283203E-6
Output for 5.6.21
retry 6.1988830566406E-6 retry2 3.814697265625E-6
Output for 5.4.22, 5.4.34, 5.5.25, 5.6.15 - 5.6.16, 5.6.20
retry 6.1988830566406E-6 retry2 2.8610229492188E-6
Output for 5.3.14, 5.6.19
retry 7.1525573730469E-6 retry2 4.0531158447266E-6
Output for 5.6.18
retry 5.9604644775391E-6 retry2 2.1457672119141E-6
Output for 5.4.1, 5.5.34, 5.6.7, 5.6.14
retry 4.0531158447266E-6 retry2 1.9073486328125E-6
Output for 5.4.0, 5.4.17, 5.4.25, 5.4.43, 5.5.29, 5.5.33, 5.6.13
retry 5.0067901611328E-6 retry2 1.9073486328125E-6
Output for 5.3.10 - 5.3.11, 5.4.12, 5.4.16, 5.4.18, 5.4.20, 5.4.27, 5.4.29 - 5.4.32, 5.4.41, 5.5.26, 5.5.35, 5.6.9, 5.6.11 - 5.6.12
retry 5.9604644775391E-6 retry2 4.0531158447266E-6
Output for 5.6.10
retry 4.7683715820312E-6 retry2 3.0994415283203E-6
Output for 5.6.8
retry 5.9604644775391E-6 retry2 3.814697265625E-6
Output for 5.4.10, 5.4.44, 5.5.24, 5.5.32
retry 5.9604644775391E-6 retry2 2.8610229492188E-6
Output for 5.5.28, 5.5.31
retry 4.0531158447266E-6 retry2 2.8610229492188E-6
Output for 5.3.7, 5.3.13, 5.3.25, 5.4.3 - 5.4.4, 5.4.13, 5.4.26, 5.4.35, 5.4.37, 5.4.40, 5.5.27, 5.5.30
retry 6.9141387939453E-6 retry2 4.0531158447266E-6
Output for 5.3.1, 5.4.19, 5.4.24, 5.4.39, 5.4.45
retry 6.9141387939453E-6 retry2 3.0994415283203E-6
Output for 5.3.19, 5.4.38
retry 8.1062316894531E-6 retry2 3.814697265625E-6
Output for 5.3.20, 5.4.2, 5.4.11, 5.4.36
retry 5.0067901611328E-6 retry2 3.0994415283203E-6
Output for 5.4.5, 5.4.28
retry 5.0067901611328E-6 retry2 4.0531158447266E-6
Output for 5.3.8, 5.3.18, 5.3.26, 5.4.14
retry 9.0599060058594E-6 retry2 5.0067901611328E-6
Output for 5.4.8
retry 5.0067901611328E-6 retry2 2.1457672119141E-6
Output for 5.4.6
retry 5.0067901611328E-6 retry2 2.8610229492188E-6
Output for 5.3.29
retry 6.9141387939453E-6 retry2 5.0067901611328E-6
Output for 5.3.23, 5.3.28
retry 9.0599060058594E-6 retry2 3.814697265625E-6
Output for 5.3.27
retry 1.1920928955078E-5 retry2 5.0067901611328E-6
Output for 5.3.2, 5.3.12, 5.3.17, 5.3.24
retry 7.8678131103516E-6 retry2 5.0067901611328E-6
Output for 5.3.22
retry 7.1525573730469E-6 retry2 3.814697265625E-6
Output for 5.3.6, 5.3.15, 5.3.21
retry 8.1062316894531E-6 retry2 5.0067901611328E-6
Output for 5.3.4, 5.3.16
retry 1.0013580322266E-5 retry2 5.0067901611328E-6
Output for 5.3.5, 5.3.9
retry 8.1062316894531E-6 retry2 4.0531158447266E-6
Output for 5.3.3
retry 7.8678131103516E-6 retry2 4.0531158447266E-6
Output for 5.3.0
retry 7.1525573730469E-6 retry2 2.8610229492188E-6
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected ':' in /in/43mHd on line 16
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected ':' in /in/43mHd on line 16
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/43mHd on line 16
Process exited with code 255.