3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getRates() { return array_fill( 0, 100000, array ( 'Regimen' => 'nin', 'Price' => 32, 'NetPrice' => 32, 'BookingFee' => 12, 'Tax' => 0, 'forfait' => 1, 'ProviderId' => 1 ) ); } $rates = array (); foreach (getRates() as $rate) { $rates[] = array ( 'board' => $rate['Regimen'], 'price' => $rate['Price'], 'netprice' => $rate['NetPrice'], 'bookingfee' => $rate['BookingFee'], 'tax' => $rate['Tax'] ); }

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.40.0500.01344.84
8.3.30.0360.01345.35
8.3.20.0130.01346.32
8.3.10.0100.01748.08
8.3.00.0100.01044.54
8.2.170.0260.02344.91
8.2.160.0330.02346.65
8.2.150.0160.01045.13
8.2.140.0100.01845.21
8.2.130.0070.00748.21
8.2.120.0060.00947.18
8.2.110.0030.01847.14
8.2.100.0200.02344.03
8.2.90.0140.01844.22
8.2.80.0100.01746.16
8.2.70.0090.01943.93
8.2.60.0190.02243.93
8.2.50.0100.02043.93
8.2.40.0230.01046.46
8.2.30.0170.01344.09
8.2.20.0100.01643.71
8.2.10.0070.02043.98
8.2.00.0190.01343.47
8.1.270.0130.01950.75
8.1.260.0140.01447.36
8.1.250.0100.01451.84
8.1.240.0210.01850.70
8.1.230.0290.01649.37
8.1.220.0120.01546.16
8.1.210.0260.00447.35
8.1.200.0330.01245.85
8.1.190.0100.02345.60
8.1.180.0110.01845.73
8.1.170.0070.02246.83
8.1.160.0180.01150.38
8.1.150.0160.01246.96
8.1.140.0170.01045.73
8.1.130.0160.01645.72
8.1.120.0130.01345.86
8.1.110.0180.01145.87
8.1.100.0140.01445.81
8.1.90.0100.01745.82
8.1.80.0210.00745.84
8.1.70.0190.01245.75
8.1.60.0130.01745.90
8.1.50.0150.01545.93
8.1.40.0030.02745.96
8.1.30.0170.01345.95
8.1.20.0170.01445.91
8.1.10.0200.02059.61
8.1.00.0240.01759.37
8.0.300.0210.02162.04
8.0.290.0200.02358.57
8.0.280.0230.02660.27
8.0.270.0140.02459.20
8.0.260.0260.01058.67
8.0.250.0170.02058.96
8.0.240.0100.02758.93
8.0.230.0170.02058.93
8.0.220.0160.01958.77
8.0.210.0200.01758.74
8.0.200.0420.01058.70
8.0.190.0230.01958.94
8.0.180.0320.02658.87
8.0.170.0190.02258.84
8.0.160.0200.02058.96
8.0.150.0100.03058.83
8.0.140.0270.02158.65
8.0.130.0230.01355.36
8.0.120.0290.01358.70
8.0.110.0140.02758.71
8.0.100.0190.02258.84
8.0.90.0160.02358.68
8.0.80.0410.03458.74
8.0.70.0170.02158.89
8.0.60.0100.03058.71
8.0.50.0140.02558.68
8.0.30.0440.05058.97
8.0.20.0470.04158.94
8.0.10.0130.02658.90
8.0.00.0440.04458.65
7.4.330.0110.02555.19
7.4.320.0170.02058.38
7.4.300.0100.02858.44
7.4.290.0160.02358.47
7.4.280.0370.02058.44
7.4.270.0220.01658.39
7.4.260.0100.03058.27
7.4.250.0270.01758.36
7.4.240.0140.02458.39
7.4.230.0230.01658.32
7.4.220.0360.05358.41
7.4.210.0490.03858.45
7.4.200.0070.03358.47
7.4.190.0200.02058.48
7.4.160.0500.03058.46
7.4.150.0460.04258.41
7.4.140.0500.04258.49
7.4.130.0330.05558.52
7.4.120.0480.03658.47
7.4.110.0540.03758.45
7.4.100.0440.06358.50
7.4.90.0560.04958.54
7.4.80.0530.04058.35
7.4.70.0570.05758.29
7.4.60.0430.06358.36
7.4.50.0170.03358.31
7.4.40.0330.02658.30
7.4.30.0340.04758.34
7.4.00.0260.04256.82
7.3.330.0250.02855.27
7.3.320.0210.01855.29
7.3.310.0070.03458.22
7.3.300.0170.02458.07
7.3.290.0400.04058.20
7.3.280.0530.04158.12
7.3.270.0530.04358.12
7.3.260.0500.03058.27
7.3.250.0600.03758.39
7.3.240.0380.04558.20
7.3.230.0420.04258.30
7.3.210.0370.04458.26
7.3.200.0550.05058.23
7.3.190.0520.03658.40
7.3.180.0380.04458.16
7.3.170.0330.04958.36
7.3.160.0460.03958.52
7.3.120.0280.04356.82
7.3.110.0200.04356.41
7.3.100.0340.04156.42
7.3.90.0140.03856.73
7.3.80.0170.04556.78
7.3.70.0260.03356.66
7.3.60.0170.04056.44
7.3.50.0320.02356.71
7.3.40.0250.02956.70
7.3.30.0200.04356.73
7.3.20.0270.03260.48
7.3.10.0070.03660.58
7.3.00.0130.03060.79
7.2.330.0490.04658.61
7.2.320.0350.06158.51
7.2.310.0590.04958.37
7.2.300.0400.05458.61
7.2.290.0390.05958.67
7.2.250.0130.07357.16
7.2.240.0370.05056.98
7.2.230.0290.05556.98
7.2.220.0170.04657.14
7.2.210.0240.05557.11
7.2.200.0260.04056.78
7.2.190.0240.04456.67
7.2.180.0200.04357.04
7.2.170.0130.04656.99
7.2.60.0950.02060.51
7.2.00.0260.02363.00
7.1.330.0130.04859.78
7.1.320.0000.05359.57
7.1.310.0100.04859.89
7.1.300.0100.05959.75
7.1.290.0030.05259.71
7.1.280.0160.03959.83
7.1.270.0100.05259.68
7.1.260.0100.05159.68
7.1.200.0950.04159.36
7.1.100.0070.03761.99
7.1.70.1180.02661.18
7.1.60.0170.05661.46
7.1.50.0200.05678.98
7.1.00.0130.11366.23
7.0.200.6770.03357.39
7.0.140.0100.11066.07
7.0.60.0100.07061.78
7.0.50.0200.05759.79
7.0.40.0000.07026.87
7.0.30.0930.06326.79
7.0.20.0470.08726.89
7.0.10.0370.08026.85
7.0.00.0070.11326.71
5.6.280.0200.15785.59
5.6.210.0230.14785.20
5.6.200.0230.09082.62
5.6.190.0170.11084.97
5.6.180.0530.08384.95
5.6.170.0430.08384.82
5.6.160.0300.14784.85
5.6.150.0230.17082.68
5.6.140.0330.15082.64
5.6.130.0230.09082.63
5.6.120.0270.15785.48
5.6.110.0470.13085.48
5.6.100.0370.11785.63
5.6.90.0230.13085.59
5.6.80.0400.14784.87
5.6.70.4630.09085.02
5.5.350.0200.14084.87
5.5.340.0230.09082.42
5.5.330.0300.12784.68
5.5.320.0600.15384.61
5.5.310.0330.10384.72
5.5.300.0130.16082.25
5.5.290.0430.14782.45
5.5.280.0270.14785.26
5.5.270.0300.09785.44
5.5.260.0300.09385.36
5.5.250.0370.14384.98
5.5.240.0300.16084.65
5.4.450.1300.16384.00
5.4.440.2170.14083.89
5.4.430.1070.18784.23
5.4.420.0970.18084.02
5.4.410.1000.17783.86
5.4.400.1000.15083.57
5.4.390.0770.16383.25
5.4.380.0670.15383.23
5.4.370.0730.15083.04
5.4.360.0800.14783.18
5.4.350.0830.16083.25
5.4.340.0970.13783.22
5.4.320.0220.09877.24
5.4.310.0300.09677.24
5.4.300.0190.10377.24
5.4.290.0320.17777.23
5.4.280.0540.21377.13
5.4.270.0340.16277.12
5.4.260.0330.12277.13
5.4.250.0460.15377.13
5.4.240.0370.17277.13
5.4.230.0330.16077.12
5.4.220.0400.15077.12
5.4.210.0450.16577.12
5.4.200.0400.13377.12
5.4.190.0290.13377.12
5.4.180.0390.17477.11
5.4.170.0470.21977.12
5.4.160.0340.12477.11
5.4.150.0570.18177.11
5.4.140.0260.14176.80
5.4.130.0560.22276.79
5.4.120.0440.19376.74
5.4.110.0450.17076.74
5.4.100.0230.10876.74
5.4.90.0220.12176.74
5.4.80.0510.21076.74
5.4.70.0330.17976.73
5.4.60.0340.15776.74
5.4.50.0300.16876.73
5.4.40.0300.11176.72
5.4.30.0390.13076.72
5.4.20.0470.14976.72
5.4.10.0410.13976.71
5.4.00.0160.10876.21
5.3.290.0190.11275.99
5.3.280.0260.15875.91
5.3.270.0260.13475.93
5.3.260.0260.12775.93
5.3.250.0300.17675.93
5.3.240.0280.16075.93
5.3.230.0370.19375.92
5.3.220.0570.20875.89
5.3.210.0380.20575.89
5.3.200.0500.21975.89
5.3.190.0360.17475.89
5.3.180.0470.20875.89
5.3.170.0230.20375.89
5.3.160.0280.14975.89
5.3.150.0450.18475.89
5.3.140.0290.11275.88
5.3.130.0160.12175.87
5.3.120.0230.12375.87
5.3.110.0360.14675.87
5.3.100.0460.17075.36
5.3.90.0230.14375.34
5.3.80.0400.20475.32
5.3.70.0320.17475.32
5.3.60.0400.16575.31
5.3.50.0530.18475.26
5.3.40.0350.19475.26
5.3.30.0500.28075.22
5.3.20.0410.18375.60
5.3.10.0580.18474.97
5.3.00.0400.15574.95
5.2.170.0270.19572.97
5.2.160.0330.16172.97
5.2.150.0390.18472.97
5.2.140.0300.17572.97
5.2.130.0330.22272.93
5.2.120.0430.22772.93
5.2.110.0590.24372.93
5.2.100.0320.17672.93
5.2.90.0310.17072.93
5.2.80.0250.16972.91
5.2.70.0270.18672.92
5.2.60.0460.17072.87
5.2.50.0320.19472.96
5.2.40.0180.16872.95
5.2.30.0260.16372.93
5.2.20.0250.13472.91
5.2.10.0230.11572.82
5.2.00.0500.18893.83
5.1.60.0440.157112.18
5.1.50.0550.192112.17
5.1.40.0360.257112.15
5.1.30.0680.204112.50
5.1.20.0460.196112.52
5.1.10.0540.166112.25
5.1.00.0490.237112.25
5.0.50.0620.291110.73
5.0.40.0480.275110.59
5.0.30.0230.225110.40
5.0.20.0380.197110.38
5.0.10.0530.290110.34
5.0.00.0620.325110.34
4.4.90.0640.311108.78
4.4.80.0330.217108.76
4.4.70.0330.271108.75
4.4.60.0430.330108.76
4.4.50.0440.325108.78
4.4.40.0580.320108.77
4.4.30.0550.283108.76
4.4.20.0390.288108.83
4.4.10.0480.258108.83
4.4.00.0560.410108.79
4.3.110.0460.253108.70
4.3.100.0380.300108.69
4.3.90.0340.194108.67
4.3.80.0520.299108.66
4.3.70.0450.174108.66
4.3.60.0420.208108.66
4.3.50.0420.175108.66
4.3.40.0540.267108.62
4.3.30.0460.288107.43
4.3.20.0530.289107.40
4.3.10.0370.255107.36
4.3.00.1370.137108.55

preferences:
53.93 ms | 400 KiB | 5 Q