3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pourcentage_base=0.1; $min=10; $max=50; $vendeur=0.02; $association= array ( array(1,500,5), array(501,1000,10), array(1001,3000,15), array(3001,1000000,20) ); $entrepot=100; $montant=1000; function creer_matrice() { $matrice=array(); for ($i=1; $i<=10 ; $i+1) { $frais_base=$i*$pourcentage_base; if ($frais_base<10) { $frais_base=10; } elseif ($frais_base>50) { $frais_base=50; } } echo $frais_base; } creer_matrice(); ?>

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.00318.68
8.3.50.0170.00821.87
8.3.40.0080.00818.90
8.3.30.0100.00318.92
8.3.20.0070.00020.14
8.3.10.0040.00420.56
8.3.00.0060.00319.23
8.2.180.0090.00916.50
8.2.170.0040.01122.96
8.2.160.0080.00620.34
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00420.85
8.2.110.0090.00021.07
8.2.100.0040.00817.84
8.2.90.0000.00819.09
8.2.80.0060.00317.97
8.2.70.0030.00617.63
8.2.60.0040.00418.04
8.2.50.0070.00018.13
8.2.40.0040.00420.42
8.2.30.0000.00721.17
8.2.20.0040.00417.75
8.2.10.0080.00018.07
8.2.00.0060.00317.79
8.1.280.0120.00625.92
8.1.270.0000.00822.04
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0030.00619.54
8.1.230.0110.00017.83
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0090.00017.22
8.1.190.0000.00817.23
8.1.180.0000.00918.10
8.1.170.0070.00018.67
8.1.160.0000.00718.80
8.1.150.0040.00418.93
8.1.140.0040.00417.46
8.1.130.0030.00317.94
8.1.120.0000.00717.54
8.1.110.0080.00017.46
8.1.100.0040.00417.36
8.1.90.0030.00317.48
8.1.80.0000.00717.34
8.1.70.0000.00717.36
8.1.60.0050.00317.67
8.1.50.0050.00317.48
8.1.40.0000.00717.59
8.1.30.0050.00317.65
8.1.20.0040.00417.57
8.1.10.0000.00817.60
8.1.00.0040.00417.59
8.0.300.0000.00718.82
8.0.290.0070.00016.63
8.0.280.0030.00318.36
8.0.270.0030.00317.13
8.0.260.0000.00717.10
8.0.250.0030.00316.90
8.0.240.0030.00316.83
8.0.230.0070.00016.76
8.0.220.0030.00316.73
8.0.210.0030.00316.77
8.0.200.0040.00416.94
8.0.190.0080.00016.71
8.0.180.0000.00716.72
8.0.170.0030.00616.86
8.0.160.0050.00216.83
8.0.150.0040.00416.80
8.0.140.0030.00316.86
8.0.130.0000.00613.37
8.0.120.0050.00316.85
8.0.110.0000.00816.61
8.0.100.0070.00016.84
8.0.90.0000.00716.66
8.0.80.0060.00916.76
8.0.70.0000.00716.77
8.0.60.0000.00716.60
8.0.50.0050.00216.63
8.0.30.0110.01116.97
8.0.20.0170.00617.40
8.0.10.0000.00716.82
8.0.00.0060.01516.80
7.4.330.0000.00515.00
7.4.320.0040.00416.31
7.4.300.0000.00716.30
7.4.290.0070.00016.48
7.4.280.0050.00216.34
7.4.270.0030.00316.39
7.4.260.0030.00516.48
7.4.250.0000.00816.48
7.4.240.0010.00616.28
7.4.230.0030.00316.59
7.4.220.0110.00816.38
7.4.210.0090.01216.36
7.4.200.0070.00016.55
7.4.160.0190.00616.34
7.4.150.0160.00417.40
7.4.140.0150.00917.86
7.4.130.0080.01116.47
7.4.120.0160.00816.58
7.4.110.0150.00716.58
7.4.100.0200.00816.39
7.4.90.0060.01216.53
7.4.80.0160.00319.39
7.4.70.0110.00816.57
7.4.60.0140.01016.45
7.4.50.0040.00416.45
7.4.40.0090.01116.39
7.4.30.0100.01016.46
7.4.00.0100.00714.87
7.3.330.0321.96213.37
7.3.320.0071.99413.37
7.3.310.0000.00716.02
7.3.300.0070.00016.08
7.3.290.0060.00916.25
7.3.280.0060.01216.33
7.3.270.0150.00817.40
7.3.260.0100.01016.27
7.3.250.0100.01216.32
7.3.240.0120.00616.46
7.3.230.0150.01516.39
7.3.210.0190.01016.25
7.3.200.0100.01019.39
7.3.190.0060.02016.49
7.3.180.0090.00916.34
7.3.170.0060.01216.33
7.3.160.0090.00916.41
7.2.330.0060.01316.55
7.2.320.0130.01016.33
7.2.310.0100.01416.66
7.2.300.0110.01116.23
7.2.290.0100.01016.45
7.2.60.0100.00716.49
7.2.00.0090.00318.95
7.1.200.0030.00615.53
7.1.100.0040.01118.24
7.1.70.0030.00316.77
7.1.60.0090.01519.61
7.1.50.0240.01434.91
7.0.200.0460.00714.38
5.6.10.0000.07020.43
5.6.00.0030.07020.38
5.5.160.0070.06717.24
5.5.150.0030.07017.39
5.5.140.0000.06017.46
5.5.130.0100.06317.17
5.5.120.0030.07017.16
5.5.110.0070.06317.44
5.5.100.0000.07317.20
5.5.90.0000.07017.06
5.5.80.0070.06017.14
5.5.70.0030.06017.33
5.5.60.0070.05317.37
5.5.50.0100.06317.27
5.5.40.0030.06017.14
5.5.30.0000.07017.21
5.5.20.0000.07317.05
5.5.10.0000.07317.13
5.5.00.0070.06717.28
5.4.320.0030.07019.01
5.4.310.0130.05318.95
5.4.300.0070.06718.92
5.4.290.0030.06718.92
5.4.280.0070.06719.27
5.4.270.0030.06718.90
5.4.260.0070.06319.27
5.4.250.0070.06318.87
5.4.240.0030.07018.88
5.4.230.0070.06319.18
5.4.220.0030.07019.11
5.4.210.0070.06318.91
5.4.200.0000.07019.06
5.4.190.0070.06019.08
5.4.180.0070.06319.09
5.4.170.0100.06018.91
5.4.160.0070.05718.90
5.4.150.0070.07018.89
5.4.140.0030.06716.44
5.4.130.0030.06716.43
5.4.120.0030.06316.45
5.4.110.0030.06716.47
5.4.100.0000.06716.50
5.4.90.0070.05716.23
5.4.80.0070.04316.47
5.4.70.0070.05716.22
5.4.60.0130.04716.42
5.4.50.0000.06716.34
5.4.40.0000.06316.46
5.4.30.0100.05716.21
5.4.20.0070.06016.44
5.4.10.0070.06316.36
5.4.00.0000.06715.79

preferences:
39.4 ms | 401 KiB | 5 Q