3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $iterations = 1000000; $start = microtime(); for ($i=0; $i<$iterations; $i++) { $a = @$_GET['a'] ?: 'home'; } echo round($start - microtime(), 2);
based on J4WMj
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/6vaZm on line 10 Notice: A non well formed numeric value encountered in /in/6vaZm on line 10 -0.05
Output for 7.0.14
-0.24
Output for 7.0.6
-0.21
Output for 7.0.5
-0.18
Output for 7.0.4
-0.17
Output for 7.0.3
-0.19
Output for 7.0.2
0.75
Output for 7.0.0 - 7.0.1
0.79
Output for hhvm-3.12.0
-0.12
Output for 5.5.24, 5.5.34, 5.6.14, 5.6.19, hhvm-3.10.0
-0.29
Output for 5.4.14, 5.4.27, 5.6.28
-0.37
Output for 5.5.32 - 5.5.33, 5.6.8, 5.6.21
-0.32
Output for 5.4.39, 5.6.20
0.7
Output for 5.3.15, 5.4.5, 5.5.31, 5.6.18
-0.34
Output for 5.5.26 - 5.5.28, 5.5.30, 5.6.10 - 5.6.11, 5.6.13, 5.6.16 - 5.6.17
-0.3
Output for 5.6.15
0.69
Output for 5.4.45, 5.5.25, 5.6.12
-0.31
Output for 5.6.9
0.71
Output for 5.4.10, 5.4.12, 5.4.29, 5.5.35
-0.33
Output for 5.5.29
0.68
Output for 5.4.44
0.25
Output for 5.4.43
0.02
Output for 5.4.42
0.33
Output for 5.4.41
0.31
Output for 5.4.40
0.74
Output for 5.4.38
0.29
Output for 5.3.23, 5.4.37
0.49
Output for 5.3.1, 5.3.10, 5.4.36
0.55
Output for 5.4.35
0.59
Output for 5.3.11, 5.4.34
-0.45
Output for 5.4.0, 5.4.17, 5.4.32
-0.36
Output for 5.4.23, 5.4.31
-0.4
Output for 5.4.11, 5.4.30
0.63
Output for 5.4.28
0.53
Output for 5.4.26
0.61
Output for 5.3.9, 5.3.22, 5.4.25
-0.43
Output for 5.4.4, 5.4.24
-0.38
Output for 5.3.24, 5.4.22
-0.44
Output for 5.4.21
0.6
Output for 5.3.26, 5.4.20
-0.5
Output for 5.4.19
-0.53
Output for 5.4.6, 5.4.18
0.56
Output for 5.4.2, 5.4.7, 5.4.16
-0.35
Output for 5.4.1, 5.4.8, 5.4.15
0.65
Output for 5.4.13
0.44
Output for 5.4.9
-0.39
Output for 5.4.3
0.64
Output for 5.3.21, 5.3.25, 5.3.29
0.52
Output for 5.3.28
-0.47
Output for 5.3.8, 5.3.27
0.47
Output for 5.3.20
-0.46
Output for 5.3.4, 5.3.19
0.48
Output for 5.3.18
-0.13
Output for 5.3.17
0.28
Output for 5.3.16
0.2
Output for 5.3.14
0.42
Output for 5.3.13
0.04
Output for 5.3.12
0.46
Output for 5.3.7
-0.52
Output for 5.3.6
0.51
Output for 5.3.5
-0.54
Output for 5.3.0, 5.3.3
-0.49
Output for 5.3.2
0.35
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected ':' in /in/6vaZm on line 7
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/6vaZm on line 7
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/6vaZm on line 7
Process exited with code 255.