3v4l.org

run code in 300+ PHP versions simultaneously
<?hh 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.0040.01116.50
8.3.50.0120.00922.06
8.3.40.0110.00418.66
8.3.30.0140.00018.60
8.3.20.0000.00819.98
8.3.10.0040.00423.66
8.3.00.0040.00423.48
8.2.180.0070.01418.41
8.2.170.0110.00422.96
8.2.160.0100.00720.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00820.98
8.2.120.0080.00026.35
8.2.110.0000.00822.05
8.2.100.0090.00317.93
8.2.90.0050.00319.22
8.2.80.0000.00817.97
8.2.70.0090.00017.50
8.2.60.0000.00817.92
8.2.50.0050.00318.07
8.2.40.0000.00822.37
8.2.30.0070.00020.64
8.2.20.0030.00517.45
8.2.10.0030.00617.82
8.2.00.0000.00717.79
8.1.280.0170.00325.92
8.1.270.0040.00423.88
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.01324.03
8.1.230.0080.00318.97
8.1.220.0050.00217.74
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0050.00317.00
8.1.180.0040.00418.10
8.1.170.0030.00518.61
8.1.160.0000.00920.67
8.1.150.0070.00018.76
8.1.140.0070.00019.42
8.1.130.0000.00717.55
8.1.120.0040.00417.30
8.1.110.0040.00417.35
8.1.100.0040.00317.22
8.1.90.0000.00817.31
8.1.80.0070.00417.29
8.1.70.0050.00317.19
8.1.60.0030.00517.45
8.1.50.0030.00617.41
8.1.40.0030.00617.39
8.1.30.0050.00317.49
8.1.20.0040.00417.41
8.1.10.0000.00717.31
8.1.00.0000.00817.35
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0070.00018.26
8.0.270.0000.00817.15
8.0.260.0060.00317.09
8.0.250.0030.00316.71
8.0.240.0040.00416.82
8.0.230.0030.00316.70
8.0.220.0030.00316.76
8.0.210.0030.00316.71
8.0.200.0060.00016.80
8.0.190.0030.00316.76
8.0.180.0040.00416.84
8.0.170.0040.00416.75
8.0.160.0000.00816.78
8.0.150.0000.00716.73
8.0.140.0030.00316.71
8.0.130.0000.00513.30
8.0.120.0000.00716.61
8.0.110.0040.00416.65
8.0.100.0080.00016.63
8.0.90.0000.00716.80
8.0.80.0090.00616.63
8.0.70.0040.00416.66
8.0.60.0030.00516.55
8.0.50.0040.00416.81
8.0.30.0080.00916.92
8.0.20.0080.01017.40
8.0.10.0000.00816.83
8.0.00.0080.01116.59
7.4.330.0020.00216.95
7.4.320.0000.00616.46
7.4.300.0030.00316.46
7.4.290.0030.00516.32
7.4.280.0030.00716.46
7.4.270.0000.00716.45
7.4.260.0030.00316.44
7.4.250.0040.00416.46
7.4.240.0020.00616.46
7.4.230.0030.00316.47
7.4.220.0150.00416.56
7.4.210.0120.00316.37
7.4.200.0000.00716.27
7.4.160.0060.00916.25
7.4.150.0130.01017.40
7.4.140.0120.00917.86
7.4.130.0100.00816.36
7.4.120.0090.00816.53
7.4.110.0110.00716.43
7.4.100.0090.00916.39
7.4.90.0090.00916.38
7.4.80.0140.00319.39
7.4.70.0100.00716.44
7.4.60.0070.01016.42
7.4.50.0040.01516.25
7.4.40.0180.00616.46
7.4.30.0000.01616.40
7.3.330.0000.00613.07
7.3.320.0000.00513.01
7.3.310.0000.00715.98
7.3.300.0030.00316.14
7.3.290.0030.00316.14
7.3.280.0070.00716.18
7.3.270.0110.00617.40
7.3.260.0110.01216.23
7.3.250.0080.01116.24
7.3.240.0070.01116.21
7.3.230.0160.00016.39
7.3.210.0140.00316.28
7.3.200.0110.00716.36
7.3.190.0140.00416.14
7.3.180.0130.00416.16
7.3.170.0120.00316.27
7.3.160.0090.00616.21
7.2.330.0030.01416.55
7.2.320.0000.01716.41
7.2.310.0150.00416.32
7.2.300.0130.01016.59
7.2.290.0120.02116.25
7.0.00.0030.06020.20
5.6.160.0070.04720.56
5.6.150.0130.07318.18
5.6.140.0030.04718.18
5.6.130.0100.08018.17
5.6.120.0070.08021.14
5.6.110.0070.04320.98
5.6.100.0100.07721.09
5.6.90.0230.06721.07
5.6.80.0170.07020.53
5.5.300.0100.05317.99
5.5.290.0230.04718.00
5.5.280.0030.05320.87
5.5.270.0070.08720.93
5.5.260.0030.08720.79
5.5.250.0100.07720.54
5.5.240.0170.05720.03

preferences:
59.92 ms | 401 KiB | 5 Q