3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$contents = file_get_contents($path); $contents = "sku-vendeur quantit prix id-produit 10000 3 51,95 B00E3LV204 10002 3 85,96 B00PE9ZC1E 100024 3 345,73 B01LWMZ33O 100031 3 88,22 B018NOSAZ6"; preg_match_all("/^(.*?)\s+(.*?)\s+(.*?)\s+(.*?)$/m", $contents, $arr); unset($arr[0]); // remove 0 since we don't need it. $keys = array_column($arr, 0); foreach($arr[1] as $key2 => $val){ if($key2 != 0){ $new[] = array_combine($keys,array_column($arr, $key2)); } } var_dump($new);

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.110.0090.00020.94
8.3.100.0030.00624.06
8.3.90.0090.00626.77
8.3.80.0030.00616.88
8.3.70.0180.00018.45
8.3.60.0090.00618.56
8.3.50.0110.00717.82
8.3.40.0060.01218.92
8.3.30.0120.00318.67
8.3.20.0050.00319.07
8.3.10.0080.00021.73
8.3.00.0040.00423.48
8.2.230.0080.00022.58
8.2.220.0060.00337.54
8.2.210.0060.00326.77
8.2.200.0000.01116.88
8.2.190.0150.00016.58
8.2.180.0070.01118.67
8.2.170.0160.00022.96
8.2.160.0040.01119.20
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0060.00326.16
8.2.120.0080.00021.11
8.2.110.0060.00321.17
8.2.100.0040.00718.03
8.2.90.0030.00617.97
8.2.80.0040.00418.05
8.2.70.0060.00318.04
8.2.60.0090.00018.16
8.2.50.0080.00018.10
8.2.40.0040.00419.46
8.2.30.0090.00019.27
8.2.20.0000.00818.14
8.2.10.0000.01118.02
8.2.00.0000.00719.39
8.1.290.0060.00318.88
8.1.280.0150.00625.92
8.1.270.0040.00922.01
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00723.92
8.1.230.0110.00020.88
8.1.220.0000.00917.76
8.1.210.0000.00818.90
8.1.200.0000.00817.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0050.00518.54
8.1.160.0070.00018.82
8.1.150.0000.00819.02
8.1.140.0040.00419.00
8.1.130.0030.00319.08
8.1.120.0040.00417.62
8.1.110.0000.01017.60
8.1.100.0000.00717.63
8.1.90.0080.00017.61
8.1.80.0080.00017.66
8.1.70.0000.00817.52
8.1.60.0040.00417.76
8.1.50.0070.00417.57
8.1.40.0000.00817.56
8.1.30.0040.00717.71
8.1.20.0000.00917.78
8.1.10.0040.00417.73
8.1.00.0040.00417.64
8.0.300.0040.00419.80
8.0.290.0040.00416.75
8.0.280.0000.00818.47
8.0.270.0040.00417.34
8.0.260.0070.00017.18
8.0.250.0000.00717.13
8.0.240.0070.00017.06
8.0.230.0070.00017.12
8.0.220.0090.00017.03
8.0.210.0000.00717.05
8.0.200.0000.00917.07
8.0.190.0030.00316.95
8.0.180.0000.00916.93
8.0.170.0030.00616.95
8.0.160.0000.00817.02
8.0.150.0070.00016.86
8.0.140.0040.00417.00
8.0.130.0060.00313.49
8.0.120.0000.00716.98
8.0.110.0040.00417.07
8.0.100.0040.00417.05
8.0.90.0040.00416.92
8.0.80.0080.01017.02
8.0.70.0000.00816.95
8.0.60.0030.00316.96
8.0.50.0090.00016.85
8.0.30.0060.01617.25
8.0.20.0060.01317.40
8.0.10.0070.00016.97
8.0.00.0140.01016.88
7.4.330.0050.00015.55
7.4.320.0030.00316.62
7.4.300.0060.00016.73
7.4.290.0040.00416.77
7.4.280.0040.00716.80
7.4.270.0040.00416.63
7.4.260.0000.00716.69
7.4.250.0030.00616.82
7.4.240.0040.00416.65
7.4.230.0030.00316.55
7.4.220.0040.00416.60
7.4.210.0090.00716.83
7.4.200.0070.00016.91
7.4.160.0090.00916.73
7.4.140.0150.00717.86
7.4.130.0150.00416.73
7.4.120.0140.00716.79
7.4.110.0090.01516.73
7.4.100.0130.01316.84
7.4.90.0120.00616.76
7.4.80.0120.00619.39
7.4.70.0070.01316.66
7.4.60.0080.00816.67
7.4.50.0000.01316.82
7.4.40.0090.00916.65
7.4.00.0040.01115.27
7.3.330.0000.00513.45
7.3.320.0050.00013.22
7.3.310.0070.00016.32
7.3.300.0070.00016.39
7.3.290.0000.00716.40
7.3.280.0070.01016.41
7.3.260.0110.00816.61
7.3.240.0090.01216.62
7.3.230.0120.00616.50
7.3.210.0150.00316.69
7.3.200.0090.01016.48
7.3.190.0100.00616.69
7.3.180.0160.00416.86
7.3.170.0150.00316.59
7.3.160.0100.01316.51
7.3.00.0070.00316.65
7.2.330.0100.00716.64
7.2.320.0170.00616.72
7.2.310.0110.00716.98
7.2.300.0090.00916.82
7.2.290.0090.01316.93
7.2.130.0040.01117.37
7.2.120.0090.00616.97
7.2.110.0000.00917.29
7.2.100.0080.00817.25
7.2.90.0110.00417.35
7.2.80.0690.00815.89
7.2.70.1050.01116.21
7.2.60.0490.00616.13
7.2.50.0980.00916.21
7.2.40.0110.00916.13
7.2.30.0320.00716.10
7.2.20.0220.00915.89
7.2.10.0720.00815.98
7.2.00.0490.00916.21
7.1.250.0030.00615.77
7.1.240.0110.00015.77
7.1.230.0060.01016.16
7.1.220.0000.01215.97
7.1.210.0070.00315.90
7.1.200.0030.01016.17
7.1.190.0960.00714.74
7.1.180.0730.00714.98
7.1.170.1150.00514.63
7.1.160.0100.01015.01
7.1.150.0250.00714.94
7.1.140.0560.01115.07
7.1.130.0570.00315.04
7.1.120.0460.01315.08
7.1.110.0660.00615.10
7.1.100.1050.01215.02
7.1.90.0790.00914.76
7.1.80.1110.00515.02
7.1.70.1220.01014.78
7.1.60.0840.00824.05
7.1.50.1430.00924.01
7.1.40.1780.01124.00
7.1.30.1610.00723.85
7.1.20.1190.00323.82
7.1.10.0880.00514.83
7.1.00.0610.01215.11
7.0.330.0060.00315.58
5.6.380.0040.00714.56

preferences:
65.06 ms | 403 KiB | 5 Q