3v4l.org

run code in 300+ PHP versions simultaneously
<?php const ABC = 1; $abc = function ($a, $b = ABC) { echo $a . $b; } $abc('asdf');

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).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.350.3700.03318.96
5.4.340.3930.03319.11
5.4.320.0070.03718.96
5.4.310.0030.04719.06
5.4.300.3770.04318.92
5.4.290.3930.03719.16
5.4.280.4470.04319.00
5.4.270.3970.03718.96
5.4.260.3800.03319.25
5.4.250.4270.04718.93
5.4.240.3730.04019.11
5.4.230.3700.03319.15
5.4.220.1930.03319.13
5.4.210.0000.04019.24
5.4.200.0070.03719.13
5.4.190.3670.03719.05
5.4.180.3530.04019.23
5.4.170.3870.04019.21
5.4.160.4200.04019.20
5.4.150.3000.04319.22
5.4.140.3870.03716.42
5.4.130.4100.03316.32
5.4.120.3630.03316.36
5.4.110.4170.04716.65
5.4.100.3870.04016.37
5.4.90.3900.03016.47
5.4.80.3970.03316.46
5.4.70.3570.04016.46
5.4.60.3970.03016.43
5.4.50.3830.04016.49
5.4.40.3900.03316.38
5.4.30.3830.03016.49
5.4.20.3870.03716.52
5.4.10.3900.03316.41
5.4.00.3700.03015.86
5.3.290.0000.08014.57
5.3.280.3670.03714.51
5.3.270.4200.04714.60
5.3.260.3870.04314.75
5.3.250.3900.03714.52
5.3.240.3870.04014.62
5.3.230.3930.03714.63
5.3.220.3630.04014.59
5.3.210.3630.03714.58
5.3.200.3700.04014.72
5.3.190.3600.03714.64
5.3.180.3970.03714.71
5.3.170.3670.04014.62
5.3.160.4130.04014.48
5.3.150.3770.04714.56
5.3.140.3670.03314.56
5.3.130.3800.04014.62
5.3.120.3870.03714.55
5.3.110.3870.03714.69
5.3.100.4500.02314.18
5.3.90.3870.03714.05
5.3.80.4400.03714.10
5.3.70.4170.04014.02
5.3.60.3500.04013.89
5.3.50.3600.03013.95
5.3.40.3600.03313.83
5.3.30.3730.03313.87
5.3.20.3900.03013.68
5.3.10.3930.03313.73
5.3.00.3770.03313.60
5.2.170.3130.02711.09
5.2.160.3070.02311.14
5.2.150.3100.03311.00
5.2.140.3070.02311.14
5.2.130.3000.02710.99
5.2.120.3070.03011.18
5.2.110.3070.02711.12
5.2.100.3200.03010.99
5.2.90.3500.02311.07
5.2.80.3430.04011.03
5.2.70.3300.02711.00
5.2.60.3370.02710.97
5.2.50.3330.02310.99
5.2.40.2630.01710.88
5.2.30.2930.02310.91
5.2.20.2570.03010.84
5.2.10.2970.02310.94
5.2.00.2830.02710.71
5.1.60.2930.0309.97
5.1.50.2670.0239.98
5.1.40.2400.0239.95
5.1.30.2130.03010.38
5.1.20.3330.02310.20
5.1.10.2800.02310.04
5.1.00.2100.02710.21
5.0.50.1500.0208.55
5.0.40.1500.0238.54
5.0.30.1600.0278.54
5.0.20.1700.0238.54
5.0.10.1430.0208.54
5.0.00.1500.0308.54
4.4.90.1400.0178.54
4.4.80.1230.0138.54
4.4.70.1670.0208.54
4.4.60.1770.0138.54
4.4.50.1500.0108.54
4.4.40.1630.0278.54
4.4.30.1300.0138.54
4.4.20.1530.0178.54
4.4.10.1270.0138.54
4.4.00.1470.0278.54
4.3.110.1400.0138.54
4.3.100.1370.0138.54
4.3.90.1700.0138.54
4.3.80.1530.0308.54
4.3.70.1470.0208.54
4.3.60.1430.0208.54
4.3.50.1400.0138.54
4.3.40.1230.0278.54
4.3.30.0800.0238.54
4.3.20.0770.0278.54
4.3.10.0870.0238.54
4.3.00.0870.0178.54

preferences:
153.57 ms | 1394 KiB | 7 Q