3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); namespace websharks; class test{ public function hello(int $string): string { return $string; } } echo (new test())->hello(1);

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.0090.00616.50
8.3.50.0100.00921.25
8.3.40.0060.00918.71
8.3.30.0030.01018.63
8.3.20.0040.00420.36
8.3.10.0050.00221.73
8.3.00.0040.00419.47
8.2.180.0070.01116.59
8.2.170.0110.00422.96
8.2.160.0070.01320.38
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0040.00417.63
8.2.110.0090.00022.07
8.2.100.0090.00317.91
8.2.90.0050.00319.20
8.2.80.0050.00317.97
8.2.70.0030.00517.75
8.2.60.0030.00617.80
8.2.50.0050.00518.07
8.2.40.0050.00321.08
8.2.30.0040.00419.71
8.2.20.0080.00017.74
8.2.10.0030.00517.99
8.2.00.0000.00717.98
8.1.280.0070.01325.92
8.1.270.0060.00620.29
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0030.00921.95
8.1.230.0110.00022.66
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0060.00318.52
8.1.160.0040.00421.94
8.1.150.0000.00718.75
8.1.140.0050.00317.22
8.1.130.0050.00217.55
8.1.120.0030.00317.32
8.1.110.0000.00717.21
8.1.100.0000.00717.29
8.1.90.0000.00717.20
8.1.80.0030.00417.21
8.1.70.0030.00317.27
8.1.60.0000.00717.50
8.1.50.0030.00617.41
8.1.40.0000.00917.39
8.1.30.0030.00517.59
8.1.20.0040.00417.53
8.1.10.0070.00017.57
8.1.00.0080.00017.46
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00318.38
8.0.270.0080.00017.13
8.0.260.0030.00317.27
8.0.250.0040.00416.86
8.0.240.0070.00016.91
8.0.230.0030.00316.94
8.0.220.0030.00316.84
8.0.210.0080.00016.79
8.0.200.0000.00616.83
8.0.190.0000.00916.84
8.0.180.0000.00716.75
8.0.170.0000.00716.81
8.0.160.0000.00716.89
8.0.150.0000.00816.81
8.0.140.0070.00016.68
8.0.130.0050.00013.37
8.0.120.0040.00416.89
8.0.110.0040.00416.88
8.0.100.0030.00616.74
8.0.90.0050.00316.77
8.0.80.0100.01016.81
8.0.70.0040.00416.65
8.0.60.0000.00816.84
8.0.50.0040.00416.75
8.0.30.0080.01017.05
8.0.20.0070.01117.40
8.0.10.0040.00416.94
8.0.00.0090.00916.70
7.4.330.0060.00015.08
7.4.320.0040.00416.50
7.4.300.0000.00616.54
7.4.290.0040.00416.42
7.4.280.0040.00416.53
7.4.270.0030.00316.45
7.4.260.0030.00816.52
7.4.250.0040.00416.39
7.4.240.0050.00216.42
7.4.230.0000.00616.32
7.4.220.0160.00916.64
7.4.210.0060.00916.53
7.4.200.0050.00316.61
7.4.160.0000.01516.44
7.4.150.0070.01017.40
7.4.140.0120.00917.86
7.4.130.0110.01116.51
7.4.120.0070.01116.49
7.4.110.0130.00316.42
7.4.100.0120.00916.41
7.4.90.0090.01316.39
7.4.80.0070.01019.39
7.4.70.0160.00316.43
7.4.60.0130.00316.62
7.4.50.0030.00516.46
7.4.40.0110.00516.57
7.4.30.0170.00616.50
7.4.00.0030.00615.02
7.3.330.0000.00613.38
7.3.320.0020.00213.39
7.3.310.0030.00316.35
7.3.300.0000.00716.38
7.3.290.0080.00916.35
7.3.280.0100.00816.35
7.3.270.0100.01317.40
7.3.260.0080.00916.54
7.3.250.0110.00916.32
7.3.240.0040.01216.59
7.3.230.0080.00816.39
7.3.210.0100.00616.61
7.3.200.0060.01016.54
7.3.190.0030.01316.36
7.3.180.0090.00616.16
7.3.170.0100.01016.53
7.3.160.0120.00616.32
7.2.330.0090.00916.36
7.2.320.0120.00616.66
7.2.310.0080.00816.63
7.2.300.0140.01016.26
7.2.290.0040.01916.37
7.2.60.0070.00716.69
7.2.00.0030.00919.34
7.1.200.0030.00315.68
7.1.100.0040.00717.92
7.1.70.0030.00517.25
7.1.60.0040.02120.03
7.1.50.0090.00917.02
7.1.00.0000.08022.32
7.0.200.0470.00714.90
7.0.60.0000.04319.96
7.0.50.0070.07717.92
7.0.40.0100.08720.05
7.0.30.0270.04720.34
7.0.20.0270.04020.37
7.0.10.0100.08320.24
7.0.00.0130.08720.09
5.6.280.0000.07721.15
5.6.210.0100.03720.63
5.6.200.0030.07018.20
5.6.190.0000.05020.50
5.6.180.0170.05720.34
5.6.170.0300.07720.47
5.6.160.0070.08320.55
5.6.150.0070.08318.16
5.6.140.0130.07318.16
5.6.130.0130.08018.23
5.6.120.0170.05020.92
5.6.110.0030.04320.89
5.6.100.0030.09321.09
5.6.90.0030.08720.93
5.6.80.0130.06320.37
5.5.350.0030.04020.49
5.5.340.0070.03718.05
5.5.330.0030.05320.35
5.5.320.0130.03720.24
5.5.310.0270.05020.35
5.5.300.0030.08717.95
5.5.290.0100.03318.06
5.5.280.0030.04320.77
5.5.270.0100.05320.76
5.5.260.0100.07720.84
5.5.250.0130.07720.68
5.5.240.0030.08320.23
5.4.450.0670.05019.45
5.4.440.0470.06719.17
5.4.430.0630.05019.38
5.4.420.0530.06719.60
5.4.410.0600.05719.41
5.4.400.0730.08019.23
5.4.390.0600.05319.11
5.4.380.0730.05318.86
5.4.370.0700.05719.07
5.4.360.0630.05719.24
5.4.350.0700.05018.85
5.4.340.0570.06019.21
5.4.320.0500.06319.08
5.4.310.0770.03719.25
5.4.300.0600.05319.07
5.4.290.0670.05019.10
5.4.280.0730.07718.85
5.4.270.0430.07319.07
5.4.260.0670.06018.87
5.4.250.0600.06719.25
5.4.240.0630.05718.94
5.4.230.0770.06319.23
5.4.220.0630.07019.05
5.4.210.0730.05019.35
5.4.200.0830.04719.21
5.4.190.0800.05719.09
5.4.180.0800.06019.09
5.4.170.0770.05019.28
5.4.160.0730.05018.95
5.4.150.0670.06019.04
5.4.140.0770.04016.36
5.4.130.0730.04316.35
5.4.120.0670.04016.35
5.4.110.0530.05316.59
5.4.100.0670.05316.30
5.4.90.0530.05316.68
5.4.80.0570.04316.52
5.4.70.0000.03316.59
5.4.60.0030.03316.38
5.4.50.0030.05716.55
5.4.40.0200.05316.54
5.4.30.0330.05716.24
5.4.20.0230.04716.53

preferences:
36.57 ms | 401 KiB | 5 Q