3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $newsPiece['pages'] = '15B'; if (!empty($newsPiece['pages'])):?> <?php echo $newsPiece['pages']?><?php endif;?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.0rc40.0210.00498.97
7.3.0rc30.0150.00616.64
7.3.0beta10.0070.00312.54
7.3.0alpha10.0150.00812.70
7.2.60.0060.00816.74
7.2.00.0060.00619.46
7.1.200.0040.00815.57
7.1.70.0050.00517.11
7.1.60.0030.01016.90
7.1.50.0220.01634.50
7.1.00.0070.07322.35
7.0.200.0080.01116.75
7.0.140.0000.07322.22
7.0.60.0100.05319.95
7.0.50.0070.05717.80
7.0.40.0130.08320.30
7.0.30.0170.04320.21
7.0.20.0270.07020.32
7.0.10.0030.05320.33
7.0.00.0070.04020.11
5.6.280.0000.07720.77
5.6.210.0100.07720.72
5.6.200.0030.04318.09
5.6.190.0030.04320.41
5.6.180.0470.08020.41
5.6.170.0270.04720.33
5.6.160.0030.04720.52
5.6.150.0070.06018.11
5.6.140.0030.08718.21
5.6.130.0070.06318.17
5.6.120.0030.04321.09
5.6.110.0070.05321.13
5.6.100.0030.04321.02
5.6.90.0100.05721.09
5.6.80.0030.08320.38
5.5.350.0130.05720.42
5.5.340.0030.04717.92
5.5.330.0230.03320.13
5.5.320.0330.03720.21
5.5.310.0300.07320.26
5.5.300.0030.03717.95
5.5.290.0170.05717.86
5.5.280.0030.07020.79
5.5.270.0030.08320.77
5.5.260.0070.04020.76
5.5.250.0070.07720.61
5.5.240.0130.07020.25
5.4.450.0170.03319.58
5.4.440.0370.04319.41
5.4.430.0230.05019.21
5.4.420.0130.05019.57
5.4.410.0500.03718.97
5.4.400.0130.04718.71
5.4.390.0170.05018.61
5.4.380.0270.05318.59
5.4.370.0170.06018.45
5.4.360.0200.04718.61
5.4.350.0230.04718.60
5.4.340.0030.06318.46
5.4.320.0110.03912.45
5.4.310.0070.04012.45
5.4.300.0070.04112.45
5.4.290.0120.03812.45
5.4.280.0110.03612.35
5.4.270.0100.06718.92
5.4.260.0130.08319.01
5.4.250.0100.07018.91
5.4.240.0170.04718.89
5.4.230.0130.08018.84
5.4.220.0030.07318.99
5.4.210.0170.08018.90
5.4.200.0100.05318.81
5.4.190.0170.07018.94
5.4.180.0130.08018.75
5.4.170.0030.07719.05
5.4.160.0230.05318.74
5.4.150.0200.05718.89
5.4.140.0070.07316.55
5.4.130.0170.06316.50
5.4.120.0100.05016.50
5.4.110.0070.06016.48
5.4.100.0170.05716.27
5.4.90.0100.05716.52
5.4.80.0130.05316.46
5.4.70.0070.06716.54
5.4.60.0130.06016.50
5.4.50.0130.05316.38
5.4.40.0070.05316.34
5.4.30.0070.05016.28
5.4.20.0100.07316.41
5.4.10.0070.06316.30
5.4.00.0070.05015.89
5.3.290.0080.04512.80
5.3.280.0130.07014.57
5.3.270.0070.07714.66
5.3.260.0100.09014.59
5.3.250.0100.06714.77
5.3.240.0030.08014.55
5.3.230.0070.05314.73
5.3.220.0030.05714.72
5.3.210.0130.07014.37
5.3.200.0070.06714.65
5.3.190.0030.06014.38
5.3.180.0070.06314.73
5.3.170.0070.06014.64
5.3.160.0100.07014.64
5.3.150.0200.04314.54
5.3.140.0130.05314.72
5.3.130.0170.05014.61
5.3.120.0100.05314.52
5.3.110.0170.04714.36
5.3.100.0100.05013.86
5.3.90.0170.05314.15
5.3.80.0070.06014.09
5.3.70.0100.05314.18
5.3.60.0100.06713.98
5.3.50.0030.05713.93
5.3.40.0070.05314.11
5.3.30.0200.05314.05
5.3.20.0130.04713.84
5.3.10.0130.06013.63
5.3.00.0000.06313.83
5.2.170.0100.05710.95
5.2.160.0100.05711.27
5.2.150.0030.05310.95
5.2.140.0000.06011.29
5.2.130.0100.04011.31
5.2.120.0070.04311.25
5.2.110.0070.04711.21
5.2.100.0030.04311.02
5.2.90.0000.06311.22
5.2.80.0100.05311.20
5.2.70.0130.04311.32
5.2.60.0070.06011.18
5.2.50.0030.04311.07
5.2.40.0070.04010.93
5.2.30.0070.04311.07
5.2.20.0000.05010.88
5.2.10.0030.06310.90
5.2.00.0070.04010.76
5.1.60.0030.0509.96
5.1.50.0100.04010.19
5.1.40.0030.03310.16
5.1.30.0070.03310.47
5.1.20.0070.04710.49
5.1.10.0030.04710.29
5.1.00.0000.05710.11
5.0.50.0100.0238.57
5.0.40.0100.0278.55
5.0.30.0070.0408.19
5.0.20.0030.0408.41
5.0.10.0100.0208.46
5.0.00.0070.0438.30
4.4.90.0030.0237.41
4.4.80.0000.0337.41
4.4.70.0030.0277.41
4.4.60.0100.0207.41
4.4.50.0070.0207.41
4.4.40.0000.0407.41
4.4.30.0030.0277.41
4.4.20.0000.0277.41
4.4.10.0070.0307.41
4.4.00.0000.0407.41
4.3.110.0100.0177.41
4.3.100.0070.0207.41
4.3.90.0030.0307.41
4.3.80.0000.0377.41
4.3.70.0000.0237.41
4.3.60.0030.0207.41
4.3.50.0030.0237.41
4.3.40.0070.0407.41
4.3.30.0070.0237.41
4.3.20.0000.0277.41
4.3.10.0030.0207.41
4.3.00.0070.02015.59