3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function first(string $str): string { 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.70.0070.00718.43
8.3.60.0040.01418.31
8.3.50.0100.00721.95
8.3.40.0120.00318.60
8.3.30.0100.00718.42
8.3.20.0000.00720.21
8.3.10.0040.00421.77
8.3.00.0060.00323.57
8.2.190.0060.00918.04
8.2.180.0150.00318.29
8.2.170.0110.00422.96
8.2.160.0160.00320.43
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0070.00320.90
8.2.120.0040.00426.35
8.2.110.0030.00622.27
8.2.100.0110.00017.93
8.2.90.0040.00419.11
8.2.80.0050.00317.97
8.2.70.0090.00017.50
8.2.60.0040.00417.92
8.2.50.0040.00418.07
8.2.40.0000.00822.34
8.2.30.0030.00620.61
8.2.20.0040.00417.60
8.2.10.0080.00017.93
8.2.00.0050.00318.02
8.1.280.0160.00025.92
8.1.270.0000.00820.30
8.1.260.0070.00028.09
8.1.250.0060.00328.09
8.1.240.0060.00322.04
8.1.230.0100.00019.01
8.1.220.0000.00717.74
8.1.210.0050.00318.77
8.1.200.0030.00617.10
8.1.190.0030.00517.10
8.1.180.0000.00818.10
8.1.170.0050.00318.51
8.1.160.0070.00020.66
8.1.150.0040.00418.71
8.1.140.0000.00819.35
8.1.130.0000.00717.49
8.1.120.0040.00317.33
8.1.110.0050.00217.22
8.1.100.0040.00417.35
8.1.90.0040.00417.33
8.1.80.0040.00417.29
8.1.70.0000.00717.25
8.1.60.0030.00517.36
8.1.50.0060.00317.39
8.1.40.0000.00817.37
8.1.30.0040.00417.50
8.1.20.0030.00517.41
8.1.10.0000.00717.29
8.1.00.0040.00417.32
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0030.00318.18
8.0.270.0040.00417.12
8.0.260.0030.00317.11
8.0.250.0030.00316.72
8.0.240.0080.00016.73
8.0.230.0050.00316.84
8.0.220.0030.00716.66
8.0.210.0030.00316.79
8.0.200.0000.00616.80
8.0.190.0000.00816.82
8.0.180.0040.00416.79
8.0.170.0000.00816.81
8.0.160.0050.00316.79
8.0.150.0030.00316.60
8.0.140.0000.00716.76
8.0.130.0060.00013.17
8.0.120.0000.00816.77
8.0.110.0000.00816.68
8.0.100.0000.00816.79
8.0.90.0040.00416.80
8.0.80.0050.01016.69
8.0.70.0000.00716.61
8.0.60.0040.00416.62
8.0.50.0020.00516.71
8.0.30.0090.00916.64
8.0.20.0140.00617.40
8.0.10.0000.00716.91
8.0.00.0120.00816.56
7.4.330.0000.00416.89
7.4.320.0000.00616.45
7.4.300.0030.00316.46
7.4.290.0000.00816.46
7.4.280.0000.00816.47
7.4.270.0040.00416.49
7.4.260.0030.00516.34
7.4.250.0070.00016.39
7.4.240.0030.00416.38
7.4.230.0030.00316.49
7.4.220.0140.01116.29
7.4.210.0030.01016.55
7.4.200.0000.00616.44
7.4.160.0090.00616.39
7.4.150.0060.01117.40
7.4.140.0140.01117.86
7.4.130.0040.01616.39
7.4.120.0140.00316.29
7.4.110.0130.00316.22
7.4.100.0160.00616.25
7.4.90.0110.00516.30
7.4.80.0030.01419.39
7.4.70.0100.00616.54
7.4.60.0100.00716.13
7.4.50.0070.00716.42
7.4.40.0130.00316.16
7.4.30.0150.00616.29
7.4.00.0030.01014.57
7.3.330.0000.00613.17
7.3.320.0020.00313.04
7.3.310.0090.00016.07
7.3.300.0060.00016.19
7.3.290.0070.00916.17
7.3.280.0050.01216.12
7.3.270.0100.01017.40
7.3.260.0130.01016.30
7.3.250.0060.01016.24
7.3.240.0140.00316.32
7.3.230.0080.00816.39
7.3.210.0030.01316.45
7.3.200.0100.00716.43
7.3.190.0100.01016.27
7.3.180.0120.01216.45
7.3.170.0100.00716.34
7.3.160.0090.00616.39
7.3.10.0100.00716.32
7.3.00.0100.00516.33
7.2.330.0030.01416.57
7.2.320.0100.01016.54
7.2.310.0090.01316.62
7.2.300.0070.01016.32
7.2.290.0090.01216.42
7.2.130.0110.00716.39
7.2.120.0080.00916.38
7.2.110.0080.00916.32
7.2.100.0080.01116.44
7.2.90.0110.00616.42
7.2.80.0120.00416.64
7.2.70.0140.00316.61
7.2.60.0170.00716.53
7.2.50.0080.00816.38
7.2.40.0120.00316.51
7.2.30.0160.00716.57
7.2.20.0090.00916.46
7.2.10.0120.00616.57
7.2.00.0110.00817.09
7.1.250.0110.00715.39
7.1.200.0080.00815.70
7.1.100.0080.01117.40
7.1.70.0070.00716.98
7.1.60.0110.01419.52
7.1.50.0040.01516.60
7.1.00.0070.07322.33
7.0.200.0000.00916.69
7.0.60.0100.07720.05
7.0.50.0100.03717.83
7.0.40.0100.08320.13
7.0.30.0170.04720.11
7.0.20.0370.05720.34
7.0.10.0100.08020.22
7.0.00.0070.07720.30
5.6.280.0000.03320.82
5.6.210.0130.07020.47
5.6.200.0230.06718.13
5.6.190.0070.08320.49
5.6.180.0270.08320.61
5.6.170.0270.08320.55
5.6.160.0100.05720.50
5.6.150.0170.07018.18
5.6.140.0100.03718.14
5.6.130.0000.04318.14
5.6.120.0100.07321.05
5.6.110.0000.07321.02
5.6.100.0030.08020.98
5.6.90.0030.08720.96
5.6.80.0100.05320.53
5.5.350.3270.03020.41
5.5.340.0100.08017.98
5.5.330.0070.07720.29
5.5.320.0300.07020.35
5.5.310.0100.04320.34
5.5.300.0170.07018.08
5.5.290.0100.07018.03
5.5.280.0000.04720.78
5.5.270.0100.05320.89
5.5.260.0100.06320.84
5.5.250.0000.05720.66
5.5.240.0230.07720.16

preferences:
50.04 ms | 401 KiB | 5 Q