3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __construct(string $a) { } } class B extends A { public function __construct(string $a, string $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.60.0060.01218.38
8.3.50.0140.00016.50
8.3.40.0040.01118.68
8.3.30.0070.00718.72
8.3.20.0040.00420.33
8.3.10.0050.00323.66
8.3.00.0040.00421.02
8.2.180.0040.01418.04
8.2.170.0070.00722.96
8.2.160.0100.00322.12
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00022.07
8.2.120.0030.00526.35
8.2.110.0100.00020.34
8.2.100.0070.00417.59
8.2.90.0030.00518.93
8.2.80.0030.00617.97
8.2.70.0100.00017.50
8.2.60.0050.00317.80
8.2.50.0080.00018.10
8.2.40.0040.00422.18
8.2.30.0040.00420.92
8.2.20.0000.00717.80
8.2.10.0040.00418.03
8.2.00.0000.00717.86
8.1.280.0110.00425.92
8.1.270.0040.00423.70
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.92
8.1.230.0090.00317.70
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0090.00017.23
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0050.00318.59
8.1.160.0030.00618.88
8.1.150.0040.00418.75
8.1.140.0000.00719.40
8.1.130.0000.00718.66
8.1.120.0040.00417.34
8.1.110.0040.00417.33
8.1.100.0040.00417.38
8.1.90.0060.00617.21
8.1.80.0000.00717.23
8.1.70.0030.00317.37
8.1.60.0040.00417.50
8.1.50.0040.00417.35
8.1.40.0030.00617.24
8.1.30.0090.00017.39
8.1.20.0060.00317.45
8.1.10.0050.00217.24
8.1.00.0040.00417.21
8.0.300.0000.00818.77
8.0.290.0030.00516.63
8.0.280.0000.00718.30
8.0.270.0070.00017.18
8.0.260.0040.00416.56
8.0.250.0000.00716.76
8.0.240.0070.00016.73
8.0.230.0000.00716.73
8.0.220.0070.00016.72
8.0.210.0000.00716.82
8.0.200.0040.00416.79
8.0.190.0030.00716.85
8.0.180.0070.00016.73
8.0.170.0030.00316.79
8.0.160.0000.00716.72
8.0.150.0000.00716.60
8.0.140.0070.00016.68
8.0.130.0050.00013.16
8.0.120.0070.00016.74
8.0.110.0050.00316.67
8.0.100.0030.00316.76
8.0.90.0000.00716.82
8.0.80.0040.01216.75
8.0.70.0000.00816.70
8.0.60.0000.00916.80
8.0.50.0040.00416.78
8.0.30.0120.00816.86
8.0.20.0120.00917.40
8.0.10.0040.00416.88
8.0.00.0000.01616.43
7.4.330.0020.00215.55
7.4.320.0000.00716.51
7.4.300.0030.00316.45
7.4.290.0080.00316.37
7.4.280.0060.00316.39
7.4.270.0070.00016.53
7.4.260.0060.00013.25
7.4.250.0030.00316.38
7.4.240.0070.00016.38
7.4.230.0000.00716.44
7.4.220.0060.01316.49
7.4.210.0100.00616.55
7.4.200.0000.00716.18
7.4.160.0110.00716.47
7.4.150.0060.01217.40
7.4.140.0100.01017.86
7.4.130.0130.01016.41
7.4.120.0100.00916.38
7.4.110.0070.01116.58
7.4.100.0100.01016.23
7.4.90.0030.01316.29
7.4.80.0080.00819.39
7.4.70.0130.00316.35
7.4.60.0120.00316.41
7.4.50.0060.00916.32
7.4.40.0060.01016.24
7.4.30.0060.00916.29
7.4.00.0020.01214.74
7.3.330.0000.00513.04
7.3.320.0000.00513.23
7.3.310.0000.00715.95
7.3.300.0040.00416.17
7.3.290.0030.00316.12
7.3.280.0090.00916.17
7.3.270.0030.01317.40
7.3.260.0090.00916.20
7.3.250.0120.00516.33
7.3.240.0080.00916.14
7.3.230.0100.00716.15
7.3.210.0060.00916.32
7.3.200.0100.00716.24
7.3.190.0030.01316.47
7.3.180.0100.00716.34
7.3.170.0060.00916.34
7.3.160.0090.00616.30
7.3.120.0100.00714.64
7.3.110.0030.01514.54
7.3.100.0000.01614.45
7.3.90.0070.00314.59
7.3.80.0060.00314.52
7.3.70.0070.01014.46
7.3.60.0040.01114.63
7.3.50.0060.01014.68
7.3.40.0090.00914.68
7.3.30.0070.00414.88
7.3.20.0080.00316.48
7.3.10.0080.00416.32
7.3.00.0050.00816.42
7.2.330.0060.01216.25
7.2.320.0110.00716.43
7.2.310.0080.01416.55
7.2.300.0070.00716.48
7.2.290.0070.01416.40
7.2.250.0030.01414.53
7.2.240.0030.01714.57
7.2.230.0070.00714.45
7.2.220.0070.00314.99
7.2.210.0070.01014.82
7.2.200.0110.00314.96
7.2.190.0070.00414.67
7.2.180.0090.00614.73
7.2.170.0100.01014.70
7.2.130.0070.00716.86
7.2.120.0140.00016.41
7.2.110.0030.01016.71
7.2.100.0050.00516.82
7.2.90.0030.00916.48
7.2.80.0070.00516.70
7.2.70.0100.00616.82
7.2.60.0090.00616.82
7.2.50.0000.01516.55
7.2.40.0030.01016.69
7.2.30.0090.00616.64
7.2.20.0040.01116.71
7.2.10.0070.00416.68
7.2.00.0040.00917.77
7.1.330.0030.01215.75
7.1.320.0070.00715.46
7.1.310.0030.01015.82
7.1.300.0000.01015.70
7.1.290.0060.00615.37
7.1.280.0040.01215.42
7.1.270.0080.00315.55
7.1.260.0030.01315.29
7.1.250.0030.00715.68
7.1.200.0150.00315.59
7.1.100.0070.00717.84
7.1.70.0080.00816.82
7.1.60.0600.01333.24
7.1.50.0300.01032.73
7.1.40.0970.01332.45
7.1.30.0430.01732.54
7.1.20.0130.02732.67
7.1.10.0430.01714.78
7.1.00.0230.01714.58
7.0.200.0200.01714.97
7.0.190.0470.01014.44
7.0.180.0030.01714.31
7.0.170.0000.01314.13
7.0.160.0470.01314.40
7.0.150.0030.01314.18
7.0.140.0330.00714.36
7.0.130.0370.01314.63
7.0.120.0370.01314.53
7.0.110.0200.01314.37
7.0.100.0230.01314.21
7.0.90.0400.00714.24
7.0.80.0330.01014.40
7.0.70.0000.01314.44
7.0.60.0730.00714.02
7.0.50.0270.00714.32
7.0.40.0530.00314.63
7.0.30.0330.01714.68
7.0.20.0430.01314.36
7.0.10.0400.01714.50
7.0.00.0470.01014.66

preferences:
57.29 ms | 400 KiB | 5 Q