3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo{ function method($a){ } } class Bar extends Foo{ function method(array $a){ } }

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.1.70.0000.00717.36
8.1.60.0070.00017.50
8.1.50.0040.00417.39
8.1.40.0000.00817.41
8.1.30.0000.00817.36
8.1.20.0040.00417.50
8.1.10.0080.00017.34
8.1.00.0040.00417.24
8.0.200.0000.00616.84
8.0.190.0050.00316.93
8.0.180.0000.00816.76
8.0.170.0040.00416.82
8.0.160.0000.00816.88
8.0.150.0070.00416.79
8.0.140.0090.00016.77
8.0.130.0030.00313.13
8.0.120.0050.00216.71
8.0.110.0030.00316.91
8.0.100.0070.00016.68
8.0.90.0000.00816.70
8.0.80.0110.01016.77
8.0.70.0000.00716.84
8.0.60.0040.00416.70
8.0.50.0050.00316.76
8.0.30.0140.00417.01
8.0.20.0070.01417.40
8.0.10.0030.00616.99
8.0.00.0160.00016.82
7.4.300.0030.00316.45
7.4.290.0000.00816.45
7.4.280.0050.00316.38
7.4.270.0030.00316.39
7.4.260.0030.00316.47
7.4.250.0030.00316.44
7.4.240.0040.00416.43
7.4.230.0030.00316.46
7.4.220.0090.00916.38
7.4.210.0070.00816.47
7.4.200.0030.00316.35
7.4.160.0130.00316.31
7.4.150.0190.00417.40
7.4.140.0130.00817.86
7.4.130.0090.00816.46
7.4.120.0090.01216.38
7.4.110.0130.00616.33
7.4.100.0120.00916.49
7.4.90.0070.01616.46
7.4.80.0060.01319.39
7.4.70.0030.01316.56
7.4.60.0070.01416.30
7.4.50.0070.00716.17
7.4.40.0130.00316.44
7.4.30.0060.00916.23
7.4.10.0070.01115.02
7.4.00.0040.00914.76
7.3.330.0000.00513.23
7.3.320.0050.00013.09
7.3.310.0000.00716.13
7.3.300.0000.00716.09
7.3.290.0060.00916.23
7.3.280.0110.00916.24
7.3.270.0130.01317.40
7.3.260.0150.00816.31
7.3.250.0090.01116.21
7.3.240.0080.01116.47
7.3.230.0040.01416.30
7.3.210.0040.01216.29
7.3.200.0150.00716.36
7.3.190.0130.00316.16
7.3.180.0080.00816.30
7.3.170.0120.00616.33
7.3.160.0070.00916.45
7.3.130.0070.01014.64
7.3.120.0050.01214.91
7.3.110.0070.01214.75
7.3.100.0070.00814.83
7.3.90.0030.00614.69
7.3.80.0080.00514.53
7.3.70.0090.00614.65
7.3.60.0070.00714.52
7.3.50.0080.00514.49
7.3.40.0070.00814.51
7.3.30.0050.00714.67
7.3.20.0080.00616.56
7.3.10.0040.00916.49
7.3.00.0050.00816.60
7.2.330.0030.01416.23
7.2.320.0030.01316.52
7.2.310.0080.00816.47
7.2.300.0100.00616.57
7.2.290.0100.00516.34
7.2.260.0000.01514.81
7.2.250.0080.01014.78
7.2.240.0080.01014.50
7.2.230.0100.00514.75
7.2.220.0030.01014.47
7.2.210.0060.00714.65
7.2.200.0050.00814.86
7.2.190.0020.00914.71
7.2.180.0040.01114.64
7.2.170.0070.00514.75
7.2.160.0100.00714.75
7.2.150.0040.01416.67
7.2.140.0000.01216.68
7.2.130.0060.00816.68
7.2.120.0060.00816.63
7.2.110.0050.01216.50
7.2.100.0040.00916.78
7.2.90.0060.00716.63
7.2.80.0070.00516.50
7.2.70.0030.00816.60
7.2.60.0040.01016.56
7.2.50.0030.01216.58
7.2.40.0030.00916.49
7.2.30.0070.00916.68
7.2.20.0100.00716.79
7.2.10.0060.00516.74
7.2.00.0060.00717.60
7.1.330.0030.01315.70
7.1.320.0050.00815.51
7.1.310.0090.00415.50
7.1.300.0020.01015.65
7.1.290.0070.00515.60
7.1.280.0060.00615.58
7.1.270.0030.01015.70
7.1.260.0030.00815.64
7.1.250.0030.00815.45
7.1.240.0000.01115.40
7.1.230.0070.01015.68
7.1.220.0030.00615.59
7.1.210.0140.00015.70
7.1.200.0050.01015.63
7.1.190.0000.01315.29
7.1.180.0000.01415.72
7.1.170.0000.01115.67
7.1.160.0080.00315.59
7.1.150.0040.00815.52
7.1.140.0000.01015.70
7.1.130.0030.00915.67
7.1.120.0040.00715.58
7.1.110.0110.00015.60
7.1.100.0070.00715.77
7.1.90.0070.00715.67
7.1.80.0000.01315.65
7.1.70.0010.00716.20
7.1.60.0070.00916.19
7.1.50.0070.01016.04
7.1.40.0130.00724.70
7.1.30.0180.00824.77
7.1.20.0100.00824.91
7.1.10.0080.00315.96
7.1.00.0030.00815.71
7.0.330.0040.01115.18
7.0.320.0030.00615.45
7.0.310.0020.00515.16
7.0.300.0070.00715.21
7.0.290.0030.00815.26
7.0.280.0080.00415.21
7.0.270.0030.00714.92
7.0.260.0000.01115.14
7.0.250.0040.00415.20
7.0.240.0040.01115.25
7.0.230.0030.01015.02
7.0.220.0070.00715.21
7.0.210.0000.00915.23
7.0.200.0030.01015.96
7.0.190.0040.00415.24
7.0.180.0020.00915.59
7.0.170.0050.01015.69
7.0.160.0050.00715.63
7.0.150.0060.00515.57
7.0.140.0050.01015.55
7.0.130.0070.00515.79
7.0.120.0050.00815.67
7.0.110.0070.00815.50
7.0.100.0060.00815.60
7.0.90.0000.01315.54
7.0.80.0000.01115.76
7.0.70.0050.00815.74
7.0.60.0000.01115.69
7.0.50.0020.00715.83
7.0.40.0020.00714.77
7.0.30.0030.01014.78
7.0.20.0030.01214.83
7.0.10.0020.01014.75
7.0.00.0050.01014.66
5.6.400.0030.01214.01
5.6.390.0060.00314.14
5.6.380.0000.01413.92
5.6.370.0030.01014.09
5.6.360.0090.00014.07
5.6.350.0030.00614.53
5.6.340.0070.01014.10
5.6.330.0040.00414.20
5.6.320.0030.00913.79
5.6.310.0040.00714.07
5.6.300.0070.00713.72
5.6.290.0040.00814.08
5.6.280.0000.01113.87
5.6.270.0110.00413.95
5.6.260.0030.01414.35
5.6.250.0080.00613.90
5.6.240.0080.00414.07
5.6.230.0030.01014.05
5.6.220.0080.00314.13
5.6.210.0120.00314.08
5.6.200.0050.00314.25
5.6.190.0030.01014.04
5.6.180.0070.00714.15
5.6.170.0050.00513.98
5.6.160.0030.01014.11
5.6.150.0040.00714.32
5.6.140.0110.00314.27
5.6.130.0030.01014.18
5.6.120.0000.00913.96
5.6.110.0030.01314.06
5.6.100.0030.01014.22
5.6.90.0090.00614.11
5.6.80.0060.00313.95
5.6.70.0040.01114.15
5.6.60.0000.01413.93
5.6.50.0030.00714.06
5.6.40.0070.00714.06
5.6.30.0030.00914.11
5.6.20.0070.00714.16
5.6.10.0040.01113.87
5.6.00.0030.01014.31

preferences:
22.8 ms | 408 KiB | 11 Q