3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); abstract class A { abstract public function foo(A $a): A; } class B extends A { public function foo(A $a): 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.00916.48
8.3.50.0110.00416.16
8.3.40.0140.00318.76
8.3.30.0070.00718.61
8.3.20.0060.00320.34
8.3.10.0030.00521.77
8.3.00.0040.00420.96
8.2.180.0150.00018.41
8.2.170.0110.00422.96
8.2.160.0130.00322.01
8.2.150.0000.00924.18
8.2.140.0070.00024.66
8.2.130.0000.00722.25
8.2.120.0040.00426.35
8.2.110.0080.00020.35
8.2.100.0040.00817.66
8.2.90.0040.00419.09
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0030.00617.91
8.2.50.0040.00418.10
8.2.40.0000.00822.33
8.2.30.0050.00320.79
8.2.20.0050.00317.95
8.2.10.0040.00417.82
8.2.00.0000.00717.82
8.1.280.0070.00725.92
8.1.270.0040.00422.11
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00322.68
8.1.230.0070.00319.09
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00717.23
8.1.190.0060.00318.89
8.1.180.0040.00418.10
8.1.170.0030.00518.37
8.1.160.0070.00018.87
8.1.150.0060.00318.70
8.1.140.0000.00819.41
8.1.130.0030.00318.80
8.1.120.0000.00817.30
8.1.110.0050.00317.28
8.1.100.0000.00817.40
8.1.90.0000.00717.34
8.1.80.0040.00417.20
8.1.70.0030.00317.27
8.1.60.0000.00817.46
8.1.50.0040.00417.30
8.1.40.0030.00617.37
8.1.30.0040.00417.56
8.1.20.0040.00417.51
8.1.10.0000.00817.38
8.1.00.0070.00017.24
8.0.300.0090.00018.77
8.0.290.0000.00816.58
8.0.280.0050.00318.32
8.0.270.0030.00316.99
8.0.260.0060.00016.61
8.0.250.0070.00016.79
8.0.240.0000.00916.75
8.0.230.0030.00316.81
8.0.220.0000.00716.80
8.0.210.0050.00316.78
8.0.200.0000.00616.76
8.0.190.0060.00616.80
8.0.180.0000.00716.77
8.0.170.0000.00716.69
8.0.160.0040.00416.66
8.0.150.0000.00816.69
8.0.140.0030.00616.61
8.0.130.0030.00313.14
8.0.120.0080.00016.58
8.0.110.0080.00016.66
8.0.100.0000.00816.60
8.0.90.0070.00016.55
8.0.80.0120.00916.72
8.0.70.0040.00416.62
8.0.60.0000.00716.70
8.0.50.0030.00516.58
8.0.30.0090.00916.90
8.0.20.0150.00417.40
8.0.10.0040.00416.93
8.0.00.0030.01416.46
7.4.330.0030.00315.55
7.4.320.0000.00616.35
7.4.300.0000.00616.38
7.4.290.0060.00016.50
7.4.280.0080.00016.33
7.4.270.0000.00716.31
7.4.260.0030.00313.14
7.4.250.0040.00416.43
7.4.240.0080.00016.47
7.4.230.0000.00716.21
7.4.220.0090.00916.41
7.4.210.0130.00716.49
7.4.200.0030.00516.55
7.4.160.0100.00616.39
7.4.150.0080.00817.40
7.4.140.0110.01117.86
7.4.130.0110.00716.24
7.4.120.0080.01416.34
7.4.110.0060.01716.40
7.4.100.0130.00616.38
7.4.90.0070.01016.55
7.4.80.0080.00819.39
7.4.70.0050.01016.37
7.4.60.0090.01216.54
7.4.50.0030.01016.40
7.4.40.0110.00616.32
7.4.30.0070.01316.27
7.3.330.0030.00313.10
7.3.320.0060.00013.25
7.3.310.0030.00316.09
7.3.300.0030.00316.23
7.3.290.0070.00716.21
7.3.280.0090.00816.19
7.3.270.0030.01417.40
7.3.260.0090.00916.26
7.3.250.0100.00816.28
7.3.240.0100.01016.32
7.3.230.0040.01216.34
7.3.210.0060.01216.09
7.3.200.0100.00616.50
7.3.190.0080.00816.36
7.3.180.0060.00916.22
7.3.170.0070.01016.27
7.3.160.0070.01416.39
7.2.330.0090.00816.50
7.2.320.0090.01316.44
7.2.310.0130.00316.29
7.2.300.0070.01116.16
7.2.290.0000.01716.59
7.1.60.0770.00733.13
7.1.50.1730.00732.88
7.1.40.0630.01032.36
7.1.30.0630.01032.74
7.1.20.0630.00732.41
7.1.10.0470.01014.66
7.1.00.0470.01314.74
7.0.200.0570.00714.72
7.0.190.0570.01714.77
7.0.180.0470.00714.31
7.0.170.0570.00314.21
7.0.160.0500.01314.14
7.0.150.0430.01314.27
7.0.140.0500.00714.30
7.0.130.0770.01314.73
7.0.120.0470.01014.57
7.0.110.0470.00714.22
7.0.100.0430.01014.21
7.0.90.0430.01314.52
7.0.80.0430.01314.53
7.0.70.0270.00314.38
7.0.60.0000.01313.92
7.0.50.0470.01314.30
7.0.40.0100.00714.57
7.0.30.0870.01314.48
7.0.20.0070.00714.51
7.0.10.0030.01014.47
7.0.00.0570.00714.35

preferences:
75.56 ms | 401 KiB | 5 Q