3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Mathematic { static function factorial(int $number) { if($number < 1) return 1; return $number * factorial($number -1); } } Mathematic::factorial(5);

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.00016.75
8.3.50.0070.00718.03
8.3.40.0070.00718.89
8.3.30.0110.00418.88
8.3.20.0040.00420.21
8.3.10.0050.00323.46
8.3.00.0000.00819.79
8.2.180.0060.01218.16
8.2.170.0090.00622.96
8.2.160.0080.00519.29
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00420.89
8.2.120.0040.00426.35
8.2.110.0030.00719.12
8.2.100.0090.00317.91
8.2.90.0050.00319.05
8.2.80.0000.00817.97
8.2.70.0080.00017.50
8.2.60.0000.00817.87
8.2.50.0060.00318.07
8.2.40.0040.00422.20
8.2.30.0000.00720.50
8.2.20.0040.00417.55
8.2.10.0040.00417.98
8.2.00.0040.00418.02
8.1.280.0120.00625.92
8.1.270.0120.00620.43
8.1.260.0070.00028.09
8.1.250.0070.00028.09
8.1.240.0140.00321.37
8.1.230.0000.01217.42
8.1.220.0090.00017.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0000.00816.96
8.1.180.0040.00418.10
8.1.170.0030.00618.59
8.1.160.0040.00420.54
8.1.150.0050.00318.75
8.1.140.0080.00019.42
8.1.130.0070.00017.44
8.1.120.0000.00717.29
8.1.110.0080.00017.29
8.1.100.0030.00317.28
8.1.90.0000.00717.29
8.1.80.0070.00017.37
8.1.70.0030.00317.15
8.1.60.0070.00017.48
8.1.50.0030.00517.45
8.1.40.0050.00317.48
8.1.30.0000.00817.50
8.1.20.0030.00617.54
8.1.10.0070.00017.53
8.1.00.0000.00717.41
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.30
8.0.270.0070.00017.10
8.0.260.0000.00817.14
8.0.250.0000.00716.98
8.0.240.0000.00716.88
8.0.230.0030.00716.97
8.0.220.0070.00016.79
8.0.210.0040.00416.76
8.0.200.0000.00716.89
8.0.190.0070.00316.93
8.0.180.0040.00416.95
8.0.170.0040.00416.93
8.0.160.0020.00516.80
8.0.150.0040.00416.86
8.0.140.0070.00316.76
8.0.130.0050.00013.39
8.0.120.0000.00816.82
8.0.110.0040.00416.77
8.0.100.0000.00816.93
8.0.90.0070.00016.79
8.0.80.0040.01116.95
8.0.70.0050.00316.93
8.0.60.0020.00516.82
8.0.50.0070.00016.70
8.0.30.0090.00817.01
8.0.20.0100.00917.40
8.0.10.0050.00316.77
8.0.00.0070.01116.76
7.4.330.0000.00616.73
7.4.320.0000.00616.50
7.4.300.0060.00016.53
7.4.290.0030.00316.52
7.4.280.0070.00016.50
7.4.270.0030.00316.46
7.4.260.0030.00516.43
7.4.250.0000.00716.35
7.4.240.0020.00516.55
7.4.230.0070.00016.33
7.4.220.0070.01016.40
7.4.210.0080.00716.50
7.4.200.0030.00316.60
7.4.160.0060.00916.47
7.4.150.0100.00717.40
7.4.140.0150.00617.86
7.4.130.0110.00716.46
7.4.120.0110.00616.35
7.4.110.0110.00716.53
7.4.100.0180.00616.45
7.4.90.0090.00916.58
7.4.80.0070.01619.39
7.4.70.0000.01616.34
7.4.60.0060.01416.60
7.4.50.0060.00916.48
7.4.40.0080.00816.32
7.4.30.0060.01816.38
7.4.00.0100.00815.02
7.3.330.0030.00313.22
7.3.320.0040.00413.22
7.3.310.0080.00016.17
7.3.300.0050.00316.30
7.3.290.0060.01016.32
7.3.280.0110.00516.34
7.3.270.0070.01017.40
7.3.260.0090.00916.62
7.3.250.0110.00916.54
7.3.240.0100.00616.57
7.3.230.0110.01116.49
7.3.210.0100.01316.35
7.3.200.0110.00716.30
7.3.190.0090.01416.58
7.3.180.0000.01616.38
7.3.170.0030.01416.32
7.3.160.0130.00316.41
7.3.120.0040.01414.74
7.3.110.0060.01214.98
7.3.100.0120.00314.89
7.3.90.0100.00314.88
7.3.80.0060.00614.84
7.3.70.0040.01114.93
7.3.60.0060.00814.88
7.3.50.0000.00814.79
7.3.40.0000.01514.51
7.3.30.0060.00614.85
7.3.20.0080.00516.71
7.3.10.0070.01016.33
7.3.00.0070.00716.61
7.2.330.0140.01016.47
7.2.320.0090.00916.66
7.2.310.0100.00716.54
7.2.300.0080.00916.52
7.2.290.0100.01016.41
7.2.250.0090.00614.90
7.2.240.0040.01414.93
7.2.230.0070.00715.17
7.2.220.0060.00814.88
7.2.210.0060.00615.14
7.2.200.0060.00914.82
7.2.190.0070.00714.87
7.2.180.0030.01314.94
7.2.170.0090.00614.84
7.2.60.0030.01316.59
7.2.00.0040.00819.09
7.1.330.0030.00915.78
7.1.320.0090.00615.81
7.1.310.0040.00815.71
7.1.300.0040.00415.78
7.1.290.0100.00315.42
7.1.280.0110.00415.59
7.1.270.0100.00315.77
7.1.260.0080.00815.54
7.1.200.0130.00315.58
7.1.100.0090.00318.21
7.1.70.0000.01117.22
7.1.60.0040.01119.44
7.1.50.0090.01316.88
7.1.00.0100.07022.28
7.0.200.0150.00314.97
7.0.100.0030.08320.07
7.0.90.0100.08019.93
7.0.80.0070.08019.90
7.0.70.0030.05319.96
7.0.60.0070.07719.98
7.0.50.0070.08020.32
7.0.40.0070.09320.09
7.0.30.0170.06720.14
7.0.20.0170.06320.05
7.0.10.0070.04020.05
7.0.00.0070.04020.07
5.6.280.0030.06320.82
5.6.250.0070.05020.78
5.6.240.0000.05320.70
5.6.230.0100.06320.55
5.6.220.0070.08020.59
5.6.210.0070.08320.75
5.6.200.0000.09021.02
5.6.190.0070.07321.05
5.6.180.0170.07721.04
5.6.170.0100.07321.03
5.6.160.0100.03720.96
5.6.150.0030.04721.14
5.6.140.0030.04021.07
5.6.130.0030.04321.09
5.6.120.0100.03721.05
5.6.110.0070.04021.13
5.6.100.0070.04320.99
5.6.90.0100.03720.92
5.6.80.0070.03720.49
5.6.70.0100.04320.51
5.6.60.0030.06320.47
5.6.50.0030.04020.42
5.6.40.0100.06020.43
5.6.30.0070.04020.45
5.6.20.0000.04320.39
5.6.10.0030.06020.40
5.6.00.0070.03320.52
5.5.380.0100.07020.39
5.5.370.0030.07720.36
5.5.360.0130.07320.41
5.5.350.0200.07320.32
5.5.340.0000.08320.92
5.5.330.0030.07320.89
5.5.320.0030.08720.80
5.5.310.0070.04320.92
5.5.300.0070.06020.80
5.5.290.0030.04320.81
5.5.280.0000.04720.86
5.5.270.0030.04320.88
5.5.260.0000.04320.82
5.5.250.0070.04020.57
5.5.240.0000.04020.33
5.5.230.0000.04320.26
5.5.220.0070.03720.25
5.5.210.0030.04020.25
5.5.200.0070.04020.21
5.5.190.0030.05720.27
5.5.180.0070.04320.20
5.5.160.0070.04020.16
5.5.150.0030.04020.16
5.5.140.0030.04020.27
5.5.130.0000.04020.22
5.5.120.0000.05320.21
5.5.110.0130.04020.11
5.5.100.0070.03720.12
5.5.90.0100.03320.13
5.5.80.0100.03319.98
5.5.70.0030.04020.11
5.5.60.0100.03719.98
5.5.50.0070.07720.09
5.5.40.0030.04020.00
5.5.30.0070.03720.02
5.5.20.0030.06720.14
5.5.10.0070.03720.11
5.5.00.0000.04720.13

preferences:
47.84 ms | 400 KiB | 5 Q