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=1,$plast=1,$last=1){ if($count <= $num){ $newlast=$plast+$last; $count++; return fib($num,$count,$last,$newlast); } else { return $last; } } f(2); ?>

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.0150.00718.43
8.3.50.0100.00721.92
8.3.40.0120.00318.59
8.3.30.0040.01119.07
8.3.20.0000.00820.06
8.3.10.0040.00423.56
8.3.00.0080.00020.90
8.2.180.0080.00816.50
8.2.170.0130.00722.96
8.2.160.0100.00720.52
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0070.01026.16
8.2.120.0000.00819.36
8.2.110.0060.00322.08
8.2.100.0080.00317.59
8.2.90.0000.00719.09
8.2.80.0030.00517.97
8.2.70.0030.00717.63
8.2.60.0000.00817.90
8.2.50.0030.00618.07
8.2.40.0040.00419.95
8.2.30.0000.00718.32
8.2.20.0040.00417.63
8.2.10.0050.00317.98
8.2.00.0040.00419.34
8.1.280.0140.00725.92
8.1.270.0110.00423.91
8.1.260.0070.00026.35
8.1.250.0140.00028.09
8.1.240.0040.00422.20
8.1.230.0110.00019.22
8.1.220.0000.00717.78
8.1.210.0040.00418.77
8.1.200.0040.00417.13
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0060.00318.59
8.1.160.0000.00821.97
8.1.150.0060.00318.71
8.1.140.0040.00417.46
8.1.130.0040.00417.84
8.1.120.0000.00717.38
8.1.110.0000.00717.48
8.1.100.0080.00017.45
8.1.90.0040.00417.34
8.1.80.0050.00317.46
8.1.70.0000.00717.44
8.1.60.0030.00617.64
8.1.50.0030.00517.45
8.1.40.0060.00317.43
8.1.30.0040.00417.59
8.1.20.0040.00417.68
8.1.10.0000.00717.52
8.1.00.0000.00717.46
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.38
8.0.270.0030.00317.14
8.0.260.0000.00617.17
8.0.250.0040.00417.00
8.0.240.0030.00516.96
8.0.230.0070.00016.92
8.0.220.0030.00316.85
8.0.210.0070.00016.82
8.0.200.0000.00616.98
8.0.190.0030.00616.95
8.0.180.0030.00316.81
8.0.170.0030.00616.82
8.0.160.0000.00816.84
8.0.150.0040.00416.86
8.0.140.0070.00016.85
8.0.130.0060.00013.34
8.0.120.0000.00816.75
8.0.110.0040.00416.81
8.0.100.0050.00316.84
8.0.90.0000.00816.88
8.0.80.0070.01016.96
8.0.70.0030.00516.70
8.0.60.0040.00416.77
8.0.50.0000.00716.91
8.0.30.0090.01017.07
8.0.20.0050.01817.40
8.0.10.0070.00017.02
8.0.00.0080.00816.94
7.4.330.0000.00515.08
7.4.320.0050.00216.62
7.4.300.0000.00616.58
7.4.290.0000.00716.54
7.4.280.0040.00416.62
7.4.270.0000.00716.54
7.4.260.0070.00016.59
7.4.250.0000.00816.58
7.4.240.0000.00716.64
7.4.230.0070.00016.73
7.4.220.0130.00316.44
7.4.210.0140.00716.64
7.4.200.0050.00216.52
7.4.160.0030.01316.52
7.4.150.0060.01217.40
7.4.140.0100.00817.86
7.4.130.0110.00816.38
7.4.120.0090.00816.46
7.4.110.0120.00616.36
7.4.100.0070.01016.50
7.4.90.0030.01316.33
7.4.80.0070.01619.39
7.4.70.0110.00716.53
7.4.60.0040.01316.42
7.4.50.0040.00416.33
7.4.40.0060.01016.45
7.4.30.0130.00316.55
7.4.00.0070.01014.73
7.3.330.0050.00013.14
7.3.320.0000.00513.25
7.3.310.0050.00216.21
7.3.300.0000.00716.28
7.3.290.0030.01416.26
7.3.280.0110.00916.28
7.3.270.0110.00617.40
7.3.260.0110.00716.47
7.3.250.0130.00616.44
7.3.240.0090.00916.44
7.3.230.0130.00616.42
7.3.210.0060.01016.69
7.3.200.0030.01319.39
7.3.190.0110.00716.62
7.3.180.0030.01716.32
7.3.170.0060.01016.49
7.3.160.0110.00716.54
7.3.120.0030.01114.83
7.3.10.0120.00316.57
7.3.00.0070.00716.55
7.2.330.0140.00416.75
7.2.320.0000.01716.71
7.2.310.0150.00316.53
7.2.300.0030.01916.72
7.2.290.0160.00016.60
7.2.130.0100.00317.09
7.2.120.0060.00916.99
7.2.110.0030.00617.00
7.2.100.0110.00316.80
7.2.90.0120.00616.95
7.2.80.0090.00617.01
7.2.70.0090.00016.91
7.2.60.0040.00716.89
7.2.50.0000.01317.15
7.2.40.0000.01017.06
7.2.30.0030.00617.01
7.2.20.0040.00717.04
7.2.10.0040.01216.71
7.2.00.0020.01417.99
7.1.250.0030.00915.75
7.1.200.0000.01015.66
7.1.100.0090.00917.99
7.1.70.0060.00617.21
7.1.60.0060.00816.99
7.1.50.0080.00816.98
7.1.40.0080.00616.54
7.1.30.0080.01016.66
7.1.20.0000.01416.59
7.1.10.0060.00616.56
7.1.00.0070.00316.56
7.0.200.0000.01116.83
7.0.190.0110.00416.38
7.0.180.0050.00516.32
7.0.170.0130.00416.30
7.0.160.0040.00716.36
7.0.150.0090.00416.35
7.0.140.0100.00216.29
7.0.130.0130.00816.66
7.0.120.0000.01816.61
7.0.110.0100.00316.55
7.0.100.0060.00616.45
7.0.90.0000.01216.50
7.0.80.0060.01216.52
7.0.70.0070.00516.34
7.0.60.0060.00616.29
7.0.50.0030.01316.37
7.0.40.0090.00316.29
7.0.30.0030.01016.29
7.0.20.0100.00716.29
7.0.10.0110.00316.29
7.0.00.0000.01116.29
5.6.300.0070.08120.52
5.6.290.0220.04020.90
5.6.280.0160.03720.92
5.6.270.0040.04920.87
5.6.260.0130.04120.89
5.6.250.0070.06721.09
5.6.240.0100.04020.88
5.6.230.0140.03820.96
5.6.220.0110.03920.81
5.6.210.0120.03621.05
5.6.200.0030.04821.00
5.6.190.0070.04120.86
5.6.180.0090.03820.94
5.6.170.0090.04020.87
5.6.160.0130.06320.83
5.6.150.0060.05120.82
5.6.140.0070.04420.83
5.6.130.0100.04320.84
5.6.120.0000.06020.84
5.6.110.0080.03820.83
5.6.100.0030.05320.72
5.6.90.0000.04820.92
5.6.80.0060.04320.25
5.6.70.0070.03620.41
5.6.60.0090.04420.33
5.6.50.0070.03720.22
5.6.40.0070.04220.39
5.6.30.0040.06920.30
5.6.20.0030.04120.35
5.6.10.0150.03420.32
5.6.00.0030.04320.17
5.5.380.0030.04717.54
5.5.370.0000.04917.63
5.5.360.0030.04117.55
5.5.350.0040.06717.64
5.5.340.0070.04618.09
5.5.330.0030.04517.71
5.5.320.0000.04417.75
5.5.310.0030.04418.14
5.5.300.0040.04918.09
5.5.290.0000.04817.86
5.5.280.0000.05318.03
5.5.270.0070.04317.70
5.5.260.0000.04517.73
5.5.250.0100.03417.65
5.5.240.0070.03917.45
5.5.230.0100.03617.42
5.5.220.0030.04217.38
5.5.210.0000.04617.46
5.5.200.0070.04717.10
5.5.190.0030.04417.19
5.5.180.0070.04217.41
5.5.160.0060.03517.53
5.5.150.0030.03717.35
5.5.140.0030.03817.38
5.5.130.0000.04017.36
5.5.120.0030.03917.43
5.5.110.0030.04117.43
5.5.100.0000.04817.38
5.5.90.0000.04417.34
5.5.80.0070.03217.11
5.5.70.0030.03717.32
5.5.60.0090.03117.36
5.5.50.0030.03617.25
5.5.40.0060.03616.98
5.5.30.0100.02917.34
5.5.20.0000.04217.24
5.5.10.0100.03517.34
5.5.00.0070.03317.23
5.4.450.0060.03919.40
5.4.440.0030.04119.40
5.4.430.0170.04419.47
5.4.420.0000.04219.45
5.4.410.0000.04219.41
5.4.400.0070.04919.24
5.4.390.0040.03919.21
5.4.380.0060.03919.06
5.4.370.0030.04018.98
5.4.360.0070.03418.99
5.4.350.0030.05119.08
5.4.340.0030.04419.14
5.4.320.0120.03119.17
5.4.310.0030.03719.06
5.4.300.0100.04019.21
5.4.290.0030.06519.20
5.4.280.0100.03519.21
5.4.270.0000.04219.20
5.4.260.0000.04919.14
5.4.250.0000.04319.16
5.4.240.0030.04219.20
5.4.230.0030.03819.07
5.4.220.0060.04519.05
5.4.210.0000.04219.01
5.4.200.0000.05018.96
5.4.190.0100.03419.02
5.4.180.0030.04119.04
5.4.170.0070.03619.06
5.4.160.0030.03619.12
5.4.150.0100.03618.91
5.4.140.0100.03216.64
5.4.130.0060.05216.72
5.4.120.0070.03016.72
5.4.110.0100.02916.77
5.4.100.0070.03616.76
5.4.90.0000.04416.69
5.4.80.0000.04116.54
5.4.70.0030.04216.79
5.4.60.0040.04916.71
5.4.50.0040.07416.63
5.4.40.0090.06516.66
5.4.30.0170.02416.60
5.4.20.0040.03816.53
5.4.10.0090.03816.71
5.4.00.0070.05316.29
5.3.290.0000.04516.29
5.3.280.0000.04216.29
5.3.270.0040.03516.29
5.3.260.0090.03016.29
5.3.250.0030.03916.29
5.3.240.0030.03516.29
5.3.230.0000.04016.29
5.3.220.0030.03516.29
5.3.210.0030.04216.29
5.3.200.0040.03616.29
5.3.190.0000.04216.29
5.3.180.0000.04216.29
5.3.170.0000.03916.29
5.3.160.0030.05916.29
5.3.150.0030.06616.29
5.3.140.0000.04516.29
5.3.130.0000.04416.29
5.3.120.0100.05816.29
5.3.110.0030.05116.29
5.3.100.0030.04016.29
5.3.90.0070.03316.29
5.3.80.0000.03816.29
5.3.70.0070.03616.29
5.3.60.0100.03616.29
5.3.50.0030.03616.29
5.3.40.0030.03616.29
5.3.30.0000.04016.29
5.3.20.0070.03416.29
5.3.10.0030.03416.29
5.3.00.0000.05316.29
5.2.170.0070.02716.29
5.2.160.0070.02416.29
5.2.150.0070.02416.29
5.2.140.0070.03616.29
5.2.130.0000.03116.29
5.2.120.0030.02716.29
5.2.110.0060.02416.29
5.2.100.0030.04916.29
5.2.90.0030.03316.29
5.2.80.0000.03116.29
5.2.70.0030.03916.29
5.2.60.0000.03016.29
5.2.50.0000.03816.29
5.2.40.0030.02716.29
5.2.30.0000.03116.29
5.2.20.0030.02916.29
5.2.10.0060.02316.29
5.2.00.0060.03516.29
5.1.60.0030.02316.29
5.1.50.0090.02516.29
5.1.40.0000.02616.29
5.1.30.0000.03116.29
5.1.20.0030.03716.29
5.1.10.0030.02416.29
5.1.00.0040.02516.29
5.0.50.0000.02316.29
5.0.40.0030.04016.29
5.0.30.0030.03116.29
5.0.20.0030.03616.29
5.0.10.0030.01916.29
5.0.00.0000.03916.29
4.4.90.0030.01616.29
4.4.80.0000.01616.29
4.4.70.0030.01616.29
4.4.60.0030.01716.29
4.4.50.0000.01716.29
4.4.40.0040.02916.29
4.4.30.0070.01016.29
4.4.20.0000.02016.29
4.4.10.0030.02116.29
4.4.00.0000.02716.29
4.3.110.0060.01016.29
4.3.100.0040.01916.29
4.3.90.0030.04316.29
4.3.80.0000.05316.29
4.3.70.0000.03016.29
4.3.60.0000.01816.29
4.3.50.0030.01416.29
4.3.40.0000.02516.29
4.3.30.0000.01716.29
4.3.20.0040.01916.29
4.3.10.0000.02016.29
4.3.00.0000.02116.29

preferences:
41.16 ms | 401 KiB | 5 Q