3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Controller { public function __construct() { } public function loser() { echo "loser"; } } class Home extends Controller { public function __construct() { } } $hello = new Home(); $hello->loser();

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.70.0130.00316.63
8.3.60.0110.00718.43
8.3.50.0150.00618.20
8.3.40.0090.00618.68
8.3.30.0110.00418.67
8.3.20.0040.00418.98
8.3.10.0030.00623.66
8.3.00.0000.00723.61
8.2.190.0110.00416.63
8.2.180.0090.00616.38
8.2.170.0080.00622.96
8.2.160.0070.00718.91
8.2.150.0030.00524.18
8.2.140.0100.00024.66
8.2.130.0000.00720.35
8.2.120.0070.00026.35
8.2.110.0060.00322.23
8.2.100.0040.00819.64
8.2.90.0030.00517.50
8.2.80.0040.00418.61
8.2.70.0040.00417.50
8.2.60.0000.00817.93
8.2.50.0080.00018.10
8.2.40.0000.00819.34
8.2.30.0040.00520.52
8.2.20.0030.00617.98
8.2.10.0070.00017.86
8.2.00.0030.00619.35
8.1.280.0150.00025.92
8.1.270.0040.00423.88
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00020.40
8.1.230.0030.00717.70
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0060.00317.22
8.1.190.0000.01117.23
8.1.180.0000.00818.10
8.1.170.0040.00418.75
8.1.160.0000.00718.73
8.1.150.0050.00318.77
8.1.140.0040.00418.99
8.1.130.0000.00719.00
8.1.120.0040.00417.38
8.1.110.0100.00017.38
8.1.100.0040.00417.39
8.1.90.0090.00017.21
8.1.80.0000.00817.28
8.1.70.0030.00317.30
8.1.60.0000.00817.51
8.1.50.0000.00817.54
8.1.40.0030.00517.42
8.1.30.0040.00417.53
8.1.20.0080.00017.72
8.1.10.0030.00517.48
8.1.00.0000.00717.39
8.0.300.0090.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.37
8.0.270.0070.00017.29
8.0.260.0000.00717.24
8.0.250.0070.00016.82
8.0.240.0040.00716.79
8.0.230.0030.00316.87
8.0.220.0080.00016.84
8.0.210.0000.00716.67
8.0.200.0050.00316.76
8.0.190.0070.00016.92
8.0.180.0040.00716.83
8.0.170.0030.00616.84
8.0.160.0050.00216.73
8.0.150.0030.00616.81
8.0.140.0040.00416.77
8.0.130.0030.00313.25
8.0.120.0040.00416.78
8.0.110.0040.00416.66
8.0.100.0000.00716.67
8.0.90.0040.00316.91
8.0.80.0070.01416.78
8.0.70.0000.00716.78
8.0.60.0030.00416.89
8.0.50.0040.00416.86
8.0.30.0070.01017.01
8.0.20.0120.00617.40
8.0.10.0000.00717.04
8.0.00.0080.01216.77
7.4.330.0020.00215.55
7.4.320.0030.00316.44
7.4.300.0000.00716.39
7.4.290.0040.00416.54
7.4.280.0000.00716.57
7.4.270.0030.00516.49
7.4.260.0030.00316.55
7.4.250.0030.00316.60
7.4.240.0030.00316.50
7.4.230.0000.00716.52
7.4.220.0030.00316.38
7.4.210.0070.00716.60
7.4.200.0030.00316.59
7.4.160.0070.00916.39
7.4.140.0090.01017.86
7.4.130.0130.00316.40
7.4.120.0100.00816.44
7.4.110.0060.01316.55
7.4.100.0040.01316.36
7.4.90.0120.00616.39
7.4.80.0120.00419.39
7.4.70.0180.00316.56
7.4.60.0070.01016.57
7.4.50.0040.01116.43
7.4.40.0140.00716.31
7.4.00.0060.00914.99
7.3.330.0000.00613.17
7.3.320.0050.00013.24
7.3.310.0000.00716.11
7.3.300.0030.00316.26
7.3.290.0000.00616.12
7.3.280.0090.00816.21
7.3.260.0110.00616.35
7.3.240.0100.01016.22
7.3.230.0140.00416.53
7.3.210.0140.01016.39
7.3.200.0190.00616.26
7.3.190.0090.00616.25
7.3.180.0060.00916.29
7.3.170.0100.00716.54
7.3.160.0090.00916.43
7.2.330.0090.00916.64
7.2.320.0070.01016.30
7.2.310.0080.00816.81
7.2.300.0160.00016.59
7.2.290.0120.00916.45
7.2.80.0550.00314.79
7.2.70.1110.00314.63
7.2.60.0880.00315.06
7.2.50.0900.01014.65
7.2.40.0630.01514.99
7.2.30.1340.01514.98
7.2.20.0670.00314.96
7.2.10.1090.01014.79
7.2.00.0750.00914.39
7.1.200.0210.00315.36
7.1.190.0860.00313.70
7.1.180.0910.01313.90
7.1.170.0720.01113.41
7.1.160.0750.00913.81
7.1.150.0620.00713.74
7.1.140.0870.00913.91
7.1.130.1490.00313.88
7.1.120.0530.01013.73
7.1.110.0670.01313.57
7.1.100.0880.00313.84
7.1.90.0750.01013.95
7.1.80.0660.00613.82
7.1.70.0980.01513.86
7.1.60.0920.00931.47
7.1.50.0880.01031.50
7.1.40.1180.01631.79
7.1.30.1250.01631.48
7.1.20.0810.01331.89
7.1.10.0580.01013.62
7.1.00.0530.00313.84

preferences:
50 ms | 401 KiB | 5 Q