3v4l.org

run code in 300+ PHP versions simultaneously
<?php function factorial($n) { if ($n == 1) { return 1; } $n*factorial($n-1); $result[] = $n; return $result; } var_dump(factorial(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.0120.00316.75
8.3.50.0130.00821.91
8.3.40.0140.00318.79
8.3.30.0110.00418.61
8.3.20.0040.00420.27
8.3.10.0030.00623.66
8.3.00.0040.00419.79
8.2.180.0090.00618.41
8.2.170.0070.00722.96
8.2.160.0140.00020.60
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00821.04
8.2.120.0040.00426.35
8.2.110.0030.00620.52
8.2.100.0040.00717.93
8.2.90.0090.00019.17
8.2.80.0000.00817.97
8.2.70.0030.00517.63
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0000.00821.25
8.2.30.0100.00020.55
8.2.20.0000.00717.67
8.2.10.0040.00418.07
8.2.00.0040.00418.03
8.1.280.0180.00425.92
8.1.270.0080.00019.00
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0090.00023.88
8.1.230.0080.00317.66
8.1.220.0050.00317.76
8.1.210.0000.00818.77
8.1.200.0000.00917.34
8.1.190.0000.00817.53
8.1.180.0020.00518.10
8.1.170.0000.00818.68
8.1.160.0000.00820.76
8.1.150.0030.00518.79
8.1.140.0000.00819.57
8.1.130.0000.00717.65
8.1.120.0030.00317.30
8.1.110.0040.00417.48
8.1.100.0000.00717.46
8.1.90.0040.00417.34
8.1.80.0000.00817.35
8.1.70.0000.00817.23
8.1.60.0080.00017.59
8.1.50.0030.00617.47
8.1.40.0040.00417.39
8.1.30.0000.00817.63
8.1.20.0090.00017.60
8.1.10.0000.00817.52
8.1.00.0040.00417.51
8.0.300.0020.00518.77
8.0.290.0050.00316.75
8.0.280.0030.00518.33
8.0.270.0070.00017.30
8.0.260.0060.00017.17
8.0.250.0070.00017.03
8.0.240.0030.00316.93
8.0.230.0000.00717.05
8.0.220.0050.00316.92
8.0.210.0070.00016.85
8.0.200.0040.00416.86
8.0.190.0000.00716.86
8.0.180.0060.00316.92
8.0.170.0000.00716.93
8.0.160.0080.00016.80
8.0.150.0030.00516.89
8.0.140.0000.00716.86
8.0.130.0050.00013.27
8.0.120.0000.00816.78
8.0.110.0040.00416.86
8.0.100.0000.00816.86
8.0.90.0030.00316.71
8.0.80.0000.01516.83
8.0.70.0000.00716.69
8.0.60.0070.00017.00
8.0.50.0000.00716.91
8.0.30.0150.00217.24
8.0.20.0110.01117.40
8.0.10.0030.00517.08
8.0.00.0110.00816.83
7.4.330.0020.00216.88
7.4.320.0030.00316.50
7.4.300.0000.00616.44
7.4.290.0030.00316.42
7.4.280.0040.00416.52
7.4.270.0030.00316.45
7.4.260.0000.00716.41
7.4.250.0000.00816.30
7.4.240.0050.00216.42
7.4.230.0030.00316.51
7.4.220.0160.00616.46
7.4.210.0070.00716.51
7.4.200.0000.00816.42
7.4.160.0070.01116.50
7.4.150.0110.00617.40
7.4.140.0100.00817.86
7.4.130.0120.00616.46
7.4.120.0180.00316.50
7.4.110.0140.00316.66
7.4.100.0070.01016.37
7.4.90.0070.01116.55
7.4.80.0090.01219.39
7.4.70.0080.00816.47
7.4.60.0060.01316.56
7.4.50.0060.01016.19
7.4.40.0060.01616.39
7.4.30.0120.00616.65
7.4.00.0090.00914.91
7.3.330.0020.00213.36
7.3.320.0030.00313.32
7.3.310.0070.00016.25
7.3.300.0070.00016.32
7.3.290.0090.00916.37
7.3.280.0090.01116.35
7.3.270.0110.00717.40
7.3.260.0120.00616.43
7.3.240.0060.01116.34
7.3.230.0070.01016.39
7.3.210.0110.00816.39
7.3.200.0080.00816.55
7.3.190.0070.01016.63
7.3.180.0060.01316.35
7.3.170.0070.01016.39
7.3.160.0130.01016.31
7.3.120.0070.01014.64
7.3.110.0120.00614.45
7.3.100.0090.00914.93
7.3.90.0060.00915.05
7.3.80.0040.01114.82
7.3.70.0070.01014.95
7.3.60.0000.00914.89
7.3.50.0060.00914.99
7.3.40.0040.00814.92
7.3.30.0040.01114.53
7.3.20.0060.00616.67
7.3.10.0050.01016.66
7.3.00.0020.01016.50
7.2.330.0130.00716.53
7.2.320.0030.01316.84
7.2.310.0120.00616.41
7.2.300.0080.01116.49
7.2.290.0070.01016.64
7.2.250.0040.01514.99
7.2.240.0100.01014.97
7.2.230.0070.01114.91
7.2.220.0060.00614.73
7.2.210.0070.00715.10
7.2.200.0000.01415.05
7.2.190.0070.00315.05
7.2.180.0030.01014.89
7.2.170.0030.01015.03
7.2.160.0000.00915.01
7.2.150.0040.01116.93
7.2.140.0060.01217.03
7.2.130.0030.01216.71
7.2.120.0050.00717.00
7.2.110.0080.00616.80
7.2.100.0040.00716.91
7.2.90.0030.01216.77
7.2.80.0050.00916.69
7.2.70.0040.00716.99
7.2.60.0060.00916.91
7.2.50.0050.01116.92
7.2.40.0050.00716.85
7.2.30.0050.00817.04
7.2.20.0030.01317.01
7.2.10.0050.00916.74
7.2.00.0030.01117.70
7.1.330.0040.01115.70
7.1.320.0030.00915.70
7.1.310.0060.00615.78
7.1.300.0060.00915.72
7.1.290.0040.00815.65
7.1.280.0050.00515.74
7.1.270.0060.00315.50
7.1.260.0100.00715.68
7.1.250.0030.00815.60
7.1.200.0040.00815.70
7.1.100.0060.00617.82
7.1.70.0000.00717.00
7.1.60.0070.01719.13
7.1.50.0060.00616.54
7.1.00.0070.06722.36
7.0.200.0060.00316.81
7.0.60.0070.07019.93
7.0.50.0130.07717.73
7.0.40.0070.08720.18
7.0.30.0230.03320.34
7.0.20.0300.04720.06
7.0.10.0100.08320.18
7.0.00.0100.04020.22
5.6.280.0030.04720.90
5.6.210.0030.06020.70
5.6.200.0100.08018.29
5.6.190.0030.09320.49
5.6.180.0500.07320.55
5.6.170.0200.05020.71
5.6.160.0030.07020.50
5.6.150.0100.05018.17
5.6.140.0070.04718.14
5.6.130.0130.07318.27
5.6.120.0130.03720.96
5.6.110.0030.04320.97
5.6.100.0070.04321.00
5.6.90.0030.04020.98
5.6.80.0130.06720.53
5.5.350.0070.07720.28
5.5.340.0100.07718.06
5.5.330.0000.04720.57
5.5.320.0070.08020.42
5.5.310.0130.04320.19
5.5.300.0030.04317.98
5.5.290.0000.07717.98
5.5.280.0000.09020.73
5.5.270.0030.08720.82
5.5.260.0130.07020.77
5.5.250.0030.08320.46
5.5.240.0170.08020.37

preferences:
62.93 ms | 401 KiB | 5 Q