3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function test() { print $this::class; } } $f = new foo(); $f->test();

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.3.60.0130.00718.30
8.3.50.0140.00621.93
8.3.40.0120.00318.71
8.3.30.0070.00718.82
8.3.20.0040.00420.16
8.3.10.0040.00421.78
8.3.00.0070.00019.06
8.2.180.0000.02116.63
8.2.170.0070.00722.96
8.2.160.0030.01022.21
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00419.67
8.2.110.0040.01822.29
8.2.100.0030.00618.81
8.1.280.0070.01125.92
8.1.270.0000.00818.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00818.48
8.1.230.0110.00018.57
5.4.390.0000.06318.98
5.4.380.0030.07719.25
5.4.370.1730.03319.14
5.4.360.1970.04018.95
5.4.350.1800.03719.24
5.4.340.1770.03719.21
5.4.320.1730.04019.15
5.4.310.2030.04319.17
5.4.300.2100.03319.14
5.4.290.1830.04319.19
5.4.280.1830.03719.32
5.4.270.1870.03319.05
5.4.260.1070.05019.31
5.4.250.0030.04319.23
5.4.240.0030.04318.94
5.4.230.1530.03719.30
5.4.220.1670.04019.09
5.4.210.1830.03319.05
5.4.200.1670.04019.05
5.4.190.2130.04718.86
5.4.180.1830.03719.13
5.4.170.1630.03718.79
5.4.160.1770.03719.04
5.4.150.1730.04318.96
5.4.140.1800.04016.57
5.4.130.1730.03716.50
5.4.120.0100.03316.44
5.4.110.0000.03716.30
5.4.100.0900.03716.40
5.4.90.1670.03016.50
5.4.80.1970.04316.43
5.4.70.1530.03716.49
5.4.60.1930.03016.57
5.4.50.1700.03316.38
5.4.40.1930.03316.55
5.4.30.2200.03716.42
5.4.20.1800.03316.56
5.4.10.1700.04016.42
5.4.00.1800.03715.84
5.3.290.0800.03714.58
5.3.280.0070.03314.57
5.3.270.0030.05314.66
5.3.260.1670.03714.50
5.3.250.1800.03714.61
5.3.240.1870.03014.61
5.3.230.1830.03714.50
5.3.220.1900.04314.64
5.3.210.1900.04014.58
5.3.200.1900.03014.54
5.3.190.1900.04314.71
5.3.180.2200.04314.54
5.3.170.2230.03714.68
5.3.160.2000.03714.47
5.3.150.2030.03014.57
5.3.140.1930.03714.48
5.3.130.2100.03314.77
5.3.120.2100.03714.63
5.3.110.1870.04014.52
5.3.100.2100.04014.05
5.3.90.1900.04014.02
5.3.80.2000.04313.93
5.3.70.1770.03313.96
5.3.60.2230.05014.05
5.3.50.0430.03714.19
5.3.40.0030.07313.92
5.3.30.0270.04713.91
5.3.20.1800.03713.71
5.3.10.1970.04013.57
5.3.00.2000.04013.55
5.2.170.1700.03311.23
5.2.160.1800.03011.23
5.2.150.1530.03711.15
5.2.140.1730.03311.05
5.2.130.1530.03011.00
5.2.120.0170.04711.18
5.2.110.0100.05311.32
5.2.100.0000.06711.06
5.2.90.1500.03011.11
5.2.80.1730.03011.23
5.2.70.0070.06011.19
5.2.60.0030.04311.13
5.2.50.0030.05310.89
5.2.40.1300.03711.00
5.2.30.1300.03711.04
5.2.20.1170.03011.20
5.2.10.1370.03710.84
5.2.00.1430.03310.62
5.1.60.1430.03010.08
5.1.50.1230.0209.97
5.1.40.1670.02710.05
5.1.30.1500.03010.25
5.1.20.1230.03010.36
5.1.10.1470.03310.05
5.1.00.1270.04310.20
5.0.50.0600.0238.55
5.0.40.0800.0278.49
5.0.30.0030.0438.45
5.0.20.0030.0238.13
5.0.10.0030.0208.23
5.0.00.0000.0338.25
4.4.90.0030.0178.06
4.4.80.0030.0138.06
4.4.70.0000.0178.06
4.4.60.0000.0378.06
4.4.50.0530.0208.06
4.4.40.0970.0278.06
4.4.30.0870.0238.06
4.4.20.0970.0238.06
4.4.10.1000.0208.06
4.4.00.0000.0378.06
4.3.110.0030.0178.06
4.3.100.0000.0208.06
4.3.90.0030.0378.06
4.3.80.0000.0308.06
4.3.70.0030.0278.06
4.3.60.0000.0208.06
4.3.50.0070.0308.06
4.3.40.0070.0208.06
4.3.30.0000.0178.06
4.3.20.0000.0408.06
4.3.10.0030.0338.06
4.3.00.0500.0208.06

preferences:
35.93 ms | 401 KiB | 5 Q