3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ilk = 5; $iki = 3; $ust = fact($ilk); echo $ust; $alt = fact($iki) * fact($ilk - $iki); echo $ust / $alt; function fact(int $sayi){ for(; $sayi>0; $sayi--){ if(!isset($sonuc)){ $sonuc = $sayi; }else{ $sonuc *= $sayi; } } return $sonuc; }

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.0070.01118.43
8.3.50.0220.00018.34
8.3.40.0100.00618.50
8.3.30.0120.00318.55
8.3.20.0040.00419.15
8.3.10.0050.00319.35
8.3.00.0000.00823.60
8.2.180.0110.00718.16
8.2.170.0100.00718.96
8.2.160.0100.00322.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00419.89
8.2.120.0040.00426.35
8.2.110.0030.00621.05
8.2.100.0100.00017.84
8.2.90.0050.00318.03
8.2.80.0030.00519.03
8.2.70.0000.00817.93
8.2.60.0000.00817.93
8.2.50.0040.00418.10
8.2.40.0080.00019.48
8.2.30.0080.00019.58
8.2.20.0000.00718.26
8.2.10.0000.00718.14
8.2.00.0060.00319.38
8.1.280.0070.00725.92
8.1.270.0000.00822.20
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00622.59
8.1.230.0090.00320.77
8.1.220.0030.00617.77
8.1.210.0040.00418.97
8.1.200.0060.00317.38
8.1.190.0090.00017.10
8.1.180.0040.00418.10
8.1.170.0060.00318.59
8.1.160.0000.00718.90
8.1.150.0000.00818.86
8.1.140.0050.00217.59
8.1.130.0070.00018.90
8.1.120.0000.00717.45
8.1.110.0000.00717.49
8.1.100.0070.00017.45
8.1.90.0080.00417.41
8.1.80.0040.00417.44
8.1.70.0000.00717.47
8.1.60.0090.00317.47
8.1.50.0000.00817.52
8.1.40.0000.00817.42
8.1.30.0030.00617.50
8.1.20.0000.00717.67
8.1.10.0000.00717.43
8.1.00.0000.00817.41
8.0.300.0030.00619.86
8.0.290.0070.00016.75
8.0.280.0000.00718.43
8.0.270.0030.00317.19
8.0.260.0030.00317.27
8.0.250.0030.00316.96
8.0.240.0040.00417.01
8.0.230.0000.00816.80
8.0.220.0030.00616.91
8.0.210.0000.00716.80
8.0.200.0000.00816.97
8.0.190.0040.00416.98
8.0.180.0060.00316.82
8.0.170.0000.00916.90
8.0.160.0000.00717.01
8.0.150.0070.00016.73
8.0.140.0030.00616.83
8.0.130.0050.00013.38
8.0.120.0000.00716.90
8.0.110.0030.00616.79
8.0.100.0000.00716.89
8.0.90.0000.00716.78
8.0.80.0110.00616.84
8.0.70.0040.00416.96
8.0.60.0020.00516.79
8.0.50.0040.00416.91
8.0.30.0090.00917.19
8.0.20.0120.00817.40
8.0.10.0000.00817.07
8.0.00.0150.00616.74
7.4.330.0000.00515.55
7.4.320.0060.00016.53
7.4.300.0000.00716.64
7.4.290.0000.00616.45
7.4.280.0000.00716.55
7.4.270.0000.00716.51
7.4.260.0030.00316.57
7.4.250.0000.00716.39
7.4.240.0090.00016.47
7.4.230.0000.00716.50
7.4.220.0060.00316.70
7.4.210.0070.00916.62
7.4.200.0000.00816.64
7.4.160.0070.00916.50
7.4.140.0100.00917.86
7.4.130.0140.00316.63
7.4.120.0110.00816.52
7.4.110.0130.00316.42
7.4.100.0040.01216.56
7.4.90.0100.00716.54
7.4.80.0120.00819.39
7.4.70.0180.00416.47
7.4.60.0120.00616.52
7.4.50.0060.01016.54
7.4.40.0140.00816.63
7.3.330.0030.00313.41
7.3.320.0000.00613.20
7.3.310.0050.00316.26
7.3.300.0000.00716.37
7.3.290.0000.00816.33
7.3.280.0110.00716.37
7.3.260.0100.00916.51
7.3.240.0080.00916.42
7.3.230.0030.01416.52
7.3.210.0120.00616.51
7.3.200.0090.00616.56
7.3.190.0100.00716.62
7.3.180.0090.00616.51
7.3.170.0060.01216.71
7.3.160.0130.00316.38
7.2.330.0100.01316.78
7.2.320.0070.01016.50
7.2.310.0160.00616.78
7.2.300.0070.01016.78
7.2.290.0040.01516.64

preferences:
77.59 ms | 400 KiB | 5 Q