3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function foo(string $bar) { } } class B extends A { public function foo(object $bar) { } }

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.130.0040.00416.43
8.3.120.0080.00018.84
8.3.110.0060.01020.94
8.3.100.0100.00024.06
8.3.90.0130.00326.77
8.3.80.0090.00019.36
8.3.70.0130.00616.75
8.3.60.0140.00718.30
8.3.50.0080.01023.58
8.3.40.0120.00918.45
8.3.30.0120.00618.48
8.3.20.0050.00221.80
8.3.10.0070.00020.34
8.3.00.0000.00823.57
8.2.250.0130.00616.57
8.2.240.0080.00018.95
8.2.230.0040.00422.58
8.2.220.0000.01637.54
8.2.210.0080.00026.77
8.2.200.0090.00018.88
8.2.190.0000.01516.58
8.2.180.0120.00616.32
8.2.170.0000.01522.96
8.2.160.0040.01120.37
8.2.150.0080.00025.66
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0040.01126.16
8.2.110.0060.00320.52
8.2.100.0040.00819.51
8.2.90.0030.00617.63
8.2.80.0030.00618.48
8.2.70.0080.00017.38
8.2.60.0080.00017.50
8.2.50.0050.00318.05
8.2.40.0000.00717.97
8.2.30.0040.00417.80
8.2.20.0040.00417.84
8.2.10.0040.00419.10
8.2.00.0070.00019.21
8.1.300.0030.00618.45
8.1.290.0060.00330.84
8.1.280.0000.01825.92
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00920.40
8.1.230.0080.00321.91
8.1.220.0040.00418.56
8.1.210.0030.00618.77
8.1.200.0080.00017.10
8.1.190.0040.00417.10
8.1.180.0030.00618.10
8.1.170.0000.00717.62
8.1.160.0040.00418.94
8.1.150.0070.00018.67
8.1.140.0000.00722.14
8.1.130.0000.00620.13
8.1.120.0090.00017.23
8.1.110.0000.00717.35
8.1.100.0070.00017.33
8.1.90.0040.00417.35
8.1.80.0040.00417.23
8.1.70.0050.00217.34
8.1.60.0070.00017.38
8.1.50.0050.00317.25
8.1.40.0040.00417.41
8.1.30.0080.00017.46
8.1.20.0040.00417.55
8.1.10.0000.00817.25
8.1.00.0040.00417.32
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0040.00418.32
8.0.270.0000.00717.94
8.0.260.0030.00319.99
8.0.250.0040.00416.78
8.0.240.0100.00016.85
8.0.230.0040.00416.77
8.0.220.0000.00716.85
8.0.210.0060.00316.72
8.0.200.0000.00616.87
8.0.190.0000.00816.85
8.0.180.0000.00816.81
8.0.170.0040.00416.87
8.0.160.0000.00716.81
8.0.150.0000.00816.67
8.0.140.0030.00616.75
8.0.130.0000.00613.26
8.0.120.0040.00416.64
8.0.110.0040.00416.76
8.0.100.0040.00416.70
8.0.90.0000.00816.76
8.0.80.0030.01316.75
8.0.70.0000.00716.76
8.0.60.0020.00516.85
8.0.50.0050.00216.79
8.0.30.0030.01317.01
8.0.20.0090.01316.79
8.0.10.0030.00316.91
8.0.00.0070.01116.52
7.4.330.0030.00315.55
7.4.320.0030.00316.44
7.4.300.0030.00316.46
7.4.290.0000.00816.25
7.4.280.0030.00316.25
7.4.270.0000.00716.41
7.4.260.0030.00313.13
7.4.250.0070.00016.43
7.4.240.0040.00416.36
7.4.230.0030.00316.56
7.4.220.0040.00316.40
7.4.210.0060.00916.44
7.4.200.0040.00416.47
7.4.140.0040.01517.86
7.4.130.0140.00316.32
7.4.120.0160.00316.52
7.4.110.0140.00916.31
7.4.100.0090.00816.31
7.4.90.0090.00916.16
7.4.80.0030.01319.39
7.4.70.0120.00416.48
7.4.60.0060.01116.48
7.4.50.0030.01016.17
7.4.40.0080.00816.36
7.4.10.0040.01214.88
7.4.00.0080.00914.87
7.3.330.0030.00616.29
7.3.320.0000.00513.04
7.3.310.0000.00716.03
7.3.300.0000.00716.20
7.3.290.0080.00916.23
7.3.280.0070.00716.25
7.3.260.0140.00316.50
7.3.240.0080.00816.33
7.3.230.0110.00616.29
7.3.210.0070.01016.29
7.3.200.0090.00916.29
7.3.190.0070.01016.44
7.3.180.0090.00816.30
7.3.170.0070.01016.25
7.3.160.0100.01016.47
7.3.130.0090.00814.53
7.3.120.0080.01014.60
7.3.110.0090.00914.70
7.3.100.0060.00814.57
7.3.90.0070.00714.67
7.3.80.0070.00814.70
7.3.70.0060.00914.60
7.3.60.0040.00914.54
7.3.50.0060.00914.53
7.3.40.0050.00814.69
7.3.30.0040.00814.47
7.3.20.0050.00816.05
7.3.10.0060.00616.01
7.3.00.0080.00515.97
7.2.330.0140.00416.20
7.2.320.0140.00416.24
7.2.310.0030.01316.57
7.2.300.0130.00616.33
7.2.290.0070.01016.23
7.2.260.0070.01214.87
7.2.250.0070.00814.73
7.2.240.0070.00714.72
7.2.230.0060.00814.68
7.2.220.0070.00614.70
7.2.210.0080.00714.76
7.2.200.0040.01214.73
7.2.190.0030.00914.64
7.2.180.0050.00814.80
7.2.170.0070.00514.78
7.2.160.0060.01014.75
7.2.150.0050.00816.16
7.2.140.0080.00616.14
7.2.130.0060.00816.19
7.2.120.0060.00916.11
7.2.110.0080.00716.13
7.2.100.0120.00716.06
7.2.90.0020.01216.23
7.2.80.0080.01316.08
7.2.70.0030.01016.25
7.2.60.0060.00916.29
7.2.50.0050.00916.20
7.2.40.0080.00916.25
7.2.30.0050.00916.06
7.2.20.0070.00916.12
7.2.10.0050.01016.15
7.2.00.0070.00816.23

preferences:
28.23 ms | 403 KiB | 5 Q