3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $iterations = 1000000; $start = microtime(true); for ($i=0; $i<$iterations; $i++) { $a = @$_GET['a'] ?: 'home'; } echo round(microtime(true) - $start, 5);
based on uYkAi
Output for 7.1.0
0.25536
Output for 7.0.14
0.31419
Output for 7.0.6
0.20779
Output for 7.0.5
0.20726
Output for 7.0.4
0.17524
Output for 7.0.3
0.19674
Output for 7.0.2
0.18303
Output for 7.0.1
0.2057
Output for 7.0.0
0.21742
Output for hhvm-3.12.0
0.11688
Output for hhvm-3.10.0
0.30064
Output for 5.6.28
0.42782
Output for 5.6.21
0.30227
Output for 5.6.20
0.29768
Output for 5.6.19
0.2943
Output for 5.6.18
0.29025
Output for 5.6.17
0.28997
Output for 5.6.16
0.30505
Output for 5.6.15
0.30621
Output for 5.6.14
0.31304
Output for 5.6.13
0.29469
Output for 5.6.12
0.29176
Output for 5.6.11
0.31176
Output for 5.6.10
0.27812
Output for 5.6.9
0.31431
Output for 5.6.8
0.28437
Output for 5.5.35
0.24825
Output for 5.5.34
0.31226
Output for 5.5.33
0.32763
Output for 5.5.32
0.29969
Output for 5.5.31
0.29481
Output for 5.5.30
0.31782
Output for 5.5.29
0.33987
Output for 5.5.28
0.30603
Output for 5.5.27
0.31412
Output for 5.5.26
0.28178
Output for 5.5.25
0.28512
Output for 5.5.24
0.30044
Output for 5.4.45
1.14477
Output for 5.4.44
1.42965
Output for 5.4.43
0.61519
Output for 5.4.42
1.17989
Output for 5.4.41
0.73861
Output for 5.4.40
0.30905
Output for 5.4.39
0.40298
Output for 5.4.38
0.62487
Output for 5.4.37
0.55333
Output for 5.4.36
0.47849
Output for 5.4.35
0.479
Output for 5.4.34
0.44237
Output for 5.4.32
0.34535
Output for 5.4.31
0.40509
Output for 5.4.30
0.32653
Output for 5.4.29
0.34834
Output for 5.4.28
0.40968
Output for 5.4.27
0.3769
Output for 5.4.26
0.38793
Output for 5.4.25
0.32056
Output for 5.4.24
0.4552
Output for 5.4.23
0.36558
Output for 5.4.22
0.35316
Output for 5.4.21
0.3776
Output for 5.4.20
0.35446
Output for 5.4.19
0.46837
Output for 5.4.18
0.4197
Output for 5.4.17
0.41501
Output for 5.4.16
0.34705
Output for 5.4.15
0.33268
Output for 5.4.14
0.52487
Output for 5.4.13
0.72378
Output for 5.4.12
0.33195
Output for 5.4.11
0.36214
Output for 5.4.10
0.45052
Output for 5.4.9
0.39741
Output for 5.4.8
0.34726
Output for 5.4.7
0.42098
Output for 5.4.6
0.35774
Output for 5.4.5
0.3361
Output for 5.4.4
0.33939
Output for 5.4.3
0.3273
Output for 5.4.2
0.3501
Output for 5.4.1
0.34115
Output for 5.4.0
0.42216
Output for 5.3.29
0.45756
Output for 5.3.28
0.49342
Output for 5.3.27
0.54492
Output for 5.3.26
0.49554
Output for 5.3.25
0.45188
Output for 5.3.24
0.41925
Output for 5.3.23
0.44432
Output for 5.3.22
0.43885
Output for 5.3.21
0.46766
Output for 5.3.20
0.42716
Output for 5.3.19
0.48079
Output for 5.3.18
0.48771
Output for 5.3.17
0.45171
Output for 5.3.16
0.47055
Output for 5.3.15
0.48523
Output for 5.3.14
0.48932
Output for 5.3.13
0.43839
Output for 5.3.12
0.52828
Output for 5.3.11
0.44115
Output for 5.3.10
0.4317
Output for 5.3.9
0.43712
Output for 5.3.8
0.46842
Output for 5.3.7
0.53396
Output for 5.3.6
0.50706
Output for 5.3.5
0.50956
Output for 5.3.4
0.46116
Output for 5.3.3
0.46135
Output for 5.3.2
0.65675
Output for 5.3.1
0.45069
Output for 5.3.0
0.57781
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected ':' in /in/igftj 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/igftj on line 7
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/igftj on line 7
Process exited with code 255.