3v4l.org

run code in 300+ PHP versions simultaneously
<?php $variations = array( 'Variation' => array( 'SKU' => 'ML328-8.42-21.329', 'StartPrice' => 29.95, 'Quantity' => 1, 'VariationSpecifics' => array( 'NameValueList' => array( 0 => array( 'Name' => 'Farbe', 'Value' => 'schwarz' ), 1 => array( 'Name' => 'Größe', 'Value' => 145, ) ) ), 'SellingStatus' => array( 'QuantitySold' => 0, 'QuantitySoldByPickupInStore' => 0, ) ) ); foreach ($variations['Variation'] as $nr => $v) { $extendedVariations[$nr] = array ( 'StartPrice' => $v['StartPrice'], 'Quantity' => $v['Quantity'] ); if ( (array_key_exists('SellingStatus', $v)) && (array_key_exists('QuantitySold', $v['SellingStatus'])) && ($v['SellingStatus']['QuantitySold'] > 0) ) { $extendedVariations[$nr]['Quantity'] -= $v['SellingStatus']['QuantitySold']; } }

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.0110.00718.40
8.3.50.0100.01021.28
8.3.40.0140.00418.84
8.3.30.0080.00618.67
8.3.20.0070.00020.16
8.3.10.0000.00821.60
8.3.00.0080.00019.69
8.2.180.0070.00718.38
8.2.170.0120.00322.96
8.2.160.0100.00320.52
8.2.150.0040.00424.18
8.2.140.0070.01024.66
8.2.130.0050.00326.16
8.2.120.0090.00017.75
8.2.110.0090.00022.17
8.2.100.0040.00817.75
8.2.90.0040.00419.30
8.2.80.0040.00417.97
8.2.70.0060.00317.38
8.2.60.0000.00817.80
8.2.50.0050.00318.07
8.2.40.0000.01019.16
8.2.30.0030.00520.02
8.2.20.0050.00217.85
8.2.10.0070.00018.17
8.2.00.0000.00717.99
8.1.280.0090.00925.92
8.1.270.0040.00420.38
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0080.00022.52
8.1.230.0120.00017.48
8.1.220.0000.00817.78
8.1.210.0000.00918.77
8.1.200.0030.00617.36
8.1.190.0060.00317.36
8.1.180.0040.00418.10
8.1.170.0030.00518.64
8.1.160.0000.00721.98
8.1.150.0070.00018.88
8.1.140.0080.00017.44
8.1.130.0030.00317.71
8.1.120.0040.00417.36
8.1.110.0050.00217.34
8.1.100.0000.00717.47
8.1.90.0040.00417.43
8.1.80.0040.00417.50
8.1.70.0030.00317.48
8.1.60.0000.00817.51
8.1.50.0000.00917.55
8.1.40.0000.00817.45
8.1.30.0060.00317.62
8.1.20.0000.00717.65
8.1.10.0000.00817.45
8.1.00.0040.00417.51
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00818.48
8.0.270.0050.00317.26
8.0.260.0000.00618.95
8.0.250.0050.00317.02
8.0.240.0050.00317.05
8.0.230.0000.00717.04
8.0.220.0000.00616.92
8.0.210.0040.00416.85
8.0.200.0030.00317.05
8.0.190.0070.00316.94
8.0.180.0000.00716.94
8.0.170.0040.00416.96
8.0.160.0070.00016.94
8.0.150.0030.00616.91
8.0.140.0040.00416.76
8.0.130.0000.00613.34
8.0.120.0000.00816.80
8.0.110.0000.00716.81
8.0.100.0040.00416.97
8.0.90.0070.00017.02
8.0.80.0030.01016.90
8.0.70.0040.00416.80
8.0.60.0040.00416.81
8.0.50.0040.00416.98
8.0.30.0140.00517.11
8.0.20.0090.01017.40
8.0.10.0040.00416.91
8.0.00.0100.00916.87
7.4.330.0050.00015.14
7.4.320.0030.00316.39
7.4.300.0060.00016.59
7.4.290.0030.00716.63
7.4.280.0040.00416.48
7.4.270.0000.00716.52
7.4.260.0000.00716.50
7.4.250.0040.00416.45
7.4.240.0040.00416.52
7.4.230.0040.00416.57
7.4.220.0060.01016.62
7.4.210.0150.00316.66
7.4.200.0050.00316.39
7.4.160.0130.00916.42
7.4.150.0110.00817.40
7.4.140.0120.01117.86
7.4.130.0200.00016.57
7.4.120.0120.00716.71
7.4.110.0100.00716.66
7.4.100.0130.00416.59
7.4.90.0090.00916.62
7.4.80.0090.01219.39
7.4.70.0160.00616.52
7.4.60.0100.00616.50
7.4.50.0000.00716.42
7.4.40.0120.00316.66
7.4.30.0230.00016.45
7.4.00.0150.00014.76
7.3.330.0060.00013.23
7.3.320.0050.00013.32
7.3.310.0030.00516.46
7.3.300.0000.00716.41
7.3.290.0090.00616.40
7.3.280.0110.00416.45
7.3.270.0140.00717.40
7.3.260.0140.00616.30
7.3.240.0100.00716.63
7.3.230.0110.01116.49
7.3.210.0140.00316.43
7.3.200.0090.00616.46
7.3.190.0120.00916.50
7.3.180.0030.01316.29
7.3.170.0090.01216.55
7.3.160.0150.00316.64
7.3.10.0060.01416.47
7.3.00.0080.00816.51
7.2.330.0070.01416.66
7.2.320.0130.00616.78
7.2.310.0070.01116.64
7.2.300.0060.01716.77
7.2.290.0130.00616.64
7.2.130.0110.01116.81
7.2.120.0070.01416.82
7.2.110.0100.00316.94
7.2.100.0060.00316.94
7.2.90.0040.00716.84
7.2.80.0120.00316.70
7.2.70.0080.00417.08
7.2.60.0040.01216.68
7.2.50.0100.00716.86
7.2.40.0130.00916.73
7.2.30.0070.00416.83
7.2.20.0040.00817.05
7.2.10.0140.00316.94
7.2.00.0120.00318.06
7.1.250.0070.00415.21
7.1.200.0040.01115.71
7.1.100.0040.00817.77
7.1.70.0040.01116.92
7.1.60.0160.01019.17
7.1.50.0200.01734.95
7.1.00.0070.07322.34
7.0.200.0000.00716.88
7.0.100.0070.06019.88
7.0.90.0130.03319.90
7.0.80.0130.06719.85
7.0.70.0070.06319.98
7.0.60.0430.07719.96
7.0.50.0070.07320.25
7.0.40.0070.04719.95
7.0.30.0100.08020.18
7.0.20.0030.08020.13
7.0.10.0100.07720.12
7.0.00.0070.08019.99
5.6.280.0030.03020.87
5.6.250.0130.04720.75
5.6.240.0030.05020.75
5.6.230.0030.07320.63
5.6.220.0130.07020.48
5.6.210.0270.06720.46
5.6.200.0130.08321.11
5.6.190.0030.08020.99
5.6.180.0070.08021.08
5.6.170.0100.07321.08
5.6.160.0070.04021.04
5.6.150.0100.07021.07
5.6.140.0100.07721.16
5.6.130.0100.04321.07
5.6.120.0170.07021.11
5.6.110.0130.07320.97
5.6.100.0100.08321.02
5.6.90.0100.08021.01
5.6.80.0030.08320.40
5.6.70.0070.04720.48
5.6.60.0070.05320.30
5.6.50.0230.07020.40
5.6.40.0130.05320.44
5.6.30.0130.05020.49
5.6.20.0130.07720.37
5.6.10.0000.08320.42
5.6.00.0070.05320.38
5.5.380.0130.07720.54
5.5.370.0300.06320.57
5.5.360.0070.07320.48
5.5.350.0130.07020.46
5.5.340.0070.08020.91
5.5.330.0170.06720.74
5.5.320.0170.05720.76
5.5.310.0100.07320.92
5.5.300.0070.08720.83
5.5.290.0030.08720.93
5.5.280.0130.07320.82
5.5.270.0030.07720.89
5.5.260.0030.08020.77
5.5.250.0130.07020.62
5.5.240.0030.05320.27
5.5.230.0100.05020.11
5.5.220.0070.08720.10
5.5.210.0170.05320.27
5.5.200.0100.03720.18
5.5.190.0130.07020.18
5.5.180.0100.04320.15
5.5.160.0000.05020.08
5.5.150.0030.06720.12
5.5.140.0170.03720.15
5.5.130.0100.05020.13
5.5.120.0100.07320.26
5.5.110.0130.04320.25
5.5.100.0100.04720.18
5.5.90.0070.08020.07
5.5.80.0030.08020.07
5.5.70.0030.08020.06
5.5.60.0070.08020.05
5.5.50.0100.07320.09
5.5.40.0170.05720.04
5.5.30.0070.04720.05
5.5.20.0070.07319.95
5.5.10.0100.06720.11
5.5.00.0070.07319.98
5.4.450.0030.05019.16
5.4.440.0100.03719.23
5.4.430.0030.07719.30
5.4.420.0030.07319.13
5.4.410.0100.05019.07
5.4.400.0070.07018.98
5.4.390.0070.08019.14
5.4.380.0130.06319.03
5.4.370.0070.07319.14
5.4.360.0100.07718.95
5.4.350.0130.04718.78
5.4.340.0100.06719.13
5.4.320.0170.03319.23
5.4.310.0100.04319.05
5.4.300.0170.06719.12
5.4.290.0130.07019.14
5.4.280.0100.06019.04
5.4.270.0030.05319.11
5.4.260.0100.04318.90
5.4.250.0030.05019.06
5.4.240.0100.07019.11
5.4.230.0070.04319.22
5.4.220.0130.04719.02
5.4.210.0030.07719.11
5.4.200.0070.04019.09
5.4.190.0170.07019.10
5.4.180.0030.04319.02
5.4.170.0100.06318.77
5.4.160.0100.07019.08
5.4.150.0100.04718.94
5.4.140.0070.07316.31
5.4.130.0100.06716.08
5.4.120.0130.03316.36
5.4.110.0000.04716.38
5.4.100.0070.04016.32
5.4.90.0070.05016.38
5.4.80.0070.04016.21
5.4.70.0070.06316.24
5.4.60.0000.06316.42
5.4.50.0030.05716.23
5.4.40.0130.03716.25
5.4.30.0100.06316.34
5.4.20.0130.06716.31
5.4.10.0030.05316.33
5.4.00.0030.04015.80
5.3.290.0030.07314.65
5.3.280.0000.08314.59
5.3.270.0070.04314.56
5.3.260.0030.08714.45
5.3.250.0070.07314.59
5.3.240.0030.07014.57
5.3.230.0100.05014.58
5.3.220.0100.05714.56
5.3.210.0030.06714.55
5.3.200.0030.08714.48
5.3.190.0100.03714.55
5.3.180.0000.04714.53
5.3.170.0070.07314.56
5.3.160.0070.07714.58
5.3.150.0030.04314.56
5.3.140.0070.05314.55
5.3.130.0000.05314.55
5.3.120.0070.07714.51
5.3.110.0100.06314.41
5.3.100.0030.05713.98
5.3.90.0030.04713.86
5.3.80.0070.06013.95
5.3.70.0030.07313.88
5.3.60.0030.04313.94
5.3.50.0000.08013.81
5.3.40.0030.05313.91
5.3.30.0130.06013.92
5.3.20.0070.07013.67
5.3.10.0100.07013.66
5.3.00.0030.04013.60
5.2.170.0070.06012.32
5.2.160.0130.05012.32
5.2.150.0030.06012.32
5.2.140.0030.06012.32
5.2.130.0030.05712.32
5.2.120.0070.05312.32
5.2.110.0070.03012.32
5.2.100.0030.06312.32
5.2.90.0000.04312.32
5.2.80.0100.04312.32
5.2.70.0130.02012.32
5.2.60.0130.04712.32
5.2.50.0070.04312.32
5.2.40.0070.03312.32
5.2.30.0130.05012.32
5.2.20.0030.05712.32
5.2.10.0030.05312.32
5.2.00.0100.03012.32
5.1.60.0070.02712.32
5.1.50.0000.03012.32
5.1.40.0030.05712.32
5.1.30.0030.03012.32
5.1.20.0100.05012.32
5.1.10.0070.05312.32
5.1.00.0030.03712.32
5.0.50.0100.04012.32
5.0.40.0100.02712.32
5.0.30.0070.05712.32
5.0.20.0070.04312.32
5.0.10.0030.02312.32
5.0.00.0000.03712.32
4.4.90.0030.03012.32
4.4.80.0030.02312.32
4.4.70.0030.01712.32
4.4.60.0000.03012.32
4.4.50.0000.03712.32
4.4.40.0000.02712.32
4.4.30.0030.01712.32
4.4.20.0000.03712.32
4.4.10.0000.02312.32
4.4.00.0100.04312.32
4.3.110.0100.02712.32
4.3.100.0000.03312.32
4.3.90.0000.01712.32
4.3.80.0030.05012.32
4.3.70.0100.01012.32
4.3.60.0030.03312.32
4.3.50.0030.02712.32
4.3.40.0000.03312.32
4.3.30.0000.04012.32
4.3.20.0000.03712.32
4.3.10.0000.03712.32
4.3.00.0000.03012.32

preferences:
44.27 ms | 401 KiB | 5 Q