3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Foo { public function __construct() { } } class Bar extends Foo { protected 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.0130.01016.63
8.3.50.0080.00816.34
8.3.40.0110.00418.53
8.3.30.0070.00718.51
8.3.20.0070.00718.73
8.3.10.0070.00021.87
8.3.00.0040.00719.66
8.2.180.0060.01218.38
8.2.170.0000.01422.96
8.2.160.0100.00720.35
8.2.150.0040.00425.66
8.2.140.0070.00724.66
8.2.130.0050.00220.57
8.2.120.0040.00426.35
8.2.110.0060.01522.23
8.2.100.0000.01317.54
8.2.90.0030.00618.92
8.2.80.0000.00817.97
8.2.70.0060.00317.38
8.2.60.0030.00517.80
8.2.50.0040.00418.10
8.2.40.0020.00520.45
8.2.30.0070.00019.09
8.2.20.0000.00717.98
8.2.10.0050.00317.80
8.2.00.0030.00617.91
8.1.270.0040.00423.97
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.79
8.1.230.0040.00822.20
8.1.220.0070.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.11
8.1.190.0040.00417.11
8.1.180.0030.00618.10
8.1.170.0060.00318.57
8.1.160.0040.00418.85
8.1.150.0000.00718.75
8.1.140.0030.00719.41
8.1.130.0030.00318.75
8.1.120.0040.00417.36
8.1.110.0030.00517.30
8.1.100.0000.00817.37
8.1.90.0030.00517.30
8.1.80.0040.00417.22
8.1.70.0000.00617.34
8.1.60.0030.00517.45
8.1.50.0000.00917.39
8.1.40.0070.00017.28
8.1.30.0070.00017.41
8.1.20.0040.00417.50
8.1.10.0000.00717.42
8.1.00.0030.00517.27
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00718.21
8.0.270.0000.00817.07
8.0.260.0040.00416.60
8.0.250.0030.00316.69
8.0.240.0050.00216.64
8.0.230.0000.00716.82
8.0.220.0000.00716.63
8.0.210.0000.00716.72
8.0.200.0030.00516.68
8.0.190.0050.00316.77
8.0.180.0030.00516.70
8.0.170.0030.00416.78
8.0.160.0030.00716.76
8.0.150.0000.00716.78
8.0.140.0030.00316.59
8.0.130.0060.00013.19
8.0.120.0000.00716.60
8.0.110.0000.00716.65
8.0.100.0040.00416.70
8.0.90.0000.00816.66
8.0.80.0060.01616.72
8.0.70.0070.00016.81
8.0.60.0070.00016.57
8.0.50.0000.00716.61
8.0.30.0130.00416.97
8.0.20.0120.01217.40
8.0.10.0080.00016.92
8.0.00.0100.01016.64
7.4.330.0020.00215.55
7.4.320.0030.00316.27
7.4.300.0000.00716.35
7.4.290.0100.00016.44
7.4.280.0050.00316.34
7.4.270.0030.00416.47
7.4.260.0000.00513.08
7.4.250.0030.00316.23
7.4.240.0050.00216.34
7.4.230.0060.00016.52
7.4.220.0060.01216.56
7.4.210.0050.00916.54
7.4.200.0040.00416.36
7.4.160.0040.01116.30
7.4.150.0190.00017.40
7.4.140.0170.00717.86
7.4.130.0060.01316.47
7.4.120.0090.00916.36
7.4.110.0110.00716.31
7.4.100.0100.00716.32
7.4.90.0140.00316.24
7.4.80.0100.01319.39
7.4.70.0090.00616.19
7.4.60.0040.01216.30
7.4.50.0070.01116.46
7.4.40.0070.01016.49
7.4.30.0110.00616.47
7.3.330.0040.00412.98
7.3.320.0060.00013.16
7.3.310.0030.00316.16
7.3.300.0000.00716.03
7.3.290.0060.01116.12
7.3.280.0080.00816.14
7.3.270.0140.00317.40
7.3.260.0110.00816.39
7.3.250.0060.01216.31
7.3.240.0070.01416.30
7.3.230.0070.01016.10
7.3.210.0060.01216.02
7.3.200.0100.00616.18
7.3.190.0070.01016.43
7.3.180.0100.00616.36
7.3.170.0070.01116.25
7.3.160.0090.00616.36
7.2.330.0090.00916.52
7.2.320.0140.00716.54
7.2.310.0110.01116.59
7.2.300.0070.01016.46
7.2.290.0120.00416.61
7.1.60.0300.01033.29
7.1.50.0300.01332.87
7.1.40.0530.02032.42
7.1.30.0230.02032.41
7.1.20.0330.00732.63
7.1.10.3100.01314.48
7.1.00.0030.01714.49
7.0.200.1500.01314.79
7.0.190.0100.01014.61
7.0.180.2900.00714.13
7.0.170.0070.01014.36
7.0.160.2070.01714.02
7.0.150.4130.01314.14
7.0.140.3430.01314.10
7.0.130.3630.01314.43
7.0.120.0100.01314.54
7.0.110.3170.01314.21
7.0.100.1870.01714.22
7.0.90.3870.00714.12
7.0.80.2870.01014.24
7.0.70.3300.01314.18
7.0.60.2970.00714.23
7.0.50.2170.01314.28
7.0.40.2330.00714.43
7.0.30.2170.01314.40
7.0.20.2200.00714.34
7.0.10.2570.01014.34
7.0.00.2230.00714.61

preferences:
48.52 ms | 400 KiB | 5 Q