3v4l.org

run code in 300+ PHP versions simultaneously
<?php function pocitaj(int a, int b): int{ return a + b; } echo pocitaj(32, 89);

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)
5.6.150.0070.08318.29
5.6.140.0070.06318.11
5.6.130.0000.05318.28
5.6.120.0070.08321.14
5.6.110.0100.08021.13
5.6.100.0070.06321.00
5.6.90.0070.04720.99
5.6.80.0100.07020.51
5.5.300.0030.09017.94
5.5.290.0070.06717.95
5.5.280.0070.04720.87
5.5.270.0130.08320.86
5.5.260.0170.05020.83
5.5.250.0100.04720.69
5.5.240.0170.04720.25
5.4.450.0300.05519.51
5.4.440.0350.06019.54
5.4.430.0400.05219.45
5.4.420.0380.04819.50
5.4.410.0350.04819.21
5.4.400.0370.04519.26
5.4.390.0350.05219.02
5.4.380.0380.04819.12
5.4.370.0330.05219.17
5.4.360.0370.05219.03
5.4.350.0380.04819.12
5.4.340.0370.05019.11
5.4.320.0350.05019.25
5.4.310.0380.04819.02
5.4.300.0330.06519.12
5.4.290.0380.06019.05
5.4.280.0330.05519.05
5.4.270.0320.05518.91
5.4.260.0330.05219.11
5.4.250.0270.05719.20
5.4.240.0300.05719.20
5.4.230.0320.05518.95
5.4.220.0320.06019.05
5.4.210.0370.05519.11
5.4.200.0420.04519.02
5.4.190.0320.05019.09
5.4.180.0320.05819.20
5.4.170.0380.05019.16
5.4.160.0380.05219.04
5.4.150.0400.04818.84
5.4.140.0400.04516.44
5.4.130.0320.05016.52
5.4.120.0320.05016.37
5.4.110.0230.05716.49
5.4.100.0300.04816.56
5.4.90.0430.04216.36
5.4.80.0350.04816.42
5.4.70.0370.04516.40
5.4.60.0320.04816.42
5.4.50.0450.04016.35
5.4.40.0320.05016.29
5.4.30.0320.05016.47
5.4.20.0280.05216.53
5.4.10.0330.04816.52
5.4.00.0280.04815.87
5.3.290.0320.05214.67
5.3.280.0280.04814.58
5.3.270.0370.05714.61
5.3.260.0320.05214.58
5.3.250.0320.05214.62
5.3.240.0400.05014.49
5.3.230.0420.04514.60
5.3.220.0330.05014.64
5.3.210.0320.05514.59
5.3.200.0380.04314.60
5.3.190.0280.05514.48
5.3.180.0170.04714.49
5.3.170.0200.05314.70
5.3.160.0200.05014.58
5.3.150.0130.05314.62
5.3.140.0170.05014.57
5.3.130.0170.05314.51
5.3.120.0200.04714.56
5.3.110.0070.06014.63
5.3.100.0170.05714.09
5.3.90.0130.05713.88
5.3.80.0170.04713.93
5.3.70.0100.05314.23
5.3.60.0170.04714.05
5.3.50.0170.04713.86
5.3.40.0170.05013.86
5.3.30.0170.04713.91
5.3.20.0130.04713.59
5.3.10.0100.05313.66
5.3.00.0270.03713.71
5.2.170.0100.04311.15
5.2.160.0100.04011.15
5.2.150.0130.04011.22
5.2.140.0170.04011.29
5.2.130.0170.03711.18
5.2.120.0100.04011.01
5.2.110.0130.05711.00
5.2.100.0270.04311.32
5.2.90.0100.04310.96
5.2.80.0130.05711.00
5.2.70.0170.04011.05
5.2.60.0170.04311.18
5.2.50.0230.03011.09
5.2.40.0170.03710.86
5.2.30.0100.04010.88
5.2.20.0070.04310.92
5.2.10.0170.03310.91
5.2.00.0000.05010.62
5.1.60.0100.0339.89
5.1.50.0100.03010.05
5.1.40.0100.0339.96
5.1.30.0030.04010.24
5.1.20.0130.03310.36
5.1.10.0200.03010.07
5.1.00.0100.03310.09
5.0.50.0130.0208.70
5.0.40.0100.0278.30
5.0.30.0000.0508.27
5.0.20.0100.0238.12
5.0.10.0070.0278.19
5.0.00.0100.0378.05
4.4.90.0000.0276.88
4.4.80.0100.0206.88
4.4.70.0000.0276.88
4.4.60.0070.0206.88
4.4.50.0070.0206.88
4.4.40.0030.0376.88
4.4.30.0070.0206.88
4.4.20.0030.0236.88
4.4.10.0100.0176.88
4.4.00.0030.0376.88
4.3.110.0030.0336.88
4.3.100.0000.0236.88
4.3.90.0070.0206.88
4.3.80.0170.0236.88
4.3.70.0130.0136.88
4.3.60.0100.0176.88
4.3.50.0030.0236.88
4.3.40.0070.0336.88
4.3.30.0000.0336.88
4.3.20.0030.0236.88
4.3.10.0070.0206.88
4.3.00.0070.0206.88

preferences:
136.32 ms | 1398 KiB | 7 Q