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; echo ' | '.$count.': '.$newlast; $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.0180.00418.24
8.3.50.0090.00921.14
8.3.40.0100.00718.71
8.3.30.0110.00720.29
8.3.20.0040.00420.19
8.3.10.0040.00421.92
8.3.00.0040.00422.39
8.2.180.0120.00316.38
8.2.170.0030.01022.96
8.2.160.0070.00721.99
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0060.00926.16
8.2.120.0040.00420.79
8.2.110.0000.00922.25
8.2.100.0130.00017.72
8.2.90.0090.00019.14
8.2.80.0070.00019.27
8.2.70.0050.00317.50
8.2.60.0000.00918.05
8.2.50.0080.00018.07
8.2.40.0000.00818.09
8.2.30.0000.00819.50
8.2.20.0000.00717.59
8.2.10.0050.00217.70
8.2.00.0040.00817.80
8.1.280.0070.00725.92
8.1.270.0030.00523.99
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0030.00623.96
8.1.230.0110.00019.22
8.1.220.0000.00817.76
8.1.210.0000.00818.77
8.1.200.0080.00017.35
8.1.190.0000.00817.51
8.1.180.0080.00018.89
8.1.170.0030.00518.65
8.1.160.0000.00720.67
8.1.150.0020.01018.65
8.1.140.0000.00817.38
8.1.130.0030.00317.84
8.1.120.0050.00317.46
8.1.110.0000.00717.47
8.1.100.0000.00717.43
8.1.90.0000.00717.48
8.1.80.0050.00217.48
8.1.70.0000.00717.50
8.1.60.0040.00417.63
8.1.50.0030.00617.57
8.1.40.0000.00717.57
8.1.30.0080.00017.61
8.1.20.0000.00817.65
8.1.10.0000.00717.50
8.1.00.0040.00417.43
8.0.300.0080.00018.77
8.0.290.0030.00317.13
8.0.280.0050.00518.46
8.0.270.0070.00017.26
8.0.260.0030.00316.82
8.0.250.0000.00717.00
8.0.240.0040.00416.94
8.0.230.0000.00716.93
8.0.220.0000.00716.81
8.0.210.0000.00716.82
8.0.200.0000.00617.01
8.0.190.0000.00816.93
8.0.180.0000.00716.95
8.0.170.0040.00416.84
8.0.160.0030.00316.87
8.0.150.0000.00716.94
8.0.140.0000.00716.90
8.0.130.0030.00313.37
8.0.120.0060.00316.87
8.0.110.0040.00416.88
8.0.100.0000.00716.93
8.0.90.0000.00816.95
8.0.80.0110.00716.79
8.0.70.0020.00516.72
8.0.60.0020.00516.94
8.0.50.0060.00316.74
8.0.30.0090.00916.97
8.0.20.0140.00917.40
8.0.10.0070.00016.80
8.0.00.0150.00816.78
7.4.330.0050.00015.00
7.4.320.0040.00416.59
7.4.300.0040.00416.51
7.4.290.0030.00316.55
7.4.280.0000.00716.52
7.4.270.0040.00416.45
7.4.260.0050.00013.31
7.4.250.0000.00816.57
7.4.240.0000.00716.53
7.4.230.0000.00716.59
7.4.220.0150.00416.62
7.4.210.0030.01216.57
7.4.200.0070.00016.52
7.4.190.0030.00316.70
7.4.160.0100.00716.52
7.4.150.0110.00817.40
7.4.140.0040.01317.86
7.4.130.0130.00516.50
7.4.120.0100.00716.68
7.4.110.0030.01316.36
7.4.100.0030.01516.66
7.4.90.0070.01116.56
7.4.80.0170.00019.39
7.4.70.0110.00516.41
7.4.60.0040.01216.59
7.4.50.0040.00416.43
7.4.40.0110.00722.77
7.4.30.0140.00816.54
7.4.00.0000.01415.07
7.3.330.0030.00313.09
7.3.320.0000.00713.38
7.3.310.0000.00716.33
7.3.300.0000.00716.18
7.3.290.0090.00616.30
7.3.280.0070.00816.31
7.3.270.0080.00817.40
7.3.260.0040.02116.60
7.3.250.0090.00916.51
7.3.240.0180.00016.36
7.3.230.0070.01016.39
7.3.210.0030.01416.65
7.3.200.0110.01016.55
7.3.190.0100.01016.55
7.3.180.0060.01016.63
7.3.170.0100.00716.48
7.3.160.0100.00616.37
7.3.120.0080.00814.77
7.3.110.0130.00615.04
7.3.100.0030.01215.12
7.3.90.0060.01114.88
7.3.80.0110.00414.83
7.3.70.0030.00914.92
7.3.60.0070.00414.98
7.3.50.0080.00814.78
7.3.40.0030.00614.63
7.3.30.0060.00914.62
7.3.20.0060.00616.61
7.3.10.0050.00916.72
7.3.00.0060.00516.54
7.2.330.0110.00716.63
7.2.320.0100.00716.57
7.2.310.0060.01016.76
7.2.300.0030.01216.86
7.2.290.0030.01316.59
7.2.250.0030.01715.07
7.2.240.0110.01115.01
7.2.230.0070.01015.03
7.2.220.0120.00615.24
7.2.210.0060.00914.93
7.2.200.0150.00015.09
7.2.190.0100.00714.96
7.2.180.0030.00615.05
7.2.170.0030.00914.87
7.2.130.0040.00817.02
7.2.120.0090.00316.95
7.2.110.0110.00316.94
7.2.100.0100.00417.01
7.2.90.0060.00716.95
7.2.80.0020.00917.05
7.2.70.0070.00416.86
7.2.60.0060.00816.81
7.2.50.0090.00516.85
7.2.40.0050.00916.86
7.2.30.0060.00816.74
7.2.20.0020.01216.84
7.2.10.0030.00816.86
7.2.00.0120.00817.77
7.1.330.0030.01015.65
7.1.320.0030.00615.86
7.1.310.0110.00015.70
7.1.300.0060.00915.64
7.1.290.0000.01415.89
7.1.280.0080.00015.78
7.1.270.0040.01415.83
7.1.260.0030.01415.34
7.1.250.0030.00715.61
7.1.240.0060.00915.39
7.1.230.0040.00415.84
7.1.220.0030.01015.85
7.1.210.0070.00715.87
7.1.200.0060.00715.64
7.1.190.0100.00015.91
7.1.180.0060.00315.64
7.1.170.0030.00615.94
7.1.160.0030.00615.64
7.1.150.0070.00715.04
7.1.140.0110.00415.76
7.1.130.0080.00415.59
7.1.120.0040.00715.74
7.1.110.0090.00615.58
7.1.100.0020.01216.83
7.1.90.0080.00515.91
7.1.80.0060.00615.70
7.1.70.0050.00716.53
7.1.60.0030.01517.48
7.1.50.0110.00816.29
7.1.40.0000.01515.59
7.1.30.0060.00915.74
7.1.20.0030.01015.91
7.1.10.0030.01015.80
7.1.00.0020.02019.05
7.0.330.0060.00615.09
7.0.320.0030.01015.27
7.0.310.0070.00715.19
7.0.300.0000.00915.25
7.0.290.0070.00715.58
7.0.280.0000.01015.09
7.0.270.0090.00315.41
7.0.260.0070.00714.85
7.0.250.0100.00315.23
7.0.240.0000.01315.27
7.0.230.0040.00815.00
7.0.220.0070.00715.20
7.0.210.0040.00415.41
7.0.200.0060.00315.90
7.0.190.0040.01115.54
7.0.180.0100.00315.19
7.0.170.0090.00615.39
7.0.160.0070.01015.27
7.0.150.0070.00315.46
7.0.140.0070.03918.76
7.0.130.0060.00915.29
7.0.120.0080.00815.09
7.0.110.0120.00015.13
7.0.100.0000.01015.35
7.0.90.0030.01015.39
7.0.80.0070.00715.28
7.0.70.0060.02318.58
7.0.60.0050.04318.46
7.0.50.0050.02318.60
7.0.40.0030.05016.70
7.0.30.0090.03116.64
7.0.20.0070.04216.59
7.0.10.0020.04916.62
7.0.00.0120.03816.81
5.6.380.0100.00714.19
5.6.370.0000.01214.03
5.6.360.0030.01014.50
5.6.350.0090.00614.39
5.6.340.0040.01114.22
5.6.330.0030.01014.02
5.6.320.0030.01014.32
5.6.310.0100.00313.95
5.6.300.0040.01114.03
5.6.290.0060.00914.02
5.6.280.0080.03317.58
5.6.270.0080.00514.09
5.6.260.0050.00314.19
5.6.250.0030.01013.95
5.6.240.0000.01514.09
5.6.230.0080.00014.08
5.6.220.0030.03317.20
5.6.210.0060.04417.51
5.6.200.0050.02717.66
5.6.190.0020.02917.50
5.6.180.0050.02817.63
5.6.170.0070.04217.56
5.6.160.0050.03017.53
5.6.150.0030.04417.65
5.6.140.0100.03017.73
5.6.130.0000.05117.70
5.6.120.0070.04317.64
5.6.110.0020.04817.64
5.6.100.0050.04117.62
5.6.90.0020.02617.54
5.6.80.0080.04017.18
5.6.70.0010.03817.32
5.6.60.0110.03217.30
5.6.50.0030.04217.18
5.6.40.0070.04317.25
5.6.30.0030.03717.38
5.6.20.0090.02817.27
5.6.10.0150.03517.09
5.6.00.0020.05117.21
5.5.380.0030.01011.64
5.5.370.0050.00511.64
5.5.360.0040.03715.99
5.5.350.0080.04116.05
5.5.340.0030.02416.27
5.5.330.0050.02416.27
5.5.320.0030.03616.21
5.5.310.0030.02516.23
5.5.300.0020.03316.14
5.5.290.0030.04016.25
5.5.280.0050.03216.29
5.5.270.0050.04616.27
5.5.260.0050.03316.23
5.5.250.0040.02616.17
5.5.240.0060.03915.96
5.5.230.0020.04415.90
5.5.220.0070.04015.95
5.5.210.0060.05015.89
5.5.200.0030.03015.89
5.5.190.0000.03715.94
5.5.180.0010.03615.91
5.5.170.0030.00711.64
5.5.160.0070.03715.89
5.5.150.0030.03315.94
5.5.140.0000.04715.89
5.5.130.0050.04315.88
5.5.120.0000.04915.94
5.5.110.0050.04215.96
5.5.100.0000.04615.78
5.5.90.0030.02815.90
5.5.80.0070.02315.88
5.5.70.0060.03415.84
5.5.60.0060.03115.90
5.5.50.0050.04015.88
5.5.40.0020.04115.84
5.5.30.0020.04215.82
5.5.20.0030.04715.79
5.5.10.0070.03315.86
5.5.00.0050.03915.85
5.4.450.0070.04015.46
5.4.440.0060.03315.55
5.4.430.0080.04015.57
5.4.420.0060.04315.55
5.4.410.0050.02815.48
5.4.400.0070.04215.44
5.4.390.0070.04015.29
5.4.380.0000.04415.38
5.4.370.0000.03915.42
5.4.360.0050.04115.34
5.4.350.0070.02015.36
5.4.340.0070.04015.24
5.4.330.0030.00911.64
5.4.320.0060.04015.24
5.4.310.0050.04315.24
5.4.300.0040.03015.33
5.4.290.0110.02615.41
5.4.280.0030.03315.43
5.4.270.0050.03315.39
5.4.260.0020.04215.38
5.4.250.0040.04015.25
5.4.240.0020.04115.36
5.4.230.0030.02215.42
5.4.220.0050.02715.33
5.4.210.0070.03715.27
5.4.200.0030.03615.27
5.4.190.0060.03815.27
5.4.180.0030.04115.24
5.4.170.0000.04415.37
5.4.160.0020.02415.41
5.4.150.0010.02115.26
5.4.140.0030.02014.06
5.4.130.0000.02414.04
5.4.120.0020.02014.07
5.4.110.0050.01714.06
5.4.100.0030.02114.10
5.4.90.0000.02314.06
5.4.80.0060.01814.01
5.4.70.0070.02714.05
5.4.60.0070.01714.09
5.4.50.0040.02814.04
5.4.40.0080.03814.03
5.4.30.0050.02513.97
5.4.20.0020.02514.02
5.4.10.0030.02513.97
5.4.00.0030.03713.77
5.3.290.0040.03413.18
5.3.280.0050.03513.18
5.3.270.0030.04213.12
5.3.260.0020.02513.12
5.3.250.0050.02713.10
5.3.240.0020.03213.16
5.3.230.0050.03313.12
5.3.220.0050.02013.15
5.3.210.0030.02213.18
5.3.200.0050.02713.08
5.3.190.0030.02113.11
5.3.180.0000.02213.12
5.3.170.0020.02213.08
5.3.160.0020.03513.15
5.3.150.0050.03213.06
5.3.140.0020.02213.09
5.3.130.0000.02613.12
5.3.120.0050.02013.05
5.3.110.0020.04013.15
5.3.100.0000.02312.83
5.3.90.0050.04012.81
5.3.80.0000.04012.84
5.3.70.0000.02412.84
5.3.60.0010.02112.79
5.3.50.0030.01912.86
5.3.40.0050.01912.79
5.3.30.0050.01712.77
5.3.20.0050.01712.74
5.3.10.0020.02212.70
5.3.00.0020.02212.70
5.2.170.0000.02312.05
5.2.160.0030.01512.05
5.2.150.0050.01512.05
5.2.140.0000.02012.05
5.2.130.0030.01712.05
5.2.120.0020.02112.05
5.2.110.0040.01312.05
5.2.100.0070.01312.05
5.2.90.0020.01712.05
5.2.80.0040.01712.05
5.2.70.0030.01612.05
5.2.60.0020.02012.05
5.2.50.0030.01512.05
5.2.40.0020.01712.05
5.2.30.0050.03312.05
5.2.20.0030.01512.05
5.2.10.0020.01712.05
5.2.00.0070.01312.05
5.1.60.0020.01512.05
5.1.50.0050.01212.05
5.1.40.0000.01612.05
5.1.30.0020.01712.05
5.1.20.0000.01712.05
5.1.10.0060.01012.05
5.1.00.0020.01512.05
5.0.50.0030.01112.05
5.0.40.0010.01112.05
5.0.30.0030.01812.05
5.0.20.0020.01112.05
5.0.10.0000.01212.05
5.0.00.0030.01512.05
4.4.90.0010.01012.05
4.4.80.0020.01212.05
4.4.70.0020.01012.05
4.4.60.0000.00912.05
4.4.50.0000.01212.05
4.4.40.0000.01312.05
4.4.30.0020.01212.05
4.4.20.0020.01012.05
4.4.10.0010.00912.05
4.4.00.0020.02712.05
4.3.110.0030.00812.05
4.3.100.0020.01012.05
4.3.90.0000.01212.05
4.3.80.0000.01512.05
4.3.70.0020.00712.05
4.3.60.0020.00912.05
4.3.50.0020.01012.05
4.3.40.0020.01312.05
4.3.30.0020.00912.05
4.3.20.0020.01212.05
4.3.10.0000.01112.05
4.3.00.0020.00812.05

preferences:
47.18 ms | 400 KiB | 5 Q