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=0,$plast=0,$last=1){ if($count <= $num){ $newlast=$plast+$last; $count++; 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.0040.01118.30
8.3.50.0170.01121.14
8.3.40.0090.00618.64
8.3.30.0120.00320.18
8.3.20.0000.00720.21
8.3.10.0060.00322.08
8.3.00.0050.00322.30
8.2.180.0130.01025.92
8.2.170.0030.01022.96
8.2.160.0030.01022.30
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00820.81
8.2.110.0070.01019.45
8.2.100.0000.01118.03
8.2.90.0050.00317.75
8.2.80.0040.00418.59
8.2.70.0000.00817.63
8.2.60.0000.00917.61
8.2.50.0050.00217.93
8.2.40.0060.00319.19
8.2.30.0070.00019.36
8.2.20.0040.00417.66
8.2.10.0080.00017.69
8.2.00.0050.00317.78
8.1.280.0150.00425.92
8.1.270.0050.00223.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0050.00519.16
8.1.230.0080.00420.90
8.1.220.0040.00418.60
8.1.210.0050.00318.77
8.1.200.0000.00917.48
8.1.190.0030.00617.25
8.1.180.0000.00818.10
8.1.170.0060.00317.62
8.1.160.0050.00218.91
8.1.150.0000.01118.64
8.1.140.0000.00717.35
8.1.130.0060.00017.74
8.1.120.0040.00317.52
8.1.110.0040.00417.47
8.1.100.0040.00417.44
8.1.90.0050.00317.38
8.1.80.0000.00717.53
8.1.70.0070.00017.45
8.1.60.0030.00517.49
8.1.50.0000.00717.50
8.1.40.0000.00717.48
8.1.30.0000.00717.67
8.1.20.0060.00317.57
8.1.10.0030.00617.48
8.1.00.0040.00417.46
8.0.300.0020.00518.77
8.0.290.0000.00716.63
8.0.280.0000.00718.36
8.0.270.0070.00017.29
8.0.260.0030.00316.83
8.0.250.0030.00316.94
8.0.240.0070.00016.87
8.0.230.0040.00416.93
8.0.220.0000.00716.81
8.0.210.0000.00816.93
8.0.200.0030.00316.93
8.0.190.0030.00617.00
8.0.180.0040.00416.96
8.0.170.0000.00816.81
8.0.160.0000.00716.74
8.0.150.0080.00016.82
8.0.140.0000.00716.76
8.0.130.0060.00013.42
8.0.120.0040.00416.79
8.0.110.0040.00416.87
8.0.100.0050.00216.84
8.0.90.0030.00516.88
8.0.80.0060.00916.88
8.0.70.0040.00416.81
8.0.60.0000.00716.78
8.0.50.0080.00017.00
8.0.30.0100.00917.00
8.0.20.0100.01117.40
8.0.10.0080.00016.78
8.0.00.0090.01216.79
7.4.330.0000.00615.00
7.4.320.0000.00616.51
7.4.300.0070.00016.62
7.4.290.0070.00016.59
7.4.280.0070.00016.41
7.4.270.0070.00016.61
7.4.260.0030.00313.28
7.4.250.0070.00016.34
7.4.240.0040.00416.50
7.4.230.0000.00716.63
7.4.220.0160.01216.57
7.4.210.0070.00916.62
7.4.200.0000.00716.55
7.4.190.0000.00716.79
7.4.160.0080.00816.43
7.4.150.0190.00317.40
7.4.140.0110.00617.86
7.4.130.0100.00716.56
7.4.120.0070.01016.43
7.4.110.0080.00816.45
7.4.100.0060.01516.48
7.4.90.0090.00916.66
7.4.80.0100.00719.39
7.4.70.0120.00316.48
7.4.60.0080.01116.40
7.4.50.0090.00016.42
7.4.40.0090.00622.77
7.4.30.0060.01016.47
7.4.00.0120.00515.02
7.3.330.0050.00013.18
7.3.320.0050.00013.07
7.3.310.0040.00416.30
7.3.300.0070.00016.33
7.3.290.0090.00616.37
7.3.280.0060.01316.31
7.3.270.0170.00017.40
7.3.260.0100.00716.33
7.3.250.0120.00516.36
7.3.240.0120.00616.61
7.3.230.0130.00316.42
7.3.210.0170.00016.31
7.3.200.0110.00719.39
7.3.190.0120.00416.29
7.3.180.0030.01216.51
7.3.170.0130.01016.61
7.3.160.0060.01016.29
7.3.120.0050.01114.87
7.3.110.0060.01315.00
7.3.100.0030.01014.88
7.3.90.0130.00314.98
7.3.80.0040.01114.77
7.3.70.0100.00014.61
7.3.60.0040.00814.95
7.3.50.0000.01815.00
7.3.40.0000.01314.71
7.3.30.0030.01414.83
7.3.20.0000.01316.83
7.3.10.0100.00316.48
7.3.00.0080.00716.40
7.2.330.0130.01316.62
7.2.320.0060.01716.76
7.2.310.0080.00816.61
7.2.300.0000.01816.73
7.2.290.0100.00616.66
7.2.250.0110.00314.59
7.2.240.0060.00915.05
7.2.230.0080.00814.89
7.2.220.0030.01014.95
7.2.210.0100.00715.00
7.2.200.0060.01215.02
7.2.190.0030.01015.15
7.2.180.0030.01214.95
7.2.170.0030.00915.12
7.2.130.0090.00916.86
7.2.120.0130.00016.52
7.2.110.0100.01016.88
7.2.100.0110.00716.62
7.2.90.0110.00616.71
7.2.80.0070.00716.87
7.2.70.0160.00316.52
7.2.60.0140.00716.71
7.2.50.0110.00716.83
7.2.40.0070.01016.91
7.2.30.0150.00316.71
7.2.20.0120.00316.47
7.2.10.0100.00616.51
7.2.00.0080.01018.06
7.1.330.0080.00615.68
7.1.320.0060.00915.97
7.1.310.0070.00715.78
7.1.300.0120.00315.70
7.1.290.0080.00415.64
7.1.280.0090.00315.82
7.1.270.0090.00615.82
7.1.260.0100.00316.04
7.1.250.0160.00315.43
7.1.240.0060.00615.50
7.1.230.0100.00715.74
7.1.220.0040.01415.58
7.1.210.0130.00715.39
7.1.200.0090.00715.83
7.1.190.0060.00915.91
7.1.180.0030.01015.46
7.1.170.0130.00315.79
7.1.160.0140.00015.71
7.1.150.0030.01015.59
7.1.140.0130.00315.32
7.1.130.0110.00415.55
7.1.120.0030.00915.42
7.1.110.0070.00715.71
7.1.100.0090.00317.04
7.1.90.0060.00615.34
7.1.80.0060.00615.59
7.1.70.0080.00316.45
7.1.60.0120.01017.65
7.1.50.0020.01216.20
7.1.40.0100.00315.78
7.1.30.0080.00815.49
7.1.20.0120.00315.76
7.1.10.0120.00615.52
7.1.00.0080.03919.03
7.0.330.0080.00815.15
7.0.320.0140.00315.04
7.0.310.0060.01015.07
7.0.300.0100.00314.78
7.0.290.0120.00315.23
7.0.280.0120.00314.87
7.0.270.0070.00715.00
7.0.260.0120.00014.82
7.0.250.0140.00015.24
7.0.240.0060.00615.34
7.0.230.0070.01015.35
7.0.220.0060.00614.87
7.0.210.0120.00415.25
7.0.200.0070.00715.86
7.0.190.0100.00615.13
7.0.180.0090.00614.79
7.0.170.0090.00415.18
7.0.160.0090.00614.92
7.0.150.0060.00615.17
7.0.140.0090.03718.52
7.0.130.0100.00715.15
7.0.120.0090.00315.32
7.0.110.0070.01015.10
7.0.100.0230.04017.52
7.0.90.0090.02717.48
7.0.80.0050.04317.55
7.0.70.0220.02317.59
7.0.60.0070.02717.72
7.0.50.0160.04317.80
7.0.40.0070.03816.63
7.0.30.0100.03916.70
7.0.20.0100.03516.76
7.0.10.0040.03016.66
7.0.00.0010.03416.60
5.6.380.0130.00314.01
5.6.370.0040.01114.33
5.6.360.0070.00714.19
5.6.350.0110.00014.34
5.6.340.0090.00314.04
5.6.330.0090.00314.09
5.6.320.0030.00914.16
5.6.310.0040.00814.18
5.6.300.0030.01014.05
5.6.290.0070.00414.16
5.6.280.0110.03317.58
5.6.270.0030.00614.04
5.6.260.0030.01014.14
5.6.250.0100.04817.60
5.6.240.0040.02917.47
5.6.230.0030.03017.27
5.6.220.0070.04117.37
5.6.210.0030.04417.41
5.6.200.0030.03517.82
5.6.190.0060.02517.51
5.6.180.0080.04417.58
5.6.170.0050.03217.77
5.6.160.0100.02317.70
5.6.150.0060.03117.89
5.6.140.0040.03417.77
5.6.130.0040.03417.67
5.6.120.0050.04517.57
5.6.110.0080.04017.57
5.6.100.0050.03717.39
5.6.90.0070.04717.64
5.6.80.0020.04917.21
5.6.70.0070.04117.19
5.6.60.0110.03717.17
5.6.50.0080.03717.36
5.6.40.0110.04117.31
5.6.30.0100.03917.18
5.6.20.0070.04217.17
5.6.10.0110.04017.37
5.6.00.0060.03117.42
5.5.380.0040.02315.66
5.5.370.0000.04115.65
5.5.360.0100.02215.79
5.5.350.0060.02515.76
5.5.340.0100.03515.87
5.5.330.0070.04215.93
5.5.320.0140.01516.17
5.5.310.0080.04015.94
5.5.300.0030.03315.98
5.5.290.0080.04315.91
5.5.280.0120.03416.08
5.5.270.0210.01815.86
5.5.260.0070.04516.03
5.5.250.0060.04215.81
5.5.240.0050.04115.61
5.5.230.0080.03115.60
5.5.220.0120.03715.55
5.5.210.0080.02515.65
5.5.200.0000.04015.58
5.5.190.0070.04015.58
5.5.180.0050.03715.52
5.5.170.0050.00911.01
5.5.160.0070.02115.67
5.5.150.0050.02515.64
5.5.140.0060.02115.51
5.5.130.0050.02315.66
5.5.120.0020.02915.54
5.5.110.0080.01815.69
5.5.100.0030.02415.46
5.5.90.0060.03215.44
5.5.80.0060.02215.51
5.5.70.0050.01815.42
5.5.60.0080.01915.52
5.5.50.0070.02215.50
5.5.40.0070.01915.58
5.5.30.0010.02415.61
5.5.20.0050.02215.55
5.5.10.0080.02015.48
5.5.00.0030.02515.47
5.4.450.0070.03215.20
5.4.440.0050.04515.39
5.4.430.0070.04215.18
5.4.420.0060.03015.29
5.4.410.0000.04715.24
5.4.400.0050.03514.86
5.4.390.0020.04714.97
5.4.380.0070.04014.99
5.4.370.0100.03714.92
5.4.360.0000.05515.03
5.4.350.0140.02514.97
5.4.340.0080.04115.02
5.4.330.0020.01010.90
5.4.320.0020.02715.01
5.4.310.0020.02515.11
5.4.300.0040.02415.02
5.4.290.0050.02314.97
5.4.280.0070.01914.92
5.4.270.0050.02014.97
5.4.260.0040.02014.99
5.4.250.0040.02115.06
5.4.240.0030.02114.99
5.4.230.0040.02214.98
5.4.220.0030.02314.97
5.4.210.0020.02714.92
5.4.200.0060.01814.99
5.4.190.0020.02714.96
5.4.180.0020.02414.96
5.4.170.0050.02815.06
5.4.160.0040.01914.96
5.4.150.0040.02314.98
5.4.140.0030.02113.67
5.4.130.0050.01913.68
5.4.120.0050.01813.69
5.4.110.0040.01913.75
5.4.100.0020.02413.61
5.4.90.0030.02313.71
5.4.80.0020.02213.85
5.4.70.0000.02913.69
5.4.60.0030.02013.74
5.4.50.0050.02013.71
5.4.40.0060.02013.68
5.4.30.0070.01313.72
5.4.20.0050.01513.78
5.4.10.0000.02213.72
5.4.00.0070.02013.38
5.3.290.0030.02212.77
5.3.280.0000.02712.74
5.3.270.0010.02312.82
5.3.260.0010.02312.74
5.3.250.0040.02112.80
5.3.240.0080.01612.75
5.3.230.0010.02312.73
5.3.220.0050.02012.76
5.3.210.0030.02312.75
5.3.200.0030.02112.75
5.3.190.0020.02112.70
5.3.180.0030.01912.70
5.3.170.0070.01712.76
5.3.160.0030.01712.80
5.3.150.0020.02312.72
5.3.140.0050.01812.75
5.3.130.0030.02012.70
5.3.120.0020.02512.79
5.3.110.0040.01612.75
5.3.100.0070.01512.48
5.3.90.0060.01512.51
5.3.80.0050.02012.42
5.3.70.0030.02012.46
5.3.60.0080.01512.40
5.3.50.0040.02012.45
5.3.40.0040.01512.46
5.3.30.0040.01712.35
5.3.20.0130.03212.35
5.3.10.0070.03512.24
5.3.00.0040.03512.29
5.2.170.0010.01610.99
5.2.160.0020.01611.05
5.2.150.0050.01711.03
5.2.140.0070.01911.04
5.2.130.0080.03111.01
5.2.120.0050.01311.06
5.2.110.0030.01510.96
5.2.100.0070.03011.01
5.2.90.0060.03111.01
5.2.80.0000.03611.05
5.2.70.0050.03311.04
5.2.60.0050.01510.99
5.2.50.0040.02710.93
5.2.40.0050.01711.02
5.2.30.0070.02910.95
5.2.20.0070.02710.89
5.2.10.0070.02310.88
5.2.00.0000.02610.76
5.1.60.0060.02810.45
5.1.50.0050.01510.37
5.1.40.0060.01210.48
5.1.30.0030.01510.69
5.1.20.0030.03110.66
5.1.10.0090.02510.48
5.1.00.0050.01910.53
5.0.50.0040.0169.77
5.0.40.0030.0219.65
5.0.30.0020.0329.61
5.0.20.0060.0189.58
5.0.10.0020.0189.53
5.0.00.0020.0219.53
4.4.90.0020.0179.51
4.4.80.0000.0189.51
4.4.70.0000.0169.51
4.4.60.0050.0159.51
4.4.50.0030.0169.51
4.4.40.0010.0219.51
4.4.30.0040.0159.51
4.4.20.0040.0109.51
4.4.10.0020.0219.51
4.4.00.0000.0169.51
4.3.110.0040.0199.51
4.3.100.0020.0199.51
4.3.90.0000.0239.51
4.3.80.0030.0299.51
4.3.70.0020.0209.51
4.3.60.0000.0119.51
4.3.50.0040.0089.51
4.3.40.0020.0229.51
4.3.30.0000.0189.51
4.3.20.0030.0159.51
4.3.10.0020.0189.51
4.3.00.0010.0169.51

preferences:
47.43 ms | 401 KiB | 5 Q