3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rates = array(); $keys = array(); for ($i=0; $i<1000;$i++) { $HAAPI_rate = array( 'Board' => 'nin', 'Price' => 32.4, 'NetPrice' => 32.4, 'BookingFee' => 12, 'Tax' => 0, ); if (!$keys) { foreach (array_keys($HAAPI_rate) as $key) { $keys[] = lcfirst($key); } } $rates[] = array_combine($keys, $HAAPI_rate); } return $rates;

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.00718.30
8.3.50.0130.00821.95
8.3.40.0140.00419.17
8.3.30.0110.00419.36
8.3.20.0030.00520.59
8.3.10.0050.00323.66
8.3.00.0040.00419.38
8.2.180.0100.01018.29
8.2.170.0070.00722.96
8.2.160.0070.00720.85
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00422.11
8.2.110.0070.00420.95
8.2.100.0110.00018.28
8.2.90.0090.00018.13
8.2.80.0000.00819.11
8.2.70.0030.00717.73
8.2.60.0040.00417.88
8.2.50.0000.00818.43
8.2.40.0030.00618.13
8.2.30.0000.00818.41
8.2.20.0030.00518.12
8.2.10.0050.00218.41
8.2.00.0000.01018.07
8.1.280.0080.00825.92
8.1.270.0080.00023.82
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0040.00719.14
8.1.230.0070.00421.27
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0000.00817.72
8.1.190.0100.00017.47
8.1.180.0080.00018.10
8.1.170.0080.00017.95
8.1.160.0070.00022.29
8.1.150.0050.00519.04
8.1.140.0040.00417.88
8.1.130.0050.00218.24
8.1.120.0040.00417.85
8.1.110.0050.00517.74
8.1.100.0050.00317.71
8.1.90.0040.00417.76
8.1.80.0000.00717.86
8.1.70.0000.00717.76
8.1.60.0040.00417.85
8.1.50.0000.00817.86
8.1.40.0000.00717.86
8.1.30.0000.00917.95
8.1.20.0030.00517.93
8.1.10.0030.00517.82
8.1.00.0000.00917.79
8.0.300.0040.00418.77
8.0.290.0040.00417.13
8.0.280.0000.00718.82
8.0.270.0070.00017.55
8.0.260.0000.00617.66
8.0.250.0040.00417.34
8.0.240.0000.00717.34
8.0.230.0000.00717.32
8.0.220.0030.00317.23
8.0.210.0000.00717.31
8.0.200.0000.00717.23
8.0.190.0040.00417.35
8.0.180.0000.00717.28
8.0.170.0050.00317.18
8.0.160.0030.00517.23
8.0.150.0000.00817.11
8.0.140.0040.00417.15
8.0.130.0030.00313.72
8.0.120.0040.00417.11
8.0.110.0000.00817.26
8.0.100.0040.00417.15
8.0.90.0000.00717.23
8.0.80.0150.00917.27
8.0.70.0030.00617.37
8.0.60.0050.00317.25
8.0.50.0070.00017.23
8.0.30.0120.00717.42
8.0.20.0100.00817.40
8.0.10.0040.00417.18
8.0.00.0120.00917.16
7.4.330.0000.00715.00
7.4.320.0060.00016.99
7.4.300.0030.00316.88
7.4.290.0000.00716.89
7.4.280.0000.00816.97
7.4.270.0050.00216.98
7.4.260.0030.00516.87
7.4.250.0040.00416.82
7.4.240.0030.00316.80
7.4.230.0070.00016.97
7.4.220.0000.01716.95
7.4.210.0080.01016.88
7.4.200.0000.00717.06
7.4.190.0050.00216.86
7.4.160.0100.00716.81
7.4.150.0040.01617.40
7.4.140.0120.00617.86
7.4.130.0060.01416.96
7.4.120.0100.00716.92
7.4.110.0070.01016.71
7.4.100.0060.01316.96
7.4.90.0140.00416.92
7.4.80.0060.01219.39
7.4.70.0110.00716.75
7.4.60.0090.01216.94
7.4.50.0070.00016.96
7.4.40.0070.01022.77
7.4.30.0030.01316.79
7.4.00.0100.00615.35
7.3.330.0000.00613.68
7.3.320.0000.00613.54
7.3.310.0070.00016.53
7.3.300.0000.01016.55
7.3.290.0060.01216.68
7.3.280.0110.00616.71
7.3.270.0060.01217.40
7.3.260.0110.00717.02
7.3.250.0100.00816.79
7.3.240.0090.00916.68
7.3.230.0060.01016.59
7.3.210.0100.00717.04
7.3.200.0060.01619.39
7.3.190.0100.01016.64
7.3.180.0090.00616.72
7.3.170.0030.01216.66
7.3.160.0130.00317.02
7.3.120.0060.00915.10
7.3.110.0060.01015.25
7.3.100.0130.00314.99
7.3.90.0060.00615.27
7.3.80.0100.00715.12
7.3.70.0030.01215.06
7.3.60.0040.01115.24
7.3.50.0090.00615.11
7.3.40.0070.01015.03
7.3.30.0100.00315.24
7.3.20.0000.01316.41
7.3.10.0070.01116.66
7.3.00.0070.00716.84
7.2.330.0090.01216.80
7.2.320.0130.00316.90
7.2.310.0060.01516.91
7.2.300.0080.01116.70
7.2.290.0140.00717.09
7.2.250.0060.00614.96
7.2.240.0080.01515.49
7.2.230.0070.00315.68
7.2.220.0030.00915.46
7.2.210.0120.00615.32
7.2.200.0040.01015.43
7.2.190.0060.00915.49
7.2.180.0030.01215.24
7.2.170.0040.01215.11
7.2.60.0060.00617.03
7.1.330.0060.00915.83
7.1.320.0030.01015.69
7.1.310.0070.01015.77
7.1.300.0090.00615.86
7.1.290.0130.00015.75
7.1.280.0040.01415.80
7.1.270.0060.00615.87
7.1.260.0030.01015.57
7.1.200.0160.00615.88
7.1.70.0060.00917.25
7.1.60.0170.00719.46
7.1.50.0100.00734.91
7.1.00.0030.07722.27
7.0.200.0060.00316.98
7.0.140.0030.07322.00
7.0.60.0100.06720.25
7.0.50.0030.08318.15
7.0.40.0100.05020.20
7.0.30.0300.05020.02
7.0.20.0200.07720.30
7.0.10.0030.08720.03
7.0.00.0000.08720.17
5.6.280.0100.07021.87
5.6.210.0030.09021.37
5.6.200.0130.07718.95
5.6.190.0070.05321.25
5.6.180.0230.03321.09
5.6.170.0170.04321.01
5.6.160.0100.06021.03
5.6.150.0130.07718.82
5.6.140.0070.08318.89
5.6.130.0030.08318.69
5.6.120.0100.08021.75
5.6.110.0200.06321.72
5.6.100.0100.05721.65
5.6.90.0070.07721.84
5.6.80.0070.08321.27
5.6.70.4170.05021.16
5.5.350.0100.08021.41
5.5.340.0030.04018.76
5.5.330.0030.08721.15
5.5.320.0070.03721.26
5.5.310.0070.06021.17
5.5.300.0100.08318.94
5.5.290.0070.07718.91
5.5.280.0030.05321.79
5.5.270.0100.05021.67
5.5.260.0230.07321.79
5.5.250.0030.04021.49
5.5.240.0270.06021.19
5.4.450.0870.05720.60
5.4.440.0870.06320.59
5.4.430.0630.07720.40
5.4.420.0670.00020.45
5.4.410.0130.06319.98
5.4.400.0200.05319.61
5.4.390.0070.06019.68
5.4.380.0230.04319.58
5.4.370.0130.05019.51
5.4.360.0030.04019.70
5.4.350.0070.03913.00
5.4.340.0050.03913.00
5.4.320.0070.03713.48
5.4.310.0100.04313.48
5.4.300.0030.04013.48
5.4.290.0060.05813.46
5.4.280.0080.05313.36
5.4.270.0100.05013.36
5.4.260.0100.05213.36
5.4.250.0060.05813.36
5.4.240.0070.05313.36
5.4.230.0070.05413.35
5.4.220.0080.05213.35
5.4.210.0080.05913.35
5.4.200.0060.04513.35
5.4.190.0130.05313.35
5.4.180.0080.04313.35
5.4.170.0070.04413.36
5.4.160.0060.04113.36
5.4.150.0080.05013.35
5.4.140.0130.04713.04
5.4.130.0120.06613.02
5.4.120.0080.05212.98
5.4.110.0150.06612.98
5.4.100.0070.05412.98
5.4.90.0090.04212.97
5.4.80.0080.04212.98
5.4.70.0100.03812.97
5.4.60.0050.04512.97
5.4.50.0070.04312.97
5.4.40.0100.05312.96
5.4.30.0050.05112.95
5.4.20.0070.03912.96
5.4.10.0060.04812.96
5.4.00.0070.04812.45
5.3.290.0050.04213.71
5.3.280.0090.03913.63
5.3.270.0080.05513.64
5.3.260.0080.05613.64
5.3.250.0090.04413.65
5.3.240.0090.04713.64
5.3.230.0090.04613.64
5.3.220.0060.04813.61
5.3.210.0080.04713.61
5.3.200.0090.04813.61
5.3.190.0120.07513.61
5.3.180.0090.06613.61
5.3.170.0150.04713.60
5.3.160.0100.05013.61
5.3.150.0080.05413.60
5.3.140.0130.05113.59
5.3.130.0120.04813.59
5.3.120.0100.03913.59
5.3.110.0090.04713.59
5.3.100.0070.04513.08
5.3.90.0080.03713.06
5.3.80.0070.03813.05
5.3.70.0020.04213.05
5.3.60.0060.04713.04
5.3.50.0090.06412.98
5.3.40.0060.05712.99
5.3.30.0110.05212.95
5.3.20.0090.05112.72
5.3.10.0030.04412.69
5.3.00.0050.05112.68
5.2.170.0050.0329.19
5.2.160.0040.0319.18
5.2.150.0060.0289.19
5.2.140.0040.0309.18
5.2.130.0060.0289.14
5.2.120.0040.0299.14
5.2.110.0050.0299.14
5.2.100.0020.0339.14
5.2.90.0060.0309.14
5.2.80.0050.0309.14
5.2.70.0040.0329.14
5.2.60.0030.0339.09
5.2.50.0050.0319.06
5.2.40.0030.0319.03
5.2.30.0050.0309.02
5.2.20.0050.0299.00
5.2.10.0030.0318.92
5.2.00.0040.0338.79
5.1.60.0040.0358.07
5.1.50.0070.0308.06
5.1.40.0040.0328.04
5.1.30.0020.0288.40
5.1.20.0040.0288.41
5.1.10.0060.0258.14
5.1.00.0070.0248.14
5.0.50.0050.0206.63
5.0.40.0070.0206.48
5.0.30.0050.0436.30
5.0.20.0030.0266.29
5.0.10.0090.0426.27
5.0.00.0050.0416.26
4.4.90.0110.0214.78
4.4.80.0040.0214.75
4.4.70.0050.0204.76
4.4.60.0060.0204.75
4.4.50.0030.0234.77
4.4.40.0050.0324.71
4.4.30.0070.0194.76
4.4.20.0040.0214.85
4.4.10.0080.0294.84
4.4.00.0040.0324.76
4.3.110.0010.0254.67
4.3.100.0050.0224.66
4.3.90.0040.0204.63
4.3.80.0060.0314.58
4.3.70.0020.0224.63
4.3.60.0030.0204.63
4.3.50.0060.0204.63
4.3.40.0030.0314.54
4.3.30.0040.0223.32
4.3.20.0030.0203.29
4.3.10.0020.0203.25
4.3.00.0100.0336.80

preferences:
47.32 ms | 401 KiB | 5 Q