3v4l.org

run code in 300+ PHP versions simultaneously
<?php function func(n) { if(n==0){ return 0; } if(n==1){ return 1; } return func(n-1)+func(n-2); } func(10);

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.4.340.0070.03319.21
5.4.320.0000.04019.13
5.4.310.0030.03318.95
5.4.300.0000.03718.84
5.4.290.0000.03718.98
5.4.280.0030.03319.06
5.4.270.0000.03719.13
5.4.260.0030.03319.24
5.4.250.0030.03319.08
5.4.240.0000.03718.94
5.4.230.0030.04319.05
5.4.220.0000.03719.15
5.4.210.0000.04719.09
5.4.200.0000.03719.06
5.4.190.0030.03318.84
5.4.180.0000.04019.23
5.4.170.0070.03019.15
5.4.160.0030.03318.83
5.4.150.0000.04019.30
5.4.140.0070.03016.52
5.4.130.0030.03016.51
5.4.120.0100.06716.53
5.4.110.0070.05316.54
5.4.100.0100.07016.56
5.4.90.0030.04016.56
5.4.80.0000.07316.44
5.4.70.0030.04316.44
5.4.60.0000.04016.56
5.4.50.0070.04016.43
5.4.40.0070.07016.52
5.4.30.0100.06016.48
5.4.20.0000.07716.39
5.4.10.0070.07016.25
5.4.00.0100.06715.95
5.3.290.0200.02714.82
5.3.280.0000.03714.81
5.3.270.0100.03314.76
5.3.260.0170.02714.69
5.3.250.0030.03314.68
5.3.240.0030.03314.83
5.3.230.0000.04714.57
5.3.220.0070.05714.79
5.3.210.0000.07714.59
5.3.200.0030.07314.56
5.3.190.0030.04314.73
5.3.180.0030.04014.46
5.3.170.0070.04014.56
5.3.160.0030.07014.57
5.3.150.0070.07314.79
5.3.140.0000.06014.46
5.3.130.0200.03314.64
5.3.120.0030.06714.52
5.3.110.0000.05714.48
5.3.100.0030.06014.04
5.3.90.0070.04013.92
5.3.80.0000.07713.92
5.3.70.0030.06014.02
5.3.60.0030.06713.90
5.3.50.0000.03713.86
5.3.40.0070.07314.04
5.3.30.0070.07314.13
5.3.20.0100.06013.69
5.3.10.0030.04313.67
5.3.00.0000.08013.54
5.2.170.0000.03712.12
5.2.160.0000.06712.12
5.2.150.0000.05712.12
5.2.140.0030.05012.12
5.2.130.0030.04012.12
5.2.120.0000.06312.12
5.2.110.0070.03012.12
5.2.100.0030.06312.12
5.2.90.0130.05012.12
5.2.80.0070.05712.12
5.2.70.0070.06012.12
5.2.60.0070.04012.12
5.2.50.0030.05312.12
5.2.40.0070.05712.12
5.2.30.0000.06312.12
5.2.20.0100.05712.12
5.2.10.0000.06312.12
5.2.00.0030.06012.12
5.1.60.0000.05312.12
5.1.50.0000.05012.12
5.1.40.0070.04712.12
5.1.30.0030.04312.12
5.1.20.0030.03312.12
5.1.10.0070.04712.12
5.1.00.0030.03012.12
5.0.50.0000.04712.12
5.0.40.0000.02012.12
5.0.30.0030.06712.12
5.0.20.0030.03012.12
5.0.10.0030.04312.12
5.0.00.0070.05712.12
4.4.90.0030.03312.12
4.4.80.0000.03712.12
4.4.70.0000.03012.12
4.4.60.0070.03312.12
4.4.50.0070.03012.12
4.4.40.0030.05012.12
4.4.30.0030.03712.12
4.4.20.0070.03012.12
4.4.10.0000.01712.12
4.4.00.0000.03312.12
4.3.110.0000.03712.12
4.3.100.0000.03712.12
4.3.90.0000.02312.12
4.3.80.0000.05712.12
4.3.70.0000.03312.12
4.3.60.0000.03012.12
4.3.50.0000.03712.12
4.3.40.0000.05712.12
4.3.30.0030.02712.12
4.3.20.0000.03312.12
4.3.10.0000.03312.12
4.3.00.0030.03312.12

preferences:
142.52 ms | 1394 KiB | 7 Q