3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); $iterations = 100000; $start = microtime(true); for ($i=0; $i<$iterations; $i++) { $page = @$_GET['page'] ?: 'home'; } echo round(microtime(true) - $start, 5);
based on 6cMNP
Output for 7.1.0
0.03265
Output for 7.0.14
0.0501
Output for 7.0.6
0.01939
Output for 7.0.5
0.02248
Output for 7.0.4
0.01947
Output for 7.0.3
0.02157
Output for 7.0.2
0.0224
Output for 7.0.1
0.02535
Output for 7.0.0
0.02789
Output for hhvm-3.12.0
0.01114
Output for hhvm-3.10.0
0.03035
Output for 5.6.28
0.05253
Output for 5.6.21
0.03201
Output for 5.6.20
0.03474
Output for 5.6.19
0.02961
Output for 5.6.18
0.04512
Output for 5.6.17
0.04082
Output for 5.6.16
0.02862
Output for 5.6.15
0.04365
Output for 5.6.14
0.02879
Output for 5.6.13
0.04142
Output for 5.6.12
0.0421
Output for 5.6.11
0.04117
Output for 5.6.10
0.04086
Output for 5.6.9
0.03292
Output for 5.6.8
0.04564
Output for 5.5.35
0.04475
Output for 5.5.34
0.03541
Output for 5.5.33
0.03406
Output for 5.5.32
0.04342
Output for 5.5.31
0.02943
Output for 5.5.30
0.04271
Output for 5.5.29
0.04076
Output for 5.5.28
0.02901
Output for 5.5.27
0.0353
Output for 5.5.26
0.03793
Output for 5.5.25
0.03859
Output for 5.5.24
0.03006
Output for 5.4.45
0.05542
Output for 5.4.44
0.04134
Output for 5.3.13, 5.4.43
0.04606
Output for 5.4.42
0.11584
Output for 5.4.41
0.03805
Output for 5.4.40
0.05812
Output for 5.4.39
0.04286
Output for 5.4.38
0.04548
Output for 5.4.37
0.05896
Output for 5.4.36
0.04473
Output for 5.4.35
0.08098
Output for 5.4.34
0.05203
Output for 5.4.32
0.0398
Output for 5.4.31
0.03736
Output for 5.4.30
0.03573
Output for 5.4.29
0.03304
Output for 5.4.28
0.04201
Output for 5.4.27
0.04221
Output for 5.4.26
0.03824
Output for 5.4.25
0.03329
Output for 5.4.24
0.05315
Output for 5.4.23
0.0391
Output for 5.4.22
0.0672
Output for 5.4.21
0.04513
Output for 5.4.20
0.03806
Output for 5.4.19
0.03672
Output for 5.4.18
0.03699
Output for 5.4.17
0.03548
Output for 5.4.16
0.03383
Output for 5.4.15
0.03379
Output for 5.4.14
0.03504
Output for 5.4.13
0.0429
Output for 5.4.12
0.03453
Output for 5.4.11
0.03567
Output for 5.4.10
0.03234
Output for 5.4.9
0.03704
Output for 5.4.8
0.03283
Output for 5.4.7
0.03871
Output for 5.4.6
0.03261
Output for 5.4.5
0.03812
Output for 5.4.4
0.0464
Output for 5.4.3
0.03319
Output for 5.4.2
0.03334
Output for 5.4.1
0.03602
Output for 5.4.0
0.0371
Output for 5.3.29
0.05482
Output for 5.3.28
0.04366
Output for 5.3.27
0.0528
Output for 5.3.26
0.04626
Output for 5.3.25
0.05028
Output for 5.3.24
0.04705
Output for 5.3.23
0.04729
Output for 5.3.22
0.04784
Output for 5.3.21
0.05008
Output for 5.3.20
0.04624
Output for 5.3.19
0.04715
Output for 5.3.18
0.05137
Output for 5.3.17
0.04691
Output for 5.3.16
0.04972
Output for 5.3.15
0.05524
Output for 5.3.14
0.05412
Output for 5.3.12
0.05905
Output for 5.3.11
0.04795
Output for 5.3.10
0.04559
Output for 5.3.9
0.04666
Output for 5.3.8
0.04692
Output for 5.3.7
0.05169
Output for 5.3.6
0.04991
Output for 5.3.5
0.05097
Output for 5.3.4
0.06417
Output for 5.3.3
0.05205
Output for 5.3.2
0.06728
Output for 5.3.1
0.04792
Output for 5.3.0
0.04887
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected ':' in /in/tIROU on line 9
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/tIROU on line 9
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/tIROU on line 9
Process exited with code 255.