3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = (object) array('artists'); print '<pre>'; print_r($a); print '----------'; var_dump($a);

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.2.60.0070.00716.76
7.2.00.0060.00619.43
7.1.200.0040.00415.75
7.1.100.0070.00418.12
7.1.70.0030.00617.13
7.1.60.0100.01319.05
7.1.50.0070.01416.86
7.1.00.0000.08022.47
7.0.200.0040.00416.48
7.0.60.0100.08719.78
7.0.50.0100.05317.83
7.0.40.0170.07720.23
7.0.30.0300.07320.24
7.0.20.0300.08320.06
7.0.10.0070.08720.16
7.0.00.0070.08320.17
5.6.280.0030.05020.77
5.6.210.0100.05320.48
5.6.200.0030.04018.19
5.6.190.0030.06020.42
5.6.180.0300.06720.67
5.6.170.0400.06020.51
5.6.160.0170.07720.44
5.6.150.0030.07718.28
5.6.140.0170.06718.24
5.6.130.0070.08018.28
5.6.120.0030.07321.11
5.6.110.0070.05720.95
5.6.100.0170.07021.13
5.6.90.0130.04720.96
5.6.80.0130.07320.50
5.5.350.0170.07720.34
5.5.340.0130.07318.08
5.5.330.0070.08320.21
5.5.320.0200.04320.34
5.5.310.0230.07020.29
5.5.300.0100.07718.07
5.5.290.0070.08317.98
5.5.280.0100.06320.67
5.5.270.0030.07020.67
5.5.260.0170.03020.75
5.5.250.0070.08020.64
5.5.240.0230.06720.14
5.4.450.0600.07719.57
5.4.440.0470.07019.60
5.4.430.0670.05319.31
5.4.420.0470.06019.14
5.4.410.0700.05319.18
5.4.400.0170.04319.07
5.4.390.0600.06018.90
5.4.380.0470.04319.23
5.4.370.0070.05718.82
5.4.360.0770.03719.21
5.4.350.0400.05319.05
5.4.340.0400.05718.90
5.4.320.0400.05719.05
5.4.310.0130.04718.80
5.4.300.0600.07019.04
5.4.290.0500.07019.06
5.4.280.0200.06019.23
5.4.270.0570.06018.98
5.4.260.0470.04319.20
5.4.250.0530.04719.20
5.4.240.0130.04719.22
5.4.230.0430.04718.90
5.4.220.0530.05719.07
5.4.210.0430.06718.81
5.4.200.0570.05018.81
5.4.190.0670.05718.79
5.4.180.0730.05319.34
5.4.170.0630.05719.11
5.4.160.0630.04719.33
5.4.150.0530.05019.05
5.4.140.0630.05016.26
5.4.130.0770.05716.41
5.4.120.0570.06016.26
5.4.110.0430.05316.60
5.4.100.0500.05016.40
5.4.90.0400.05016.57
5.4.80.0530.05016.46
5.4.70.0430.05016.47
5.4.60.0530.04016.48
5.4.50.0570.05016.40
5.4.40.0430.05016.56
5.4.30.0370.05316.21
5.4.20.0470.04316.54
5.4.10.0630.04716.58
5.4.00.0530.04015.70
5.3.290.0570.04714.70
5.3.280.0500.05314.50
5.3.270.0570.06714.51
5.3.260.0530.06314.64
5.3.250.0570.05314.50
5.3.240.0570.05314.50
5.3.230.0630.04014.59
5.3.220.0700.04714.41
5.3.210.0630.04714.54
5.3.200.0430.06014.64
5.3.190.0100.05314.45
5.3.180.0070.06014.58
5.3.170.0600.04714.70
5.3.160.0430.05014.60
5.3.150.0530.05014.52
5.3.140.0430.06014.60
5.3.130.0600.04314.44
5.3.120.0470.05014.57
5.3.110.0570.06014.45
5.3.100.0530.05714.02
5.3.90.0630.05014.06
5.3.80.0670.06313.92
5.3.70.0500.05713.91
5.3.60.0470.06713.92
5.3.50.0500.04313.95
5.3.40.0770.06313.95
5.3.30.0600.05713.91
5.3.20.0570.07013.84
5.3.10.0430.05313.87
5.3.00.0400.05013.54
5.2.170.0600.03711.05
5.2.160.0500.04311.36
5.2.150.0470.04711.05
5.2.140.0700.05011.05
5.2.130.0470.04311.09
5.2.120.0530.05011.14
5.2.110.0270.05011.25
5.2.100.0000.04711.00
5.2.90.0330.04310.95
5.2.80.0370.04710.99
5.2.70.0430.04010.94
5.2.60.0400.04010.95
5.2.50.0430.04311.09
5.2.40.0270.05310.99
5.2.30.0430.04010.88
5.2.20.0370.04010.86
5.2.10.0300.04010.85
5.2.00.0270.04310.71
5.1.60.0300.0339.86
5.1.50.0100.0379.88
5.1.40.0170.0379.88
5.1.30.0230.03710.19
5.1.20.0370.03310.25
5.1.10.0330.03310.04
5.1.00.0370.03010.03
5.0.50.0170.0278.59
5.0.40.0130.0278.30
5.0.30.0170.0508.09
5.0.20.0130.0238.34
5.0.10.0070.0278.18
5.0.00.0170.0408.30
4.4.90.0100.0237.44
4.4.80.0170.0177.44
4.4.70.0170.0207.44
4.4.60.0070.0277.44
4.4.50.0130.0237.44
4.4.40.0070.0437.44
4.4.30.0130.0237.44
4.4.20.0270.0177.44
4.4.10.0170.0237.44
4.4.00.0170.0337.44
4.3.110.0100.0237.44
4.3.100.0100.0237.44
4.3.90.0000.0237.44
4.3.80.0230.0307.44
4.3.70.0130.0237.44
4.3.60.0130.0207.44
4.3.50.0070.0307.44
4.3.40.0170.0307.44
4.3.30.0100.0207.44
4.3.20.0070.0307.44
4.3.10.0070.0277.44
4.3.00.0100.0207.44