3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Main { public function __construct() {} } class Foo extends Main { private function __construct() {} }

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.0140.00016.36
8.3.50.0070.01322.05
8.3.40.0040.01118.54
8.3.30.0100.00318.79
8.3.20.0070.00020.35
8.3.10.0000.01018.58
8.3.00.0000.00819.13
8.2.180.0110.00418.41
8.2.170.0070.01022.96
8.2.160.0070.01020.22
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.64
8.2.110.0030.00719.30
8.2.100.0040.00817.66
8.2.90.0000.00817.91
8.2.80.0040.00417.38
8.2.70.0000.00917.25
8.2.60.0050.00317.91
8.2.50.0030.00518.07
8.2.40.0000.00819.95
8.2.30.0040.00417.78
8.2.20.0040.00417.42
8.2.10.0070.00017.92
8.2.00.0040.00417.59
8.1.280.0110.00425.92
8.1.270.0040.00420.52
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.43
8.1.230.0130.00020.88
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0040.00417.23
8.1.190.0000.00817.10
8.1.180.0070.00718.10
8.1.170.0050.00318.77
8.1.160.0050.00318.74
8.1.150.0020.00518.77
8.1.140.0050.00217.25
8.1.130.0000.00717.79
8.1.120.0070.00017.29
8.1.110.0000.00717.39
8.1.100.0040.00417.34
8.1.90.0030.00717.25
8.1.80.0030.00717.23
8.1.70.0070.00017.29
8.1.60.0060.00317.48
8.1.50.0040.00417.28
8.1.40.0000.00717.27
8.1.30.0030.00617.41
8.1.20.0000.00717.47
8.1.10.0070.00017.40
8.1.00.0040.00417.30
8.0.300.0040.00419.91
8.0.290.0000.00816.63
8.0.280.0070.00018.34
8.0.270.0030.00317.12
8.0.260.0030.00317.20
8.0.250.0030.00316.80
8.0.240.0000.00716.84
8.0.230.0000.00716.74
8.0.220.0000.00716.72
8.0.210.0040.00416.69
8.0.200.0060.00016.78
8.0.190.0000.00716.86
8.0.180.0020.00516.85
8.0.170.0000.00716.80
8.0.160.0040.00416.81
8.0.150.0040.00416.75
8.0.140.0080.00016.73
8.0.130.0030.00313.27
8.0.120.0000.00716.66
8.0.110.0030.00516.68
8.0.100.0030.00316.78
8.0.90.0050.00216.65
8.0.80.0030.01116.81
8.0.70.0040.00416.59
8.0.60.0080.00016.71
8.0.50.0040.00416.64
8.0.30.0100.01017.02
8.0.20.0150.00417.40
8.0.10.0000.00716.84
8.0.00.0080.00916.46
7.4.330.0030.00315.02
7.4.320.0000.00916.46
7.4.300.0060.00016.26
7.4.290.0060.00316.32
7.4.280.0030.00616.37
7.4.270.0000.00716.23
7.4.260.0110.00016.43
7.4.250.0040.00416.32
7.4.240.0020.00516.33
7.4.230.0000.00716.52
7.4.220.0060.01016.32
7.4.210.0000.01416.49
7.4.200.0030.00316.53
7.4.160.0110.00416.36
7.4.150.0150.00417.40
7.4.140.0110.00817.86
7.4.130.0220.00016.30
7.4.120.0080.01116.48
7.4.110.0170.01416.43
7.4.100.0070.01316.43
7.4.90.0110.00616.55
7.4.80.0130.00319.39
7.4.70.0060.00916.31
7.4.60.0000.01516.47
7.4.50.0000.00416.23
7.4.40.0160.00616.16
7.4.30.0100.00616.23
7.3.330.0080.00013.16
7.3.320.0040.00413.12
7.3.310.0070.00016.15
7.3.300.0030.00316.09
7.3.290.0040.00916.16
7.3.280.0050.01116.21
7.3.270.0160.00017.40
7.3.260.0080.00916.21
7.3.240.0090.00616.27
7.3.230.0100.00616.39
7.3.210.0100.00716.18
7.3.200.0090.01019.39
7.3.190.0060.01216.19
7.3.180.0030.01316.41
7.3.170.0090.00916.38
7.3.160.0100.00616.24
7.2.330.0180.00016.20
7.2.320.0110.00616.41
7.2.310.0130.00316.39
7.2.300.0120.00816.52
7.2.290.0070.01016.45
5.4.350.0040.03612.03
5.4.340.0070.03412.03
5.4.320.0080.04912.51
5.4.310.0090.04012.51
5.4.300.0070.03512.51
5.4.290.0040.04012.51
5.4.280.0090.04312.41
5.4.270.0060.03812.40
5.4.260.0040.03912.41
5.4.250.0070.04812.41
5.4.240.0040.03812.41
5.4.230.0040.04712.40
5.4.220.0040.03812.40
5.4.210.0090.04312.40
5.4.200.0070.04612.40
5.4.190.0080.04212.39
5.4.180.0040.03912.39
5.4.170.0070.04612.41
5.4.160.0060.03612.41
5.4.150.0070.03612.40
5.4.140.0090.03612.08
5.4.130.0060.03612.07
5.4.120.0080.03312.03
5.4.110.0050.03712.02
5.4.100.0060.03712.02
5.4.90.0050.04112.02
5.4.80.0070.03512.02
5.4.70.0110.03412.02
5.4.60.0110.04112.02
5.4.50.0080.03212.02
5.4.40.0050.03512.01
5.4.30.0050.03912.01
5.4.20.0060.03912.00
5.4.10.0060.03812.00
5.4.00.0080.04311.50
5.3.290.0080.03812.80
5.3.280.0060.03712.71
5.3.270.0100.03612.72
5.3.260.0090.04912.72
5.3.250.0080.03512.72
5.3.240.0090.03912.72
5.3.230.0050.04112.71
5.3.220.0060.04012.68
5.3.210.0060.03812.68
5.3.200.0140.03412.68
5.3.190.0060.04412.68
5.3.180.0030.04012.67
5.3.170.0130.04412.67
5.3.160.0090.04912.67
5.3.150.0080.04112.67
5.3.140.0100.04712.66
5.3.130.0070.03912.65
5.3.120.0030.04512.66
5.3.110.0060.04212.66
5.3.100.0070.04012.12
5.3.90.0090.03412.10
5.3.80.0050.04412.10
5.3.70.0110.03412.10
5.3.60.0050.03812.08
5.3.50.0080.03512.02
5.3.40.0090.04212.02
5.3.30.0080.03911.98
5.3.20.0090.03511.77
5.3.10.0080.03611.73
5.3.00.0140.03911.73
5.2.170.0090.0339.22
5.2.160.0070.0319.23
5.2.150.0070.0319.23
5.2.140.0020.0389.22
5.2.130.0060.0279.18
5.2.120.0050.0349.18
5.2.110.0070.0309.19
5.2.100.0080.0279.18
5.2.90.0060.0319.19
5.2.80.0050.0309.18
5.2.70.0050.0299.18
5.2.60.0040.0329.14
5.2.50.0030.0329.11
5.2.40.0070.0369.07
5.2.30.0080.0339.05
5.2.20.0040.0339.04
5.2.10.0050.0278.95
5.2.00.0040.0408.81
5.1.60.0040.0358.09
5.1.50.0050.0248.09
5.1.40.0020.0278.07
5.1.30.0070.0278.42
5.1.20.0020.0288.45
5.1.10.0040.0268.16
5.1.00.0050.0268.16
5.0.50.0080.0176.64
5.0.40.0060.0236.50
5.0.30.0040.0316.31
5.0.20.0040.0296.28
5.0.10.0030.0226.26
5.0.00.0050.0336.25
4.4.90.0020.0184.78
4.4.80.0030.0164.75
4.4.70.0040.0154.76
4.4.60.0020.0164.75
4.4.50.0030.0164.77
4.4.40.0020.0274.71
4.4.30.0030.0154.76
4.4.20.0040.0154.84
4.4.10.0030.0164.85
4.4.00.0040.0254.76
4.3.110.0020.0164.67
4.3.100.0030.0164.67
4.3.90.0020.0164.63
4.3.80.0040.0244.58
4.3.70.0040.0134.63
4.3.60.0020.0154.63
4.3.50.0010.0174.63
4.3.40.0020.0244.54
4.3.30.0050.0123.30
4.3.20.0020.0163.28
4.3.10.0020.0173.23
4.3.00.0130.0236.49

preferences:
55.26 ms | 401 KiB | 5 Q