3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private function __construct() { } } class B extends A { public function __construct() { } } new B;

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.0120.00316.50
8.3.60.0070.00716.38
8.3.50.0160.00322.92
8.3.40.0070.00718.73
8.3.30.0150.00018.80
8.3.20.0060.00320.21
8.3.10.0090.00020.27
8.3.00.0050.00320.92
8.2.180.0060.01218.41
8.2.170.0110.00422.96
8.2.160.0070.00720.35
8.2.150.0090.00024.18
8.2.140.0030.00924.66
8.2.130.0070.00026.16
8.2.120.0030.00619.36
8.2.110.0000.00919.27
8.2.100.0120.00017.78
8.2.90.0090.00019.09
8.2.80.0080.00019.38
8.2.70.0090.00017.50
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0060.00317.97
8.2.30.0020.00519.36
8.2.20.0020.00517.60
8.2.10.0050.00318.05
8.2.00.0080.00017.41
8.1.280.0070.01025.92
8.1.270.0040.00421.96
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0030.00622.25
8.1.230.0080.00421.03
8.1.220.0050.00318.77
8.1.210.0060.00318.86
8.1.200.0060.00617.22
8.1.190.0040.00417.28
8.1.180.0000.00918.10
8.1.170.0050.00318.46
8.1.160.0040.00418.75
8.1.150.0000.00718.80
8.1.140.0040.00417.37
8.1.130.0070.00017.76
8.1.120.0040.00417.23
8.1.110.0040.00417.30
8.1.100.0080.00017.34
8.1.90.0040.00417.36
8.1.80.0030.00517.24
8.1.70.0000.00717.24
8.1.60.0040.00417.54
8.1.50.0000.00917.47
8.1.40.0030.00617.31
8.1.30.0080.00017.63
8.1.20.0000.00717.51
8.1.10.0050.00317.50
8.1.00.0000.00817.32
8.0.300.0000.00819.88
8.0.290.0000.00717.16
8.0.280.0000.00718.30
8.0.270.0070.00317.24
8.0.260.0060.00017.05
8.0.250.0070.00016.94
8.0.240.0030.00316.75
8.0.230.0000.00616.70
8.0.220.0030.00316.74
8.0.210.0030.00316.77
8.0.200.0030.00316.86
8.0.190.0000.00816.82
8.0.180.0050.00316.82
8.0.170.0000.00816.84
8.0.160.0040.00416.84
8.0.150.0050.00316.71
8.0.140.0050.00316.60
8.0.130.0050.00013.27
8.0.120.0040.00416.62
8.0.110.0040.00416.65
8.0.100.0000.00916.62
8.0.90.0000.00716.58
8.0.80.0080.01116.72
8.0.70.0000.00816.80
8.0.60.0030.00316.70
8.0.50.0000.00716.62
8.0.30.0090.00916.88
8.0.20.0100.01017.40
8.0.10.0040.00416.69
8.0.00.0080.00816.72
7.4.330.0050.00015.02
7.4.320.0030.00316.45
7.4.300.0060.00016.43
7.4.290.0050.00216.45
7.4.280.0110.00016.36
7.4.270.0000.00816.47
7.4.260.0000.00716.46
7.4.250.0030.00516.41
7.4.240.0060.00116.50
7.4.230.0030.00316.41
7.4.220.0190.00616.38
7.4.210.0150.00016.56
7.4.200.0040.00416.31
7.4.160.0040.01216.57
7.4.150.0070.01317.40
7.4.140.0090.00817.86
7.4.130.0100.00716.50
7.4.120.0120.00516.47
7.4.110.0140.00316.31
7.4.100.0120.00416.29
7.4.90.0060.01016.45
7.4.80.0090.00919.39
7.4.70.0090.00616.57
7.4.60.0110.00516.53
7.4.50.0000.00416.33
7.4.40.0060.00916.31
7.4.30.0070.01016.34
7.4.00.0130.00014.60
7.3.330.0050.00013.20
7.3.320.0000.00513.21
7.3.310.0000.00716.21
7.3.300.0030.00316.18
7.3.290.0060.01016.21
7.3.280.0060.01316.18
7.3.270.0040.01517.40
7.3.260.0110.00716.32
7.3.250.0090.01016.31
7.3.240.0110.00616.16
7.3.230.0140.00416.39
7.3.210.0040.01316.23
7.3.200.0060.01519.39
7.3.190.0090.00916.16
7.3.180.0150.00016.41
7.3.170.0130.00616.39
7.3.160.0130.00316.42
7.3.120.0100.00614.69
7.3.110.0100.00614.62
7.3.100.0000.01414.63
7.3.90.0030.01014.76
7.3.80.0050.00514.66
7.3.70.0000.01414.82
7.3.60.0070.00714.46
7.3.50.0030.00914.54
7.3.40.0090.00614.84
7.3.30.0070.00714.61
7.3.20.0040.01416.29
7.3.10.0090.00516.31
7.3.00.0070.01016.47
7.2.330.0140.00316.48
7.2.320.0000.01516.43
7.2.310.0190.00016.24
7.2.300.0100.00816.61
7.2.290.0070.01716.37
7.2.240.0040.00714.50
7.2.230.0030.01215.11
7.2.220.0030.01314.78
7.2.210.0060.00914.65
7.2.200.0070.01014.73
7.2.190.0080.00614.91
7.2.180.0070.01114.92
7.2.170.0110.00714.94
7.2.160.0060.00914.90
7.2.150.0000.01016.80
7.2.140.0070.00816.50
7.2.130.0100.00716.60
7.2.120.0060.00816.73
7.2.110.0080.00616.48
7.2.100.0070.00816.42
7.2.90.0080.00616.57
7.2.80.0070.00916.63
7.2.70.0080.00716.52
7.2.60.0090.00616.42
7.2.50.0100.00716.62
7.2.40.0080.00716.53
7.2.30.0090.00616.61
7.2.20.0090.00716.57
7.2.10.0090.00816.64
7.2.00.0080.00917.12
7.1.330.0030.01015.75
7.1.320.0030.01315.71
7.1.310.0070.00715.71
7.1.300.0000.01615.54
7.1.290.0100.00015.68
7.1.280.0040.00715.61
7.1.270.0070.01015.59
7.1.260.0030.01015.71
7.1.250.0070.00615.33
7.1.200.0030.00915.66
7.1.100.0060.00317.62
7.1.70.0070.00017.09
7.1.60.0140.00719.34
7.1.50.0110.01416.53
7.1.00.0030.07322.45
7.0.200.0000.00816.65
7.0.140.0030.07321.99
7.0.60.0070.08719.88
7.0.50.0030.08317.83
7.0.40.0030.07320.05
7.0.30.0170.08320.24
7.0.20.0330.04020.19
7.0.10.0430.07320.33
7.0.00.0130.07320.44
5.6.280.0130.06320.99
5.6.210.0070.07020.61
5.6.200.0130.07718.29
5.6.190.0170.04720.39
5.6.180.0000.08720.43
5.6.170.0170.04720.52
5.6.160.0100.08020.61
5.6.150.0100.05318.18
5.6.140.0030.03718.15
5.6.130.0070.05018.15
5.6.120.0100.08320.89
5.6.110.0070.08720.99
5.6.100.0000.04720.98
5.6.90.0030.08321.01
5.6.80.0170.06320.47
5.6.70.0270.05320.35
5.5.350.0000.04020.45
5.5.340.0100.08018.14
5.5.330.0200.06320.43
5.5.320.0030.03720.52
5.5.310.0270.07720.24
5.5.300.0070.03717.98
5.5.290.0130.07318.08
5.5.280.0070.03720.77
5.5.270.0070.04320.77
5.5.260.0070.04020.77
5.5.250.0070.08320.64
5.5.240.0070.07320.37
5.4.450.4630.03319.32
5.4.440.3870.04319.57
5.4.430.3630.04019.27
5.4.420.3700.04319.31
5.4.410.3530.04319.30
5.4.400.3530.04319.16
5.4.390.3570.03319.21
5.4.380.3130.03319.34
5.4.370.3330.03719.14
5.4.360.3400.04019.07
5.4.350.3670.04019.09
5.4.340.3700.03718.83
5.4.320.4530.03019.22
5.4.310.4200.02718.89
5.4.300.3430.03719.13
5.4.290.4330.03718.85
5.4.280.4500.03719.15
5.4.270.4270.03719.09
5.4.260.4130.03019.01
5.4.250.5570.02319.07
5.4.240.4570.03018.94
5.4.230.4500.04019.07
5.4.220.3930.04719.08
5.4.210.3730.04018.87
5.4.200.4070.02719.15
5.4.190.4000.03719.11
5.4.180.4330.04018.93
5.4.170.3970.03719.13
5.4.160.4500.03719.07
5.4.150.4430.04019.29
5.4.140.3930.03316.40
5.4.130.3970.03716.38
5.4.120.3700.03716.32
5.4.110.3970.04016.32
5.4.100.3630.03716.31
5.4.90.3970.03016.59
5.4.80.3570.03316.59
5.4.70.3630.03016.41
5.4.60.4530.04016.48
5.4.50.4430.03716.51
5.4.40.4870.03316.32
5.4.30.4430.03716.53
5.4.20.4470.03716.42
5.4.10.4470.04016.51
5.4.00.4130.03315.95
5.3.290.4170.04014.75
5.3.280.4500.04014.57
5.3.270.4330.03314.60
5.3.260.4600.03314.71
5.3.250.4500.03314.68
5.3.240.3730.03014.71
5.3.230.3900.03714.57
5.3.220.3770.03714.64
5.3.210.3700.04014.49
5.3.200.3970.03014.56
5.3.190.4670.05014.68
5.3.180.4430.03314.54
5.3.170.4530.03314.47
5.3.160.4370.03314.48
5.3.150.4400.03714.78
5.3.140.4430.03714.66
5.3.130.4100.03314.47
5.3.120.4500.03314.52
5.3.110.3930.03314.66
5.3.100.4500.04314.19
5.3.90.3830.03714.04
5.3.80.3800.03313.92
5.3.70.2900.04713.95
5.3.60.3670.03714.02
5.3.50.3800.03013.92
5.3.40.3630.03313.85
5.3.30.3500.03013.84
5.3.20.4100.03313.70
5.3.10.3700.03013.57
5.3.00.3800.03313.66
5.2.170.2900.03011.07
5.2.160.3170.02311.08
5.2.150.3270.02711.07
5.2.140.3370.03311.05
5.2.130.3400.02711.27
5.2.120.2970.03311.01
5.2.110.3200.02711.01
5.2.100.3100.02711.08
5.2.90.3400.03711.06
5.2.80.3900.02711.00
5.2.70.3770.02711.03
5.2.60.3800.03311.13
5.2.50.4030.02310.94
5.2.40.2830.03011.00
5.2.30.2900.02011.06
5.2.20.2630.03311.08
5.2.10.2500.02311.08
5.2.00.2330.02710.77
5.1.60.2470.02310.22
5.1.50.2470.02310.00
5.1.40.2330.02310.10
5.1.30.2430.03010.31
5.1.20.2370.02710.51
5.1.10.2300.02310.29
5.1.00.2300.02710.07
5.0.50.1200.02010.00
5.0.40.1130.02310.00
5.0.30.1400.03010.00
5.0.20.1170.02010.00
5.0.10.1270.01310.00
5.0.00.1330.02710.00
4.4.90.0930.01710.00
4.4.80.1370.01710.00
4.4.70.1070.02010.00
4.4.60.1430.01310.00
4.4.50.1300.01310.00
4.4.40.1430.02010.00
4.4.30.1170.01310.00
4.4.20.0970.01710.00
4.4.10.1270.00710.00
4.4.00.1230.02710.00
4.3.110.1270.01310.00
4.3.100.1270.01710.00
4.3.90.1200.01310.00
4.3.80.1170.02310.00
4.3.70.1170.01310.00
4.3.60.1270.01710.00
4.3.50.1270.01710.00
4.3.40.1400.03010.00
4.3.30.0730.01010.00
4.3.20.0570.01710.00
4.3.10.0570.01710.00
4.3.00.0570.01710.00

preferences:
55.44 ms | 401 KiB | 5 Q