3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function test(int $X): int { return $X * 2; } echo test("13");

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.00816.75
8.3.50.0080.00822.04
8.3.40.0100.00718.70
8.3.30.0110.00418.67
8.3.20.0000.00720.25
8.3.10.0040.00423.48
8.3.00.0050.00319.97
8.2.180.0160.00318.29
8.2.170.0060.00922.96
8.2.160.0110.00420.40
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0080.00019.33
8.2.120.0030.00626.35
8.2.110.0090.00020.29
8.2.100.0060.00617.92
8.2.90.0000.00819.05
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0040.00717.80
8.2.50.0000.00918.07
8.2.40.0100.00019.46
8.2.30.0000.00720.56
8.2.20.0030.00517.65
8.2.10.0050.00317.86
8.2.00.0000.00717.89
8.1.280.0070.00725.92
8.1.270.0070.00720.20
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0180.00420.92
8.1.230.0060.00617.70
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0040.00417.00
8.1.180.0020.00518.10
8.1.170.0100.00018.40
8.1.160.0000.00720.54
8.1.150.0000.00718.67
8.1.140.0080.00017.32
8.1.130.0040.00417.47
8.1.120.0000.00717.38
8.1.110.0040.00417.34
8.1.100.0040.00417.39
8.1.90.0040.00417.33
8.1.80.0040.00417.20
8.1.70.0080.00017.10
8.1.60.0040.00417.50
8.1.50.0050.00217.46
8.1.40.0000.00817.44
8.1.30.0040.00417.47
8.1.20.0050.00217.50
8.1.10.0040.00417.50
8.1.00.0040.00417.43
8.0.300.0040.00418.77
8.0.290.0000.00816.88
8.0.280.0000.00718.37
8.0.270.0000.00716.78
8.0.260.0060.00017.09
8.0.250.0040.00416.96
8.0.240.0080.00017.04
8.0.230.0050.00216.91
8.0.220.0080.00016.82
8.0.210.0050.00316.88
8.0.200.0030.00316.85
8.0.190.0070.00316.96
8.0.180.0000.00816.93
8.0.170.0020.00516.95
8.0.160.0080.00016.87
8.0.150.0060.00316.93
8.0.140.0000.00716.87
8.0.130.0000.00513.39
8.0.120.0050.00316.93
8.0.110.0030.00516.77
8.0.100.0050.00216.88
8.0.90.0040.00416.77
8.0.80.0060.00916.86
8.0.70.0000.00816.70
8.0.60.0080.00016.88
8.0.50.0000.00716.66
8.0.30.0130.00417.05
8.0.20.0070.01117.40
8.0.10.0040.00416.83
8.0.00.0090.00916.75
7.4.330.0050.00016.71
7.4.320.0030.00316.32
7.4.300.0030.00316.48
7.4.290.0030.00316.44
7.4.280.0000.00716.37
7.4.270.0040.00416.47
7.4.260.0030.00316.41
7.4.250.0050.00316.38
7.4.240.0020.00516.50
7.4.230.0030.00316.36
7.4.220.0070.01016.46
7.4.210.0090.00616.64
7.4.200.0000.00716.57
7.4.160.0190.00316.58
7.4.150.0060.01317.40
7.4.140.0100.01017.86
7.4.130.0110.00916.38
7.4.120.0140.00716.26
7.4.110.0070.01316.25
7.4.100.0110.00716.71
7.4.90.0090.00916.46
7.4.80.0070.01119.39
7.4.70.0060.01016.49
7.4.60.0100.00616.49
7.4.50.0070.00716.36
7.4.40.0130.01016.24
7.4.30.0100.00716.55
7.4.00.0070.01014.90
7.3.330.0030.00313.15
7.3.320.0030.00213.24
7.3.310.0070.00016.35
7.3.300.0050.00216.30
7.3.290.0070.00916.27
7.3.280.0110.00816.30
7.3.270.0150.00417.40
7.3.260.0130.01016.24
7.3.250.0140.00716.48
7.3.240.0130.00716.34
7.3.230.0100.00616.39
7.3.210.0090.00916.29
7.3.200.0140.00316.24
7.3.190.0060.01116.39
7.3.180.0030.01316.38
7.3.170.0140.00916.31
7.3.160.0060.01716.40
7.2.330.0060.00916.27
7.2.320.0060.01216.60
7.2.310.0040.02016.60
7.2.300.0130.00316.22
7.2.290.0110.00816.50
7.2.110.0070.00716.39
7.2.60.0000.01616.93
7.2.00.0060.01119.18
7.1.200.0110.00315.77
7.1.100.0100.00717.96
7.1.70.0040.00416.80
7.1.60.0110.01419.44
7.1.50.0170.01334.78
7.1.00.0070.07322.36
7.0.200.0070.00316.48
7.0.60.0130.07321.75
7.0.50.0100.04317.88
7.0.40.0030.04320.14
7.0.30.0470.07320.20
7.0.20.0230.04720.06
7.0.10.0030.08320.10
7.0.00.0130.08020.20
5.6.210.0130.07720.47
5.6.200.0030.06318.12
5.6.190.0070.06020.41
5.6.180.0430.06320.52
5.6.170.0300.07720.54
5.6.160.0070.05020.55
5.6.150.0030.08318.19
5.6.140.0070.04018.27
5.6.130.0130.03018.18
5.6.120.0130.07721.10
5.6.110.0030.09020.90
5.6.100.0030.05021.00
5.6.90.0000.04321.00
5.6.80.0000.04320.38
5.5.350.0100.07020.39
5.5.340.0030.04017.93
5.5.330.0070.09320.33
5.5.320.0530.04320.30
5.5.310.0370.06020.27
5.5.300.0100.04017.95
5.5.290.0070.04317.99
5.5.280.0030.05720.77
5.5.270.0130.06720.86
5.5.260.0030.07020.88
5.5.250.0070.08320.58
5.5.240.0270.07020.19

preferences:
55.78 ms | 401 KiB | 5 Q