3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { class T {} } namespace { class Test { public function first(string $str): \ A \ T { function nested() { } } public function second(int $i): int { } } }

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.01316.72
8.3.50.0100.01020.97
8.3.40.0110.00418.75
8.3.30.0160.00318.56
8.3.20.0040.00420.07
8.3.10.0040.00421.73
8.3.00.0030.00623.66
8.2.180.0060.00918.43
8.2.170.0140.00018.79
8.2.160.0070.00722.96
8.2.150.0020.00524.18
8.2.140.0000.00724.66
8.2.130.0080.00019.21
8.2.120.0030.00626.35
8.2.110.0090.00020.53
8.2.100.0080.00317.66
8.2.90.0040.00419.00
8.2.80.0000.00717.97
8.2.70.0040.00417.63
8.2.60.0090.00017.80
8.2.50.0060.00318.07
8.2.40.0000.00822.20
8.2.30.0030.00320.61
8.2.20.0000.00717.46
8.2.10.0000.00718.01
8.2.00.0040.00417.90
8.1.280.0040.01125.92
8.1.270.0040.00720.09
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00721.83
8.1.230.0080.00420.84
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0050.00517.11
8.1.190.0050.00317.10
8.1.180.0050.00318.10
8.1.170.0040.00418.66
8.1.160.0070.00020.66
8.1.150.0040.00418.61
8.1.140.0030.00519.38
8.1.130.0030.00317.55
8.1.120.0000.00717.21
8.1.110.0050.00217.31
8.1.100.0030.00617.28
8.1.90.0050.00217.27
8.1.80.0040.00417.34
8.1.70.0000.00717.28
8.1.60.0000.00717.48
8.1.50.0040.00417.25
8.1.40.0040.00417.26
8.1.30.0040.00417.45
8.1.20.0000.00817.44
8.1.10.0040.00417.49
8.1.00.0070.00017.39
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0000.00718.36
8.0.270.0030.00317.12
8.0.260.0000.00817.18
8.0.250.0000.00616.89
8.0.240.0050.00216.93
8.0.230.0070.00016.83
8.0.220.0040.00416.72
8.0.210.0080.00016.87
8.0.200.0040.00416.81
8.0.190.0030.00616.94
8.0.180.0050.00216.84
8.0.170.0000.00816.95
8.0.160.0040.00416.92
8.0.150.0000.00716.73
8.0.140.0030.00316.68
8.0.130.0030.00313.29
8.0.120.0040.00416.73
8.0.110.0040.00416.87
8.0.100.0070.00016.66
8.0.90.0000.00716.87
8.0.80.0100.00516.82
8.0.70.0000.00716.87
8.0.60.0070.00016.93
8.0.50.0030.00316.74
8.0.30.0060.01616.96
8.0.20.0140.00517.40
8.0.10.0000.00716.89
8.0.00.0090.00916.60
7.4.330.0020.00216.72
7.4.320.0070.00016.38
7.4.300.0000.00616.28
7.4.290.0070.00016.30
7.4.280.0000.00716.28
7.4.270.0020.00516.39
7.4.260.0030.00316.46
7.4.250.0000.00816.26
7.4.240.0000.00716.46
7.4.230.0040.00416.46
7.4.220.0190.00716.40
7.4.210.0000.01416.39
7.4.200.0000.00716.46
7.4.160.0120.00316.43
7.4.150.0060.01217.40
7.4.140.0090.01117.86
7.4.130.0080.01016.40
7.4.120.0080.00816.41
7.4.110.0030.01416.45
7.4.100.0040.01316.24
7.4.90.0100.01016.21
7.4.80.0090.01319.39
7.4.70.0060.01016.57
7.4.60.0060.01116.29
7.4.50.0070.00716.49
7.4.40.0040.01416.32
7.4.30.0120.00916.16
7.4.00.0000.01014.75
7.3.330.0000.00513.13
7.3.320.0060.00013.04
7.3.310.0030.00316.07
7.3.300.0000.00716.22
7.3.290.0110.00516.10
7.3.280.0060.01116.15
7.3.270.0120.00617.40
7.3.260.0100.00716.22
7.3.250.0060.01116.39
7.3.240.0060.01016.29
7.3.230.0030.01616.39
7.3.210.0060.00916.13
7.3.200.0170.00616.16
7.3.190.0100.00616.45
7.3.180.0070.01016.43
7.3.170.0070.01316.32
7.3.160.0030.01316.25
7.2.330.0090.00916.40
7.2.320.0100.00716.50
7.2.310.0100.00616.18
7.2.300.0100.00616.29
7.2.290.0060.01116.27
7.2.60.0110.00316.81
7.2.00.0170.00319.14
7.1.200.0060.00615.27
7.1.100.0090.00617.81
7.1.70.0060.00616.75
7.1.60.0110.01419.52
7.1.50.0060.00616.81
7.1.00.0030.07722.41
7.0.200.0120.00616.63
7.0.60.0070.06319.96
7.0.50.0070.08317.87
7.0.40.0170.07720.11
7.0.30.0230.07020.09
7.0.20.0470.07320.08
7.0.10.0070.09020.33
7.0.00.0070.06720.06
5.6.280.0030.06721.03
5.6.210.0070.07020.70
5.6.200.0070.08018.12
5.6.190.0130.06320.61
5.6.180.0370.05720.61
5.6.170.0200.05320.51
5.6.160.0070.08720.50
5.6.150.0100.08018.18
5.6.140.0030.07018.21
5.6.130.0030.04018.28
5.6.120.0070.05021.00
5.6.110.0070.08321.02
5.6.100.0070.08320.94
5.6.90.0130.08021.10
5.6.80.0130.07720.51
5.5.350.4000.04320.44
5.5.340.0030.05718.07
5.5.330.0100.08020.42
5.5.320.0300.05020.27
5.5.310.0070.05020.28
5.5.300.0000.04717.94
5.5.290.0100.07717.97
5.5.280.0000.04720.96
5.5.270.0070.04020.68
5.5.260.0030.04720.87
5.5.250.0030.04020.59
5.5.240.0070.07720.27

preferences:
49.01 ms | 401 KiB | 5 Q