3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() { } } class Bar extends Foo { protected function __construct() { } } $bar = new Bar(); $bar->__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.70.0070.01118.30
8.3.60.0070.01116.37
8.3.50.0110.00616.46
8.3.40.0070.00718.93
8.3.30.0080.00818.52
8.3.20.0040.01120.73
8.3.10.0040.00421.78
8.3.00.0090.00018.09
8.2.180.0060.01616.63
8.2.170.0120.00622.96
8.2.160.0040.01120.38
8.2.150.0000.00725.66
8.2.140.0090.00024.66
8.2.130.0070.00020.29
8.2.120.0090.00626.35
8.2.110.0060.00320.33
8.2.100.0130.00017.78
8.2.90.0050.00319.14
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0080.00017.92
8.2.50.0050.00318.10
8.2.40.0040.00420.59
8.2.30.0000.00719.05
8.2.20.0040.00417.98
8.2.10.0000.00717.91
8.2.00.0000.00717.97
8.1.280.0150.00325.92
8.1.270.0000.00823.96
8.1.260.0080.00026.35
8.1.250.0080.00428.09
8.1.240.0030.00620.90
8.1.230.0060.00618.82
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0060.00317.10
8.1.180.0040.00418.10
8.1.170.0000.00818.46
8.1.160.0040.00418.85
8.1.150.0040.00418.66
8.1.140.0040.00419.55
8.1.130.0030.00318.82
8.1.120.0040.00417.31
8.1.110.0050.00317.29
8.1.100.0070.00017.35
8.1.90.0040.00417.34
8.1.80.0000.00717.34
8.1.70.0070.00017.35
8.1.60.0060.00317.52
8.1.50.0040.00417.47
8.1.40.0000.00817.43
8.1.30.0060.00317.50
8.1.20.0000.00917.58
8.1.10.0030.00517.48
8.1.00.0060.00317.43
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0070.00018.30
8.0.270.0060.00317.19
8.0.260.0000.00816.69
8.0.250.0030.00316.98
8.0.240.0040.00416.91
8.0.230.0070.00016.93
8.0.220.0000.00716.89
8.0.210.0030.00316.79
8.0.200.0000.00716.98
8.0.190.0040.00416.88
8.0.180.0040.00416.79
8.0.170.0030.00516.95
8.0.160.0020.00516.91
8.0.150.0000.00816.83
8.0.140.0070.00016.84
8.0.130.0000.00513.35
8.0.120.0050.00316.88
8.0.110.0040.00416.90
8.0.100.0000.00716.95
8.0.90.0040.00416.68
8.0.80.0030.01316.87
8.0.70.0070.00016.75
8.0.60.0070.00016.74
8.0.50.0040.00416.75
8.0.30.0070.01017.14
8.0.20.0080.01017.40
8.0.10.0000.00816.96
8.0.00.0110.00616.66
7.4.330.0060.00015.55
7.4.320.0060.00016.41
7.4.300.0050.00216.48
7.4.290.0030.00716.47
7.4.280.0080.00016.34
7.4.270.0000.00716.35
7.4.260.0000.00513.15
7.4.250.0070.00016.38
7.4.240.0030.00316.52
7.4.230.0030.00316.18
7.4.220.0100.01416.37
7.4.210.0100.01016.55
7.4.200.0060.00016.53
7.4.160.0140.00416.53
7.4.150.0060.01217.40
7.4.140.0110.01217.86
7.4.130.0200.00716.52
7.4.120.0120.00916.52
7.4.110.0080.00816.42
7.4.100.0030.01616.53
7.4.90.0050.01116.41
7.4.80.0120.00619.39
7.4.70.0070.01016.50
7.4.60.0090.00616.49
7.4.50.0030.01116.51
7.4.40.0090.00616.50
7.4.30.0110.00616.54
7.3.330.0000.00513.30
7.3.320.0070.00013.22
7.3.310.0030.00316.20
7.3.300.0000.00816.12
7.3.290.0100.00416.26
7.3.280.0090.00816.31
7.3.270.0170.00017.40
7.3.260.0120.00616.28
7.3.250.0100.00816.45
7.3.240.0060.01116.34
7.3.230.0070.01016.34
7.3.210.0070.01016.29
7.3.200.0060.01016.23
7.3.190.0060.01116.39
7.3.180.0140.00316.47
7.3.170.0060.01016.49
7.3.160.0060.01116.33
7.2.330.0030.01416.47
7.2.320.0070.01016.59
7.2.310.0090.00916.52
7.2.300.0170.00016.54
7.2.290.0110.00616.34
7.1.60.0200.02032.99
7.1.50.1070.01732.52
7.1.40.0330.01732.42
7.1.30.1230.01732.53
7.1.20.0370.01732.55
7.1.10.0070.01014.47
7.1.00.0970.01714.36
7.0.200.0070.01714.64
7.0.190.1770.01314.85
7.0.180.0070.01014.15
7.0.170.1000.01714.43
7.0.160.0070.01014.30
7.0.150.0230.00314.03
7.0.140.1030.01014.24
7.0.130.1100.01014.71
7.0.120.1130.01714.24
7.0.110.0900.01314.38
7.0.100.1000.01314.52
7.0.90.0870.01314.23
7.0.80.1070.01014.40
7.0.70.0900.01014.34
7.0.60.0970.00714.25
7.0.50.0800.01314.29
7.0.40.1170.01314.27
7.0.30.0970.01314.40
7.0.20.1700.01314.61
7.0.10.1170.00314.66
7.0.00.1070.01314.17

preferences:
44.22 ms | 401 KiB | 5 Q