3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function test($foo = null, $bar = null) {} } class Baz extends Foo { public function test(...$args) {} }

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.70.0180.00318.43
8.3.60.0090.00616.50
8.3.50.0120.00921.89
8.3.40.0120.00318.52
8.3.30.0140.00718.52
8.3.20.0000.00720.16
8.3.10.0030.01023.67
8.3.00.0090.00319.13
8.2.190.0140.00018.16
8.2.180.0120.00918.29
8.2.170.0160.00322.96
8.2.160.0100.01020.38
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00317.38
8.2.110.0060.00320.48
8.2.100.0040.00817.68
8.2.90.0040.00419.09
8.2.80.0060.00317.97
8.2.70.0030.00517.50
8.2.60.0040.00717.91
8.2.50.0090.00318.07
8.2.40.0040.00419.31
8.2.30.0000.00720.66
8.2.20.0000.00717.54
8.2.10.0050.00317.91
8.2.00.0050.00217.80
8.1.280.0100.00325.92
8.1.270.0030.00523.97
8.1.260.0060.00326.35
8.1.250.0050.00228.09
8.1.240.0050.00522.47
8.1.230.0100.00017.42
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0000.00817.10
8.1.180.0000.00818.10
8.1.170.0000.00818.50
8.1.160.0070.00021.99
8.1.150.0070.00018.76
8.1.140.0050.00319.50
8.1.130.0030.00317.47
8.1.120.0070.00017.34
8.1.110.0000.00717.21
8.1.100.0070.00017.23
8.1.90.0040.00317.38
8.1.80.0030.00517.32
8.1.70.0000.00617.29
8.1.60.0040.00417.43
8.1.50.0030.00517.40
8.1.40.0030.00517.45
8.1.30.0040.00417.51
8.1.20.0040.00417.50
8.1.10.0040.00417.26
8.1.00.0060.00317.34
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.31
8.0.270.0030.00317.12
8.0.260.0020.00517.08
8.0.250.0000.00816.69
8.0.240.0050.00216.82
8.0.230.0000.00816.71
8.0.220.0000.00716.68
8.0.210.0040.00416.64
8.0.200.0050.00216.79
8.0.190.0080.00016.78
8.0.180.0070.00016.78
8.0.170.0000.00816.76
8.0.160.0030.00316.69
8.0.150.0040.00416.70
8.0.140.0030.00316.79
8.0.130.0050.00013.14
8.0.120.0040.00416.77
8.0.110.0030.00616.74
8.0.100.0050.00216.61
8.0.90.0000.00716.64
8.0.80.0090.00616.82
8.0.70.0000.00716.77
8.0.60.0040.00416.79
8.0.50.0080.00016.80
8.0.30.0110.00916.91
8.0.20.0100.01117.40
8.0.10.0030.00516.86
8.0.00.0100.00916.59
7.4.330.0000.00515.08
7.4.320.0070.00016.36
7.4.300.0030.00316.34
7.4.290.0000.00716.38
7.4.280.0070.00316.37
7.4.270.0040.00416.30
7.4.260.0030.00316.37
7.4.250.0000.00716.36
7.4.240.0020.00516.48
7.4.230.0000.00716.55
7.4.220.0060.01516.34
7.4.210.0070.00716.35
7.4.200.0030.00416.50
7.4.160.0090.00616.33
7.4.150.0130.00717.40
7.4.140.0170.00517.86
7.4.130.0090.00716.20
7.4.120.0080.00816.39
7.4.110.0130.00616.47
7.4.100.0100.00716.51
7.4.90.0090.00616.29
7.4.80.0170.00319.39
7.4.70.0130.00316.30
7.4.60.0100.00716.54
7.4.50.0030.00516.18
7.4.40.0140.00316.61
7.4.30.0130.00716.39
7.4.00.0090.00914.63
7.3.330.0020.00213.01
7.3.320.0000.00613.25
7.3.310.0000.00716.05
7.3.300.0080.00016.28
7.3.290.0080.00616.20
7.3.280.0090.00716.21
7.3.270.0100.00717.40
7.3.260.0100.00616.25
7.3.250.0080.01016.31
7.3.240.0140.00816.25
7.3.230.0130.00416.39
7.3.210.0110.00616.25
7.3.200.0090.00616.20
7.3.190.0120.00316.33
7.3.180.0100.00716.37
7.3.170.0100.01116.27
7.3.160.0060.01116.43
7.2.330.0060.01116.48
7.2.320.0130.00916.31
7.2.310.0050.01116.35
7.2.300.0070.01016.48
7.2.290.0060.01216.17
7.2.60.0030.01016.83
7.2.00.0060.00619.00
7.1.200.0030.01015.45
7.1.100.0070.01017.96
7.1.70.0030.00517.05
7.1.60.0090.01519.43
7.1.50.0000.01516.69
7.1.00.0000.08022.36
7.0.200.0040.00714.78
7.0.60.0100.05020.02
7.0.50.0100.04017.87
7.0.40.0070.05720.27
7.0.30.0300.06720.05
7.0.20.0270.08720.19
7.0.10.0030.08720.15
7.0.00.0070.04020.32
5.6.280.0000.03320.93
5.6.210.0100.07720.47
5.6.200.0070.06318.20
5.6.190.0030.04320.57
5.6.180.0200.05320.61
5.6.170.0270.09020.44
5.6.160.0030.04020.47
5.6.150.0030.05318.19
5.6.140.0100.06318.28
5.6.130.0100.07318.15
5.6.120.0100.03320.90
5.6.110.0000.04720.98
5.6.100.0170.07721.05
5.6.90.0130.07721.08
5.6.80.0100.06320.39
5.5.350.0270.08020.35
5.5.340.0130.04318.05
5.5.330.0030.08720.28
5.5.320.0230.04720.35
5.5.310.0230.05020.34
5.5.300.0030.04718.04
5.5.290.0000.08718.08
5.5.280.0100.04320.90
5.5.270.0030.05320.88
5.5.260.0100.08320.76
5.5.250.0100.05720.69
5.5.240.0100.07720.27
5.4.450.0930.05319.46
5.4.440.0730.06319.58
5.4.430.0800.06019.61
5.4.420.0700.05719.64
5.4.410.0670.05719.48
5.4.400.0770.04319.38
5.4.390.0830.06019.29
5.4.380.0730.05019.38
5.4.370.0570.05719.13
5.4.360.0600.05719.16
5.4.350.0700.05318.98
5.4.340.0800.06719.22
5.4.320.0600.05318.98
5.4.310.0630.05319.05
5.4.300.0630.05719.21
5.4.290.0730.05019.25
5.4.280.0670.05719.25
5.4.270.0700.04719.22
5.4.260.0670.05018.84
5.4.250.0700.05019.04
5.4.240.0670.05318.86
5.4.230.0670.05019.12
5.4.220.0670.05319.27
5.4.210.0630.05319.14
5.4.200.0630.05318.97
5.4.190.0670.06719.21
5.4.180.0730.05319.15
5.4.170.0600.06719.27
5.4.160.0630.05718.81
5.4.150.0570.06719.03
5.4.140.0700.05016.52
5.4.130.0770.03716.75
5.4.120.0670.05016.48
5.4.110.0670.05316.63
5.4.100.0670.05016.44
5.4.90.0800.06316.65
5.4.80.0700.04316.29
5.4.70.0770.04016.22
5.4.60.0700.04316.60
5.4.50.0770.06016.49
5.4.40.0600.04716.59
5.4.30.0770.04016.58
5.4.20.0570.05016.67
5.4.10.0630.05316.57
5.4.00.0900.05315.91

preferences:
42.14 ms | 401 KiB | 5 Q