3v4l.org

run code in 300+ PHP versions simultaneously
<?php 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.0120.00916.50
8.3.50.0140.00016.58
8.3.40.0140.00018.47
8.3.30.0140.00718.54
8.3.20.0080.00618.97
8.3.10.0080.00021.73
8.3.00.0100.00017.84
8.2.180.0040.01118.41
8.2.170.0110.00422.96
8.2.160.0130.00020.45
8.2.150.0040.00425.66
8.2.140.0050.00524.66
8.2.130.0070.00020.35
8.2.120.0050.00226.35
8.2.110.0030.00622.26
8.2.100.0090.00617.66
8.2.90.0060.00319.09
8.2.80.0030.00617.97
8.2.70.0000.00917.50
8.2.60.0040.00417.91
8.2.50.0000.00818.10
8.2.40.0080.00020.61
8.2.30.0040.00419.02
8.2.20.0030.00317.83
8.2.10.0000.00717.79
8.2.00.0050.00317.79
8.1.280.0030.01025.92
8.1.270.0030.00623.91
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0060.00323.70
8.1.230.0050.00522.27
8.1.220.0000.00717.74
8.1.210.0080.00018.77
8.1.200.0000.00917.23
8.1.190.0040.00417.10
8.1.180.0020.00518.10
8.1.170.0040.00418.50
8.1.160.0040.00418.87
8.1.150.0040.00418.67
8.1.140.0090.00019.46
8.1.130.0000.00718.71
8.1.120.0040.00417.27
8.1.110.0030.00617.29
8.1.100.0000.00817.32
8.1.90.0040.00417.23
8.1.80.0070.00017.21
8.1.70.0000.00717.35
8.1.60.0040.00417.36
8.1.50.0070.00017.38
8.1.40.0000.00817.41
8.1.30.0070.00017.43
8.1.20.0000.00717.36
8.1.10.0040.00417.36
8.1.00.0040.00417.29
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0070.00018.25
8.0.270.0070.00016.98
8.0.260.0000.00616.68
8.0.250.0000.00716.84
8.0.240.0040.00416.86
8.0.230.0000.00716.75
8.0.220.0000.00716.78
8.0.210.0000.00616.76
8.0.200.0000.00816.68
8.0.190.0030.00616.82
8.0.180.0030.00516.80
8.0.170.0040.00416.75
8.0.160.0040.00416.78
8.0.150.0000.00716.75
8.0.140.0000.00716.61
8.0.130.0000.00513.25
8.0.120.0040.00416.70
8.0.110.0050.00316.74
8.0.100.0000.00716.53
8.0.90.0030.00516.63
8.0.80.0110.01116.74
8.0.70.0000.00716.80
8.0.60.0030.00516.54
8.0.50.0050.00216.71
8.0.30.0110.00817.03
8.0.20.0080.01117.40
8.0.10.0030.00516.99
8.0.00.0090.00916.57
7.4.330.0020.00215.55
7.4.320.0000.00616.35
7.4.300.0000.00616.45
7.4.290.0070.00316.31
7.4.280.0000.00816.38
7.4.270.0040.00416.35
7.4.260.0000.00613.19
7.4.250.0050.00216.32
7.4.240.0030.00316.47
7.4.230.0000.00716.57
7.4.220.0060.01216.33
7.4.210.0110.00716.34
7.4.200.0070.00016.46
7.4.160.0130.00516.25
7.4.150.0150.00617.40
7.4.140.0120.01017.86
7.4.130.0120.00616.50
7.4.120.0070.01116.43
7.4.110.0140.00816.40
7.4.100.0130.00316.29
7.4.90.0070.01016.52
7.4.80.0090.01219.39
7.4.70.0120.00616.13
7.4.60.0100.00716.27
7.4.50.0070.00716.10
7.4.40.0130.00316.38
7.4.30.0160.00016.37
7.3.330.0040.00413.23
7.3.320.0020.00213.08
7.3.310.0040.00416.16
7.3.300.0000.00716.21
7.3.290.0090.00616.14
7.3.280.0090.00816.16
7.3.270.0080.00917.40
7.3.260.0110.00616.33
7.3.250.0100.01216.17
7.3.240.0130.00616.24
7.3.230.0100.01016.14
7.3.210.0100.00716.25
7.3.200.0030.01316.37
7.3.190.0110.00816.28
7.3.180.0070.00916.13
7.3.170.0110.00616.25
7.3.160.0060.00916.17
7.2.330.0070.01016.29
7.2.320.0090.00916.45
7.2.310.0080.00816.48
7.2.300.0130.01016.54
7.2.290.0030.01516.60
7.1.60.1870.01733.20
7.1.50.2300.02032.86
7.1.40.1870.01032.59
7.1.30.3030.01732.48
7.1.20.2370.01032.55
7.1.10.2300.00714.48
7.1.00.2100.01314.81
7.0.200.2570.01314.70
7.0.190.2530.00714.56
7.0.180.2530.00714.19
7.0.170.2600.01714.30
7.0.160.3070.01714.13
7.0.150.2270.01314.26
7.0.140.2070.01314.46
7.0.130.3230.01714.55
7.0.120.2730.01314.54
7.0.110.1930.01314.20
7.0.100.2770.00714.27
7.0.90.2800.00714.24
7.0.80.2200.01014.27
7.0.70.2270.01314.20
7.0.60.3230.00714.23
7.0.50.2870.01314.41
7.0.40.2800.01714.52
7.0.30.2130.01314.54
7.0.20.2430.00714.21
7.0.10.2270.01314.40
7.0.00.2400.01314.36

preferences:
59.48 ms | 400 KiB | 5 Q