3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test_1(int $arg_1, int $arg_2): int{ return $arg_1+$arg_2; } $a = 1; $b = 2; $result = test_1($a, $b); echo $result;

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.0070.00716.75
8.3.50.0260.00721.15
8.3.40.0070.00718.71
8.3.30.0140.00018.67
8.3.20.0040.00420.38
8.3.10.0040.00423.53
8.3.00.0030.00623.61
8.2.180.0040.01818.41
8.2.170.0110.00322.96
8.2.160.0150.00620.39
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0070.00021.00
8.2.120.0000.00926.35
8.2.110.0000.00922.26
8.2.100.0040.00817.93
8.2.90.0000.00819.09
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0040.00418.00
8.2.50.0080.00018.07
8.2.40.0050.00322.32
8.2.30.0000.00720.64
8.2.20.0040.00417.75
8.2.10.0060.00618.14
8.2.00.0070.00018.11
8.1.280.0170.00325.92
8.1.270.0080.00023.82
8.1.260.0000.00728.09
8.1.250.0000.00728.09
8.1.240.0180.00422.46
8.1.230.0070.00319.13
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0100.00017.13
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0040.00418.46
8.1.160.0050.00320.58
8.1.150.0070.00018.82
8.1.140.0000.00819.42
8.1.130.0080.00017.68
8.1.120.0030.00317.43
8.1.110.0040.00417.30
8.1.100.0000.00717.30
8.1.90.0000.00717.40
8.1.80.0030.00817.41
8.1.70.0040.00417.29
8.1.60.0040.00417.48
8.1.50.0050.00317.53
8.1.40.0000.00817.51
8.1.30.0060.00317.72
8.1.20.0060.00317.55
8.1.10.0000.00817.52
8.1.00.0050.00217.54
8.0.300.0080.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00318.45
8.0.270.0040.00417.32
8.0.260.0030.00717.30
8.0.250.0030.00316.88
8.0.240.0080.00016.87
8.0.230.0000.00716.76
8.0.220.0000.00716.84
8.0.210.0000.00716.70
8.0.200.0040.00416.88
8.0.190.0040.00416.91
8.0.180.0080.00016.84
8.0.170.0050.00216.88
8.0.160.0070.00016.82
8.0.150.0000.00716.87
8.0.140.0000.00716.80
8.0.130.0030.00313.29
8.0.120.0040.00416.70
8.0.110.0000.00816.85
8.0.100.0080.00016.89
8.0.90.0000.00716.88
8.0.80.0080.00816.83
8.0.70.0040.00416.71
8.0.60.0040.00416.82
8.0.50.0050.00316.73
8.0.30.0110.00917.11
8.0.20.0070.01217.40
8.0.10.0000.00716.94
8.0.00.0100.01216.93
7.4.330.0000.00516.84
7.4.320.0030.00316.44
7.4.300.0070.00016.50
7.4.290.0030.00316.57
7.4.280.0000.01016.45
7.4.270.0030.00316.69
7.4.260.0030.00316.41
7.4.250.0040.00416.39
7.4.240.0030.00416.53
7.4.230.0070.00016.41
7.4.220.0170.01016.69
7.4.210.0070.00816.49
7.4.200.0070.00016.35
7.4.160.0030.01216.54
7.4.150.0110.00917.40
7.4.140.0130.00517.86
7.4.130.0060.01116.47
7.4.120.0060.01216.46
7.4.110.0160.00716.49
7.4.100.0120.00616.65
7.4.90.0060.01216.38
7.4.80.0090.00919.39
7.4.70.0080.00816.70
7.4.60.0150.00416.25
7.4.50.0040.01116.12
7.4.40.0080.01516.54
7.4.30.0110.01116.48
7.4.00.0070.00714.98
7.3.330.0030.00313.38
7.3.320.0050.00013.09
7.3.310.0000.00716.18
7.3.300.0000.00716.22
7.3.290.0070.00016.32
7.3.280.0080.00616.36
7.3.270.0100.01317.40
7.3.260.0070.01016.32
7.3.250.0100.00616.38
7.3.240.0090.00716.31
7.3.230.0100.00616.39
7.3.210.0070.01116.56
7.3.200.0100.01316.38
7.3.190.0030.01316.23
7.3.180.0070.01116.27
7.3.170.0080.01216.43
7.3.160.0100.01316.28
7.2.330.0120.01316.71
7.2.320.0070.01016.36
7.2.310.0130.00316.71
7.2.300.0090.00916.68
7.2.290.0060.00916.64
7.2.60.0030.01316.91
7.2.00.0040.01119.33
7.1.200.0090.00315.79
7.1.100.0000.01018.34
7.1.70.0000.00817.28
7.1.60.0070.01719.06
7.1.50.0030.01017.11
7.1.00.0000.07322.30
7.0.200.0330.00014.75
7.0.60.0030.07720.00
7.0.50.0300.04317.84
7.0.40.0000.04719.98
7.0.30.0230.07320.16
7.0.20.0300.04320.18
7.0.10.0130.03320.12
7.0.00.0030.04320.05
5.6.210.0130.06320.56
5.6.200.0030.04318.22
5.6.190.0030.06020.63
5.6.180.0370.07020.68
5.6.170.0400.05020.52
5.6.160.0030.04020.56
5.6.150.0100.07318.15
5.6.140.0000.08718.22
5.6.130.0070.06718.27
5.6.120.0270.04321.12
5.6.110.0000.04720.99
5.6.100.0130.07720.96
5.6.90.0030.06321.12
5.6.80.0130.06320.40
5.5.350.0370.07320.44
5.5.340.0100.07317.96
5.5.330.0130.06320.13
5.5.320.0300.07320.27
5.5.310.0230.05320.37
5.5.300.0000.04718.09
5.5.290.0100.08017.91
5.5.280.0170.07320.89
5.5.270.0070.07720.79
5.5.260.0030.09020.76
5.5.250.0070.05320.79
5.5.240.0100.08320.26

preferences:
27.97 ms | 401 KiB | 5 Q