3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f($number) { $num=fib($number); echo $number.' number fibinache is '.$num; } function fib($num,$count=2,$plast=1,$last=1){ if($count <= $num){ ++$count; $newlast=$plast+$last; return fib($num,$count,$last,$newlast); } else { return $last; } } f(3); ?>

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.0090.00916.50
8.3.50.0120.01017.32
8.3.40.0060.00918.68
8.3.30.0090.00618.75
8.3.20.0030.00518.77
8.3.10.0100.00018.77
8.3.00.0090.00019.26
8.2.180.0040.01116.50
8.2.170.0130.00722.96
8.2.160.0160.00321.20
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0000.00726.16
8.2.120.0000.00920.45
8.2.110.0080.00321.18
8.2.100.0090.00317.84
8.2.90.0070.00319.48
8.2.80.0000.00719.28
8.2.70.0100.00017.50
8.2.60.0030.00518.03
8.2.50.0000.01018.07
8.2.40.0040.00418.16
8.2.30.0000.00718.03
8.2.20.0000.00717.65
8.2.10.0090.00017.55
8.2.00.0000.00817.75
8.1.280.0100.01025.92
8.1.270.0040.00424.66
8.1.260.0030.00626.35
8.1.250.0000.00828.09
8.1.240.0030.00624.02
8.1.230.0060.00620.94
8.1.220.0040.00417.76
8.1.210.0040.00720.64
8.1.200.0050.00717.22
8.1.190.0000.00817.50
8.1.180.0000.00818.10
8.1.170.0050.00318.71
8.1.160.0000.00718.81
8.1.150.0050.00318.60
8.1.140.0050.00317.54
8.1.130.0030.00317.80
8.1.120.0040.00417.38
8.1.110.0050.00217.36
8.1.100.0050.00317.49
8.1.90.0040.00417.48
8.1.80.0070.00017.38
8.1.70.0030.00317.45
8.1.60.0030.00617.62
8.1.50.0040.00417.49
8.1.40.0030.00617.50
8.1.30.0000.00817.65
8.1.20.0050.00317.59
8.1.10.0080.00017.51
8.1.00.0040.00417.39
8.0.300.0040.00419.91
8.0.290.0050.00216.75
8.0.280.0000.00718.37
8.0.270.0030.00317.31
8.0.260.0000.00616.83
8.0.250.0040.00416.93
8.0.240.0040.00416.86
8.0.230.0000.00716.95
8.0.220.0000.00716.86
8.0.210.0030.00316.96
8.0.200.0000.00616.96
8.0.190.0060.00317.03
8.0.180.0070.00416.91
8.0.170.0030.00616.79
8.0.160.0000.00716.80
8.0.150.0060.00316.89
8.0.140.0000.01116.77
8.0.130.0060.00013.35
8.0.120.0000.00716.75
8.0.110.0000.00716.80
8.0.100.0000.00816.77
8.0.90.0000.00716.77
8.0.80.0120.00316.88
8.0.70.0080.00016.70
8.0.60.0030.00516.93
8.0.50.0050.00316.79
8.0.30.0140.00417.27
8.0.20.0100.00817.12
8.0.10.0000.00716.94
8.0.00.0100.01216.63
7.4.330.0020.00213.02
7.4.320.0030.00316.59
7.4.300.0030.00316.60
7.4.290.0030.00616.62
7.4.280.0000.00816.49
7.4.270.0040.00416.54
7.4.260.0000.00513.29
7.4.250.0000.00816.61
7.4.240.0030.00516.58
7.4.230.0030.00316.36
7.4.220.0120.00616.70
7.4.210.0060.01016.62
7.4.200.0040.00416.72
7.4.190.0080.00016.45
7.4.160.0030.01316.45
7.4.150.0090.00716.47
7.4.140.0130.00716.56
7.4.130.0100.01016.66
7.4.120.0050.01316.57
7.4.110.0090.00916.58
7.4.100.0090.01116.63
7.4.90.0110.01116.55
7.4.80.0120.00616.68
7.4.70.0100.00616.48
7.4.60.0000.01516.57
7.4.50.0100.00316.40
7.4.40.0090.00616.65
7.4.30.0060.01116.57
7.4.00.0090.00914.92
7.3.330.0030.00313.05
7.3.320.0070.00013.28
7.3.310.0070.00016.37
7.3.300.0070.00016.34
7.3.290.0030.01016.36
7.3.280.0060.01016.37
7.3.270.0100.00716.39
7.3.260.0120.00416.70
7.3.250.0110.00616.61
7.3.240.0030.01316.57
7.3.230.0110.00716.57
7.3.210.0080.00816.36
7.3.200.0030.01419.39
7.3.190.0150.00616.30
7.3.180.0070.01016.43
7.3.170.0120.00616.70
7.3.160.0080.00816.43
7.3.120.0080.00814.92
7.3.110.0060.01214.72
7.3.100.0060.00314.77
7.3.90.0030.00914.96
7.3.80.0090.00614.79
7.3.70.0000.00914.93
7.3.60.0040.00814.84
7.3.50.0060.00614.82
7.3.40.0100.00314.64
7.3.30.0080.00414.87
7.3.20.0080.00616.69
7.3.10.0080.00416.45
7.3.00.0000.01616.52
7.2.330.0030.01316.63
7.2.320.0000.01616.52
7.2.310.0200.02616.69
7.2.300.0090.00916.75
7.2.290.0100.00616.50
7.2.250.0030.01415.01
7.2.240.0070.01015.22
7.2.230.0070.00715.27
7.2.220.0060.00614.68
7.2.210.0080.00315.02
7.2.200.0060.00915.00
7.2.190.0030.01415.15
7.2.180.0100.00714.98
7.2.170.0000.01314.71
7.2.00.0200.00319.47
7.1.330.0090.00315.83
7.1.320.0030.01015.91
7.1.310.0070.00715.79
7.1.300.0030.01015.54
7.1.290.0070.00715.41
7.1.280.0060.00315.86
7.1.270.0070.00715.77
7.1.260.0040.00715.64
7.1.200.0030.00915.73
7.1.100.0080.00618.13
7.1.70.0030.00517.18
7.1.60.0070.01719.40
7.1.50.0100.01417.00
7.1.00.0000.07322.57
7.0.200.0000.01016.79
7.0.140.0070.07022.00
7.0.120.0100.05022.18
7.0.60.0070.07719.86
7.0.50.0070.06717.88
7.0.40.0000.04720.21
7.0.30.0330.06320.07
7.0.20.0230.04020.19
7.0.10.0100.08020.45
7.0.00.0030.05020.06
5.6.210.0070.08320.77
5.6.200.0130.07718.22
5.6.190.0100.04020.34
5.6.180.0300.04720.77
5.6.170.0230.06320.53
5.6.160.0030.05320.53
5.6.150.0130.04318.16
5.6.140.0100.06718.14
5.6.130.0030.08318.23
5.6.120.0070.08020.98
5.6.110.0100.06721.12
5.6.100.0170.07321.02
5.6.90.0170.07721.11
5.6.80.0070.05720.52
5.5.350.0270.06720.50
5.5.340.0000.04317.95
5.5.330.0070.07720.42
5.5.320.0430.06720.35
5.5.310.0370.04720.28
5.5.300.0130.07318.02
5.5.290.0030.08317.97
5.5.280.0000.05720.66
5.5.270.0100.03320.89
5.5.260.0030.04020.77
5.5.250.0030.09020.47
5.5.240.0030.04720.24
5.4.450.0070.04719.31
5.4.440.0200.03719.21
5.4.430.0100.04019.47
5.4.420.0170.04019.17
5.4.410.0130.03719.36
5.4.400.0230.05719.09
5.4.390.0230.06719.02
5.4.380.0200.07719.24
5.4.370.0330.05718.98
5.4.360.0300.07019.31
5.4.350.0170.07719.19
5.4.340.0270.04319.24
5.4.320.0330.03719.18
5.4.310.0270.07019.22
5.4.300.0230.03318.87
5.4.290.0200.06719.09
5.4.280.0270.04719.22
5.4.270.0230.05319.24
5.4.260.0270.05019.06
5.4.250.0270.04719.04
5.4.240.0170.05319.19
5.4.230.0300.06319.23
5.4.220.0400.04718.84
5.4.210.0300.07319.26
5.4.200.0300.05719.08
5.4.190.0230.04019.23
5.4.180.0200.07319.08
5.4.170.0330.04718.84
5.4.160.0300.04719.14
5.4.150.0170.04719.22
5.4.140.0270.07016.41
5.4.130.0200.07716.41
5.4.120.0300.04316.39
5.4.110.0230.04716.64
5.4.100.0270.06716.46
5.4.90.0230.06716.52
5.4.80.0270.04316.48
5.4.70.0300.06316.62
5.4.60.0300.03316.25
5.4.50.0200.07016.52
5.4.40.0200.06716.25
5.4.30.0200.07016.42
5.4.20.0130.04316.50
5.4.10.0170.07016.55
5.4.00.0330.05715.75
5.3.290.0230.04714.65
5.3.280.0300.06314.64
5.3.270.0330.06714.62
5.3.260.0300.06314.53
5.3.250.0270.07014.58
5.3.240.0270.05714.76
5.3.230.0300.07014.65
5.3.220.0170.08014.69
5.3.210.0270.07014.54
5.3.200.0270.04714.74
5.3.190.0200.06714.47
5.3.180.0300.06314.57
5.3.170.0200.07314.62
5.3.160.0200.04014.72
5.3.150.0200.05014.64
5.3.140.0270.06714.80
5.3.130.0270.03714.72
5.3.120.0300.06714.71
5.3.110.0270.03714.71
5.3.100.0270.06313.94
5.3.90.0430.05314.02
5.3.80.0330.06013.95
5.3.70.0330.08014.18
5.3.60.0230.07014.02
5.3.50.0330.06014.07
5.3.40.0300.06313.95
5.3.30.0270.05013.91
5.3.20.0170.05313.77
5.3.10.0270.05013.59
5.3.00.0300.05713.54
5.2.170.0230.04312.25
5.2.160.0170.06712.25
5.2.150.0230.05712.25
5.2.140.0230.03312.25
5.2.130.0200.04712.25
5.2.120.0270.05012.25
5.2.110.0130.05012.25
5.2.100.0130.06312.25
5.2.90.0130.06012.25
5.2.80.0200.05012.25
5.2.70.0130.05312.25
5.2.60.0230.03712.25
5.2.50.0170.06012.25
5.2.40.0130.06012.25
5.2.30.0170.05712.25
5.2.20.0200.05012.25
5.2.10.0270.05312.25
5.2.00.0170.05012.25
5.1.60.0170.04312.25
5.1.50.0200.04712.25
5.1.40.0170.05012.25
5.1.30.0130.05712.25
5.1.20.0200.05012.25
5.1.10.0130.05012.25
5.1.00.0130.03712.25
5.0.50.0130.04012.25
5.0.40.0100.02712.25
5.0.30.0070.05712.25
5.0.20.0100.04012.25
5.0.10.0100.04012.25
5.0.00.0100.06312.25
4.4.90.0070.03712.25
4.4.80.0000.02012.25
4.4.70.0070.03312.25
4.4.60.0170.02712.25
4.4.50.0130.03012.25
4.4.40.0100.05012.25
4.4.30.0070.04012.25
4.4.20.0100.03312.25
4.4.10.0170.02312.25
4.4.00.0070.05712.25
4.3.110.0130.02712.25
4.3.100.0070.02712.25
4.3.90.0130.02712.25
4.3.80.0070.05312.25
4.3.70.0030.02712.25
4.3.60.0170.02712.25
4.3.50.0070.03712.25
4.3.40.0130.04012.25
4.3.30.0030.04012.25
4.3.20.0100.03312.25
4.3.10.0070.03712.25
4.3.00.0070.03312.25

preferences:
51.91 ms | 401 KiB | 5 Q