3v4l.org

run code in 300+ PHP versions simultaneously
<?php function say_hello($name) { return "Hello, $name!"; } $greetings = say_hello('Ivan'); echo $greetings;

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)
8.0.30.0050.01617.04
8.0.20.0090.00916.90
8.0.00.0080.01216.91
7.4.150.0060.01216.57
7.4.140.0090.00916.39
7.4.130.0160.00516.62
7.4.120.0120.00516.48
7.4.110.0040.01216.48
7.4.100.0040.01216.55
7.4.90.0090.00916.48
7.4.80.0060.00916.49
7.4.70.0030.01316.43
7.4.60.0140.00316.35
7.4.50.0000.00616.20
7.4.40.0110.00316.30
7.4.30.0110.00616.54
7.4.00.0070.01014.84
7.3.270.0090.00616.33
7.3.260.0070.00916.29
7.3.250.0100.00716.28
7.3.240.0070.01016.63
7.3.230.0060.01516.40
7.3.210.0030.01516.69
7.3.200.0060.01219.39
7.3.190.0120.01016.32
7.3.180.0170.00316.24
7.3.170.0140.00416.66
7.3.160.0040.01116.38
7.3.120.0030.01014.84
7.3.110.0040.01514.91
7.3.100.0040.01214.86
7.3.90.0090.00014.75
7.3.80.0090.00614.69
7.3.70.0070.00714.81
7.3.60.0090.00614.78
7.3.50.0030.01014.74
7.3.40.0080.00314.93
7.3.30.0070.00714.94
7.3.20.0000.01216.41
7.3.10.0040.00416.89
7.3.00.0100.00016.75
7.2.330.0090.00916.84
7.2.320.0070.01116.68
7.2.310.0060.01316.50
7.2.300.0030.01316.61
7.2.290.0030.01316.27
7.2.250.0060.01314.74
7.2.240.0070.01015.09
7.2.230.0130.00014.55
7.2.220.0000.01214.83
7.2.210.0100.00314.68
7.2.200.0060.00914.88
7.2.190.0060.00615.07
7.2.180.0040.01114.73
7.2.170.0030.01015.05
7.1.330.0000.01515.61
7.1.320.0100.00315.40
7.1.310.0050.00515.79
7.1.300.0100.00715.48
7.1.290.0030.01015.41
7.1.280.0000.01215.66
7.1.270.0000.01315.68
7.1.260.0070.00415.42
7.1.70.0030.00516.93
7.1.60.0040.01519.40
7.1.50.0150.00616.81
7.1.00.0130.05322.54
7.0.200.0070.01016.72
7.0.140.0070.07021.96
7.0.120.0100.06022.15
7.0.60.0030.04320.02
7.0.50.0030.03717.83
7.0.40.0000.04720.12
7.0.30.0300.05020.09
7.0.20.0300.06720.21
7.0.10.0070.05020.10
7.0.00.0170.06720.09
5.6.210.0070.08320.75
5.6.200.0070.04318.15
5.6.190.0100.04020.57
5.6.180.0200.04720.39
5.6.170.0230.04320.53
5.6.160.0170.08020.55
5.6.150.0130.07318.19
5.6.140.0070.08318.20
5.6.130.0100.06718.25
5.6.120.0130.05320.90
5.6.110.0070.08320.98
5.6.100.0070.04021.00
5.6.90.0100.06020.98
5.6.80.0070.05020.36
5.5.350.0130.03720.43
5.5.340.0030.04318.05
5.5.330.0100.08020.21
5.5.320.0200.03720.32
5.5.310.0170.04320.31
5.5.300.0130.07318.05
5.5.290.0000.08018.02
5.5.280.0070.04320.75
5.5.270.0170.06720.87
5.5.260.0130.08720.64
5.5.250.0130.05320.70
5.5.240.0030.06020.27
5.4.450.1300.02719.34
5.4.440.1700.04719.36
5.4.430.1870.04319.18
5.4.420.1970.04719.44
5.4.410.1900.04019.19
5.4.400.1630.04319.17
5.4.390.1730.04718.97
5.4.380.1630.03319.16
5.4.370.1470.04019.21
5.4.360.1670.04019.03
5.4.350.1530.04019.05
5.4.340.1600.03719.09
5.4.320.0100.07319.21
5.4.310.0070.06719.12
5.4.300.0830.06019.17
5.4.290.1730.04018.99
5.4.280.1470.04018.91
5.4.270.1670.04019.15
5.4.260.1570.05018.99
5.4.250.2030.03318.77
5.4.240.1700.03319.31
5.4.230.1630.04019.17
5.4.220.1600.02719.21
5.4.210.1700.04319.11
5.4.200.1630.03718.85
5.4.190.1670.03019.20
5.4.180.0100.07019.11
5.4.170.0030.04718.77
5.4.160.0700.04719.06
5.4.150.1500.04019.04
5.4.140.1770.03716.53
5.4.130.1730.04316.37
5.4.120.1700.04716.39
5.4.110.1630.04716.45
5.4.100.1670.04016.51
5.4.90.1730.04316.27
5.4.80.1530.03016.35
5.4.70.1430.04016.50
5.4.60.1670.02716.34
5.4.50.1430.04016.38
5.4.40.0570.03016.36
5.4.30.0230.05316.42
5.4.20.0200.03716.48
5.4.10.1630.04716.54
5.4.00.1500.03715.84
5.3.290.1470.04014.68
5.3.280.1800.04014.56
5.3.270.1770.04014.82
5.3.260.1570.03314.51
5.3.250.1800.03314.53
5.3.240.1600.03714.75
5.3.230.1500.03714.82
5.3.220.1700.04714.57
5.3.210.1770.05014.64
5.3.200.1230.03714.56
5.3.190.0030.03714.47
5.3.180.0100.03014.50
5.3.170.1430.04314.64
5.3.160.1800.04714.71
5.3.150.1730.04714.68
5.3.140.1670.03014.52
5.3.130.1530.03314.48
5.3.120.1470.04314.57
5.3.110.1500.04014.54
5.3.100.1530.04714.05
5.3.90.1800.04314.01
5.3.80.1670.04014.09
5.3.70.1600.02714.23
5.3.60.1700.04713.90
5.3.50.0000.07314.16
5.3.40.0030.07013.88
5.3.30.0770.05313.83
5.3.20.1470.03713.70
5.3.10.1730.04713.88
5.3.00.1470.03713.55
5.2.170.1200.03011.15
5.2.160.1130.03011.06
5.2.150.1400.04311.29
5.2.140.1130.03311.14
5.2.130.1170.03011.26
5.2.120.1330.03711.21
5.2.110.1270.02311.07
5.2.100.1270.02711.05
5.2.90.1330.02011.34
5.2.80.1370.03711.14
5.2.70.0770.04311.10
5.2.60.0000.04011.27
5.2.50.0130.02311.24
5.2.40.0230.05310.90
5.2.30.0930.02310.92
5.2.20.1030.04011.04
5.2.10.0870.03010.77
5.2.00.0930.02710.68
5.1.60.0930.0279.97
5.1.50.1030.03310.08
5.1.40.1070.0379.88
5.1.30.0900.03010.42
5.1.20.0900.02710.31
5.1.10.1130.0339.94
5.1.00.1130.03010.11
5.0.50.0400.0238.67
5.0.40.0400.0208.50
5.0.30.0600.0478.14
5.0.20.0470.0238.32
5.0.10.0600.0338.15
5.0.00.0570.0478.31
4.4.90.0600.0237.71
4.4.80.0530.0237.71
4.4.70.0000.0207.71
4.4.60.0000.0377.71
4.4.50.0070.0307.71
4.4.40.0070.0377.71
4.4.30.0000.0177.71
4.4.20.0070.0137.71
4.4.10.0000.0177.71
4.4.00.0070.0307.71
4.3.110.0430.0177.71
4.3.100.0630.0207.71
4.3.90.0600.0277.71
4.3.80.0570.0437.71
4.3.70.0600.0207.71
4.3.60.0500.0137.71
4.3.50.0600.0177.71
4.3.40.0600.0377.71
4.3.30.0200.0207.71
4.3.20.0200.0177.71
4.3.10.0230.0277.71
4.3.00.0270.0107.71