3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f(n) { if (n > 1) return f(n-1) + f(n-2); return n; } n(20);

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.350.0050.03912.03
5.4.340.0110.03612.02
5.4.320.0080.04712.51
5.4.310.0210.03312.51
5.4.300.0050.04012.52
5.4.290.0120.03712.51
5.4.280.0070.03512.40
5.4.270.0070.03712.40
5.4.260.0050.04112.40
5.4.250.0080.04412.41
5.4.240.0080.03512.40
5.4.230.0090.04012.40
5.4.220.0060.03712.39
5.4.210.0030.03912.39
5.4.200.0070.04012.40
5.4.190.0080.04112.39
5.4.180.0060.03712.39
5.4.170.0090.03712.40
5.4.160.0070.03612.40
5.4.150.0110.05612.39
5.4.140.0060.04212.08
5.4.130.0100.03412.06
5.4.120.0080.03312.03
5.4.110.0070.03612.02
5.4.100.0060.03912.03
5.4.90.0030.04212.03
5.4.80.0110.03312.03
5.4.70.0100.03512.02
5.4.60.0080.03312.02
5.4.50.0060.03512.02
5.4.40.0090.03712.01
5.4.30.0050.03712.00
5.4.20.0030.03812.00
5.4.10.0080.03812.00
5.4.00.0020.04111.50
5.3.290.0080.04312.80
5.3.280.0040.04012.71
5.3.270.0070.05612.73
5.3.260.0060.03912.72
5.3.250.0040.03912.72
5.3.240.0090.03912.72
5.3.230.0090.04112.71
5.3.220.0120.03812.68
5.3.210.0080.03712.68
5.3.200.0060.04112.68
5.3.190.0080.04212.68
5.3.180.0070.03612.67
5.3.170.0080.03812.67
5.3.160.0100.03612.67
5.3.150.0080.03812.67
5.3.140.0060.03712.66
5.3.130.0040.04312.66
5.3.120.0080.03912.65
5.3.110.0060.04012.66
5.3.100.0070.03812.13
5.3.90.0060.04312.11
5.3.80.0080.03412.09
5.3.70.0070.03512.09
5.3.60.0070.03712.08
5.3.50.0070.03912.03
5.3.40.0050.04112.02
5.3.30.0070.03511.98
5.3.20.0070.04511.76
5.3.10.0110.03511.73
5.3.00.0080.03311.71
5.2.170.0060.0329.22
5.2.160.0040.0329.21
5.2.150.0070.0329.21
5.2.140.0090.0429.21
5.2.130.0140.0279.17
5.2.120.0080.0359.18
5.2.110.0110.0409.18
5.2.100.0090.0379.18
5.2.90.0030.0389.18
5.2.80.0080.0309.18
5.2.70.0040.0319.18
5.2.60.0040.0329.12
5.2.50.0040.0349.09
5.2.40.0070.0409.07
5.2.30.0080.0369.05
5.2.20.0070.0399.04
5.2.10.0090.0428.95
5.2.00.0060.0368.80
5.1.60.0030.0288.09
5.1.50.0070.0298.08
5.1.40.0070.0458.07
5.1.30.0060.0438.43
5.1.20.0060.0298.44
5.1.10.0090.0258.16
5.1.00.0060.0268.16
5.0.50.0070.0186.64
5.0.40.0070.0176.50
5.0.30.0040.0406.31
5.0.20.0060.0256.28
5.0.10.0060.0226.25
5.0.00.0030.0316.25
4.4.90.0030.0194.78
4.4.80.0010.0174.75
4.4.70.0040.0144.75
4.4.60.0020.0174.75
4.4.50.0010.0184.77
4.4.40.0040.0264.71
4.4.30.0050.0194.76
4.4.20.0050.0164.85
4.4.10.0040.0174.84
4.4.00.0020.0284.76
4.3.110.0050.0154.67
4.3.100.0090.0254.67
4.3.90.0020.0204.63
4.3.80.0020.0264.58
4.3.70.0040.0134.63
4.3.60.0000.0184.63
4.3.50.0070.0114.63
4.3.40.0040.0234.54
4.3.30.0010.0173.30
4.3.20.0030.0163.28
4.3.10.0010.0173.23
4.3.00.0070.0176.65

preferences:
142.71 ms | 1394 KiB | 7 Q