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($start - microtime(true), 5);
based on WG3J5
Output for 7.1.0
-0.24345
Output for 7.0.14
-0.07779
Output for 7.0.6
-0.18847
Output for 7.0.5
-0.21298
Output for 7.0.4
-0.19631
Output for 7.0.3
-0.20524
Output for 7.0.2
-0.17973
Output for 7.0.1
-0.19515
Output for 7.0.0
-0.20793
Output for hhvm-3.12.0
-0.12527
Output for hhvm-3.10.0
-0.30702
Output for 5.6.28
-0.37151
Output for 5.6.21
-0.30879
Output for 5.6.20
-0.29205
Output for 5.6.19
-0.3056
Output for 5.6.18
-0.2975
Output for 5.6.17
-0.28055
Output for 5.6.16
-0.31232
Output for 5.6.15
-0.31576
Output for 5.6.14
-0.2961
Output for 5.6.13
-0.31402
Output for 5.6.12
-0.29034
Output for 5.6.11
-0.30864
Output for 5.6.10
-0.3057
Output for 5.6.9
-0.29198
Output for 5.6.8
-0.3191
Output for 5.5.35
-0.31724
Output for 5.5.34
-0.31575
Output for 5.5.33
-0.33376
Output for 5.5.32
-0.30157
Output for 5.5.31
-0.29068
Output for 5.5.30
-0.32438
Output for 5.5.29
-0.30973
Output for 5.5.28
-0.28595
Output for 5.5.27
-0.28259
Output for 5.5.26
-0.31296
Output for 5.5.25
-0.29923
Output for 5.5.24
-0.23864
Output for 5.4.45
-0.90722
Output for 5.4.44
-1.5159
Output for 5.4.43
-1.09187
Output for 5.4.42
-1.31259
Output for 5.4.41
-0.89672
Output for 5.4.40
-0.51159
Output for 5.4.39
-0.3128
Output for 5.4.38
-0.56703
Output for 5.4.37
-0.49454
Output for 5.4.36
-0.46317
Output for 5.4.35
-0.44767
Output for 5.4.34
-0.48438
Output for 5.4.32
-0.37704
Output for 5.4.31
-0.39114
Output for 5.4.30
-0.32987
Output for 5.4.29
-0.36087
Output for 5.4.28
-0.38599
Output for 5.4.27
-0.3811
Output for 5.4.26
-0.3853
Output for 5.4.25
-0.32933
Output for 5.4.24
-0.38779
Output for 5.4.23
-0.39438
Output for 5.4.22
-0.40393
Output for 5.4.21
-0.4365
Output for 5.4.20
-0.36007
Output for 5.4.19
-0.4221
Output for 5.4.18
-0.4218
Output for 5.4.17
-0.38732
Output for 5.4.16
-0.33742
Output for 5.4.15
-0.38362
Output for 5.4.14
-0.53281
Output for 5.4.13
-0.41986
Output for 5.4.12
-0.35367
Output for 5.4.11
-0.37788
Output for 5.4.10
-0.45383
Output for 5.4.9
-0.5125
Output for 5.4.8
-0.43005
Output for 5.4.7
-0.44281
Output for 5.4.6
-0.33851
Output for 5.4.5
-0.35461
Output for 5.4.4
-0.35627
Output for 5.4.3
-0.33013
Output for 5.4.2
-0.33769
Output for 5.4.1
-0.33591
Output for 5.4.0
-0.41027
Output for 5.3.29
-0.46347
Output for 5.3.28
-0.57719
Output for 5.3.27
-0.51532
Output for 5.3.26
-0.44622
Output for 5.3.25
-0.48318
Output for 5.3.24
-0.48577
Output for 5.3.23
-0.51304
Output for 5.3.22
-0.44093
Output for 5.3.21
-0.56329
Output for 5.3.20
-0.45341
Output for 5.3.19
-0.46907
Output for 5.3.18
-0.49324
Output for 5.3.17
-0.45334
Output for 5.3.16
-0.55665
Output for 5.3.15
-0.50521
Output for 5.3.14
-0.47012
Output for 5.3.13
-0.44907
Output for 5.3.12
-0.45077
Output for 5.3.11
-0.57138
Output for 5.3.10
-0.44498
Output for 5.3.9
-0.44643
Output for 5.3.8
-0.45807
Output for 5.3.7
-0.52046
Output for 5.3.6
-0.47295
Output for 5.3.5
-0.4995
Output for 5.3.4
-0.48347
Output for 5.3.3
-0.53508
Output for 5.3.2
-0.50913
Output for 5.3.1
-0.44605
Output for 5.3.0
-0.48564
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected ':' in /in/uYkAi 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/uYkAi on line 7
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/uYkAi on line 7
Process exited with code 255.