3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $_price = '10995'; setlocale(LC_MONETARY, 'en_GB'); echo money_format("%i", $_price);
based on Q8nvC

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.0090.00616.55
7.2.00.0040.00819.48
7.1.200.0060.00015.57
7.1.100.0060.00618.13
7.1.70.0000.00916.95
7.1.60.0140.01119.46
7.1.50.0100.00716.68
7.1.00.0070.09322.27
7.0.200.0040.00416.47
7.0.140.0030.03321.93
7.0.60.0100.07719.97
7.0.50.0070.05717.78
7.0.40.0130.06720.09
7.0.30.0500.04720.07
7.0.20.0270.08020.16
7.0.10.0200.07320.17
7.0.00.0070.05720.09
5.6.280.0070.07021.07
5.6.210.0100.06320.68
5.6.200.0100.08018.18
5.6.190.0030.09020.46
5.6.180.0330.07320.41
5.6.170.0230.03320.53
5.6.160.0130.08320.51
5.6.150.0100.07718.25
5.6.140.0100.06018.28
5.6.130.0000.07318.18
5.6.120.0130.06321.01
5.6.110.0100.08021.00
5.6.100.0200.07020.96
5.6.90.0030.07720.97
5.6.80.0100.07720.37
5.6.70.4600.03320.39
5.5.350.0030.08020.48
5.5.340.0070.03317.97
5.5.330.0200.02720.28
5.5.320.0330.05320.27
5.5.310.0330.07020.27
5.5.300.0100.05717.88
5.5.290.0100.05017.91
5.5.280.0130.07020.88
5.5.270.0100.04320.78
5.5.260.0100.08320.86
5.5.250.0130.06020.54
5.5.240.0270.06720.25
5.4.450.0430.06319.58
5.4.440.0230.08019.38
5.4.430.0130.05019.50
5.4.420.0170.05019.68
5.4.410.0200.05019.42
5.4.400.0130.05018.92
5.4.390.0170.05318.58
5.4.380.0270.05718.69
5.4.370.0200.04718.49
5.4.360.0230.04318.69
5.4.350.0130.06018.84
5.4.340.0100.06018.56
5.4.320.0170.05718.59
5.4.310.0130.05718.79
5.4.300.0200.05018.78
5.4.290.0200.05018.72
5.4.280.0170.05318.68
5.4.270.0170.05318.68
5.4.260.0170.05718.65
5.4.250.0170.05718.74
5.4.240.0230.05318.78
5.4.230.0300.06018.73
5.4.220.0130.06018.79
5.4.210.0070.06318.68
5.4.200.0170.05316.69
5.4.190.0130.05718.51
5.4.180.0130.05718.82
5.4.170.0200.05318.67
5.4.160.0230.04718.61
5.4.150.0270.04718.58
5.4.140.0100.06016.20
5.4.130.0170.07016.39
5.4.120.0130.05316.46
5.4.110.0300.06016.22
5.4.100.0100.06016.21
5.4.90.0100.06316.23
5.4.80.0100.05716.26
5.4.70.0130.05716.15
5.4.60.0270.04016.37
5.4.50.0270.05016.43
5.4.40.0170.05016.36
5.4.30.0300.04016.16
5.4.20.0170.05716.22
5.4.10.0200.06716.35
5.4.00.0200.05015.71
5.3.290.0200.05314.79
5.3.280.0200.05014.63
5.3.270.0230.05014.63
5.3.260.0200.05014.62
5.3.250.0230.04714.63
5.3.240.0200.05014.73
5.3.230.0200.05314.75
5.3.220.0200.05014.54
5.3.210.0230.05314.69
5.3.200.0030.06314.71
5.3.190.0270.06014.56
5.3.180.0200.05014.57
5.3.170.0070.06014.68
5.3.160.0100.06314.74
5.3.150.0130.05314.65
5.3.140.0270.05014.66
5.3.130.0230.07314.58
5.3.120.0370.03714.72
5.3.110.0230.05314.72
5.3.100.0230.04714.20
5.3.90.0300.05714.01
5.3.80.0230.05014.12
5.3.70.0270.06314.20
5.3.60.0130.07313.98
5.3.50.0230.05313.94
5.3.40.0100.06013.96
5.3.30.0200.05014.07
5.3.20.0300.04713.79
5.3.10.0200.06713.79
5.3.00.0230.06313.62
5.2.170.0170.04311.30
5.2.160.0130.04011.20
5.2.150.0200.03711.30
5.2.140.0070.04711.28
5.2.130.0170.05311.23
5.2.120.0130.04011.20
5.2.110.0170.04311.13
5.2.100.0200.04011.14
5.2.90.0100.04711.23
5.2.80.0170.04311.27
5.2.70.0170.04311.21
5.2.60.0230.04011.06
5.2.50.0070.05311.12
5.2.40.0130.04311.13
5.2.30.0200.04011.07
5.2.20.0100.04710.98
5.2.10.0130.03710.86
5.2.00.0170.03710.81
5.1.60.0230.02310.02
5.1.50.0170.0309.97
5.1.40.0070.04010.00
5.1.30.0200.03010.32
5.1.20.0130.03710.48
5.1.10.0100.04010.16
5.1.00.0070.04310.24
5.0.50.0100.0278.66
5.0.40.0130.0208.40
5.0.30.0100.0408.25
5.0.20.0030.0338.25
5.0.10.0070.0308.25
5.0.00.0100.0438.22
4.4.90.0070.0235.89
4.4.80.0100.0205.88
4.4.70.0070.0235.88
4.4.60.0030.0235.87
4.4.50.0000.0275.95
4.4.40.0000.0405.98
4.4.30.0070.0275.99
4.4.20.0030.0236.04
4.4.10.0000.0275.92
4.4.00.0070.0375.92
4.3.110.0000.0275.84
4.3.100.0070.0205.81
4.3.90.0070.0205.80
4.3.80.0030.0375.77
4.3.70.0030.0235.82
4.3.60.0100.0175.87
4.3.50.0030.0235.78
4.3.40.0100.0335.76
4.3.30.0000.0274.99
4.3.20.0000.0274.99
4.3.10.0070.0204.99
4.3.00.0100.0206.68