3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function f(float $f = 1.0) { echo $f; } /*function i(int $f = 1.0) { echo $f; }*/ f(2.0); //i(2.0);

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.0110.00716.50
8.3.50.0130.00521.28
8.3.40.0110.00418.85
8.3.30.0070.00718.41
8.3.20.0000.00720.16
8.3.10.0040.00421.77
8.3.00.0030.00523.65
8.2.180.0070.00716.50
8.2.170.0110.00422.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00021.00
8.2.120.0040.00426.35
8.2.110.0090.00021.00
8.2.100.0040.00817.78
8.2.90.0040.00417.91
8.2.80.0030.00617.97
8.2.70.0030.00517.93
8.2.60.0040.00417.93
8.2.50.0060.00618.10
8.2.40.0050.00320.55
8.2.30.0000.00819.37
8.2.20.0060.00317.61
8.2.10.0000.00817.89
8.2.00.0080.00017.88
8.1.280.0100.00325.92
8.1.270.0080.00022.19
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00324.00
8.1.230.0110.00020.85
8.1.220.0040.00417.75
8.1.210.0000.00818.79
8.1.200.0040.00417.22
8.1.190.0030.00617.11
8.1.180.0040.00418.10
8.1.170.0060.00418.47
8.1.160.0000.00722.12
8.1.150.0000.00720.55
8.1.140.0000.00719.49
8.1.130.0030.00317.56
8.1.120.0000.00717.21
8.1.110.0000.00717.31
8.1.100.0070.00017.31
8.1.90.0070.00017.36
8.1.80.0030.00517.30
8.1.70.0030.00317.31
8.1.60.0040.00417.51
8.1.50.0040.00417.43
8.1.40.0000.00717.33
8.1.30.0080.00017.58
8.1.20.0000.00717.45
8.1.10.0040.00417.33
8.1.00.0000.00717.39
8.0.300.0000.00719.98
8.0.290.0020.00516.63
8.0.280.0000.00718.24
8.0.270.0000.00717.05
8.0.260.0000.00617.13
8.0.250.0060.00016.94
8.0.240.0040.00416.78
8.0.230.0000.00716.80
8.0.220.0000.00716.76
8.0.210.0000.00716.79
8.0.200.0030.00316.70
8.0.190.0040.00416.82
8.0.180.0030.00316.77
8.0.170.0020.00516.76
8.0.160.0030.00516.82
8.0.150.0000.01116.73
8.0.140.0040.00416.64
8.0.130.0030.00313.18
8.0.120.0000.00816.61
8.0.110.0000.00716.79
8.0.100.0000.00816.66
8.0.90.0020.00516.70
8.0.80.0100.00516.74
8.0.70.0040.00416.77
8.0.60.0000.00716.58
8.0.50.0000.00816.53
8.0.30.0140.00717.23
8.0.20.0110.00817.40
8.0.10.0040.00416.82
8.0.00.0090.01116.74
7.4.330.0000.00516.67
7.4.320.0030.00316.44
7.4.300.0000.00716.44
7.4.290.0060.00316.52
7.4.280.0040.00416.45
7.4.270.0030.00316.50
7.4.260.0070.00016.50
7.4.250.0050.00216.50
7.4.240.0030.00316.42
7.4.230.0030.00316.54
7.4.220.0130.01016.55
7.4.210.0060.00916.41
7.4.200.0030.00316.43
7.4.160.0080.00816.32
7.4.150.0090.00817.40
7.4.140.0080.01017.86
7.4.130.0120.00516.42
7.4.120.0100.00716.45
7.4.110.0100.01316.32
7.4.100.0080.00816.54
7.4.90.0000.01716.39
7.4.80.0060.01019.39
7.4.70.0100.00716.44
7.4.60.0030.01316.58
7.4.50.0000.01516.60
7.4.40.0130.00616.60
7.4.30.0070.01016.41
7.4.00.0000.01714.89
7.3.330.0000.00613.16
7.3.320.0000.00613.15
7.3.310.0040.00416.19
7.3.300.0000.00716.16
7.3.290.0100.00716.25
7.3.280.0100.00916.30
7.3.270.0130.00317.40
7.3.260.0060.01116.54
7.3.250.0090.01116.45
7.3.240.0150.00716.43
7.3.230.0100.00716.56
7.3.210.0000.01616.28
7.3.200.0030.01519.39
7.3.190.0130.01316.50
7.3.180.0130.01016.57
7.3.170.0150.00616.36
7.3.160.0060.00916.45
7.2.330.0030.02016.30
7.2.320.0040.01616.37
7.2.310.0030.01316.38
7.2.300.0070.01016.40
7.2.290.0100.00616.67
7.2.60.0110.00416.64
7.2.00.0000.01319.23
7.1.200.0030.01015.64
7.1.100.0000.01517.86
7.1.70.0030.00717.07
7.1.60.0100.00319.28
7.1.50.0070.01316.86
7.1.00.0070.07322.32
7.0.200.0060.00316.66
7.0.60.0270.07719.91
7.0.50.0130.03317.91
7.0.40.0100.04020.23
7.0.30.0330.07320.13
7.0.20.0370.04320.38
7.0.10.0070.09020.30
7.0.00.0030.04320.18
5.6.280.0030.03321.13
5.6.210.0170.04720.61
5.6.200.0030.08018.13
5.6.190.0070.05720.58
5.6.180.0200.08020.55
5.6.170.0300.07020.52
5.6.160.0070.07320.50
5.6.150.0070.06018.29
5.6.140.0000.06318.16
5.6.130.0130.07318.17
5.6.120.0030.08721.15
5.6.110.0100.08321.03
5.6.100.0070.08021.00
5.6.90.0070.04020.98
5.6.80.0030.05320.52
5.5.350.0400.06020.37
5.5.340.0070.04018.07
5.5.330.0100.08320.41
5.5.320.0730.05320.20
5.5.310.0230.03720.42
5.5.300.0130.07318.00
5.5.290.0070.08017.95
5.5.280.0070.07020.88
5.5.270.0100.08720.88
5.5.260.0130.07320.89
5.5.250.0100.04320.46
5.5.240.0100.03320.18

preferences:
64.55 ms | 401 KiB | 5 Q