3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dbjunk = "Itemid:Quantity:Price:name, itemid2:quantity2:price2:name2"; $parsed = parseItems($dbjunk); print_r($parsed); function parseItems($dbjunk){ $cart = array(); $items = explode(",",$dbjunk); foreach($items as $i){ $chunks = explode(":", $i); $cart[] = array( "ItemID" => $chunks[0] , "Quantity" => $chunks[1] , "Price" => $chunks[2] , "name" => $chunks[3] ); } return $cart; }

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.1rc30.0090.00016.77
8.1rc20.0040.00416.94
8.1rc10.0040.00416.85
8.0.130.0030.00313.36
8.0.120.0100.00016.83
8.0.110.0000.00816.81
8.0.100.0030.00616.77
8.0.90.0000.00816.82
8.0.80.0040.01816.91
8.0.70.0040.00416.67
8.0.60.0000.00816.80
8.0.50.0070.00417.00
8.0.30.0080.01217.06
8.0.20.0160.00617.40
8.0.10.0000.00717.07
8.0.00.0140.01016.82
7.4.260.0000.00716.59
7.4.250.0080.00016.61
7.4.240.0000.00716.50
7.4.230.0000.00716.63
7.4.220.0120.01216.70
7.4.210.0130.00216.62
7.4.200.0070.00016.63
7.4.160.0030.01216.42
7.4.150.0070.01417.40
7.4.140.0100.00717.86
7.4.130.0110.00516.56
7.4.120.0080.00816.47
7.4.110.0150.00616.58
7.4.100.0120.00616.50
7.4.90.0130.01016.71
7.4.80.0080.00819.39
7.4.70.0120.00316.39
7.4.60.0060.00916.39
7.4.50.0090.00316.42
7.4.40.0070.01716.64
7.4.30.0090.00616.42
7.4.00.0090.00614.77
7.3.330.0050.00013.44
7.3.320.0000.00613.18
7.3.310.0000.00716.33
7.3.300.0030.00316.41
7.3.290.0090.00916.32
7.3.280.0050.01116.27
7.3.270.0170.00017.40
7.3.260.0130.00316.47
7.3.250.0050.01216.42
7.3.240.0110.00816.48
7.3.230.0140.00316.42
7.3.210.0100.00716.50
7.3.200.0100.00716.38
7.3.190.0080.00916.71
7.3.180.0070.01416.51
7.3.170.0080.00816.54
7.3.160.0110.00716.44
7.3.120.0120.00314.90
7.3.110.0070.00715.12
7.3.100.0090.00314.66
7.3.90.0070.01014.78
7.3.80.0030.00814.98
7.3.70.0090.00614.78
7.3.60.0070.00714.77
7.3.50.0000.01414.48
7.3.40.0070.00714.71
7.3.30.0040.01114.46
7.3.20.0000.01116.85
7.3.10.0030.01016.84
7.3.00.0030.01016.62
7.2.330.0090.00916.79
7.2.320.0100.01316.32
7.2.310.0100.00716.73
7.2.300.0140.00316.64
7.2.290.0150.00916.70
7.2.240.0000.01414.84
7.2.230.0060.00615.07
7.2.220.0120.00314.96
7.2.210.0080.00015.05
7.2.200.0070.01014.88
7.2.190.0000.01614.74
7.2.180.0070.00715.19
7.2.170.0040.01115.04
7.2.160.0130.00015.11
7.2.150.0100.00616.95
7.2.140.0060.00616.99
7.2.130.0000.01016.77
7.2.120.0090.00617.01
7.2.110.0000.01516.66
7.2.100.0080.00816.96
7.2.90.0000.01416.88
7.2.80.0000.01317.01
7.2.70.0060.01317.03
7.2.60.0060.00816.90
7.2.50.0060.00617.06
7.2.40.0090.00916.81
7.2.30.0090.00917.17
7.2.20.0060.00916.83
7.2.10.0000.01616.72
7.2.00.0100.00716.79
7.1.330.0060.00315.71
7.1.320.0140.00315.71
7.1.310.0000.01115.96
7.1.300.0000.00915.85
7.1.290.0040.01115.98
7.1.280.0110.00415.98
7.1.270.0040.00715.61
7.1.260.0090.00915.79
7.1.250.0030.01015.84
7.1.200.0030.00615.86
7.1.70.0040.01217.25
7.1.60.0000.01019.89
7.1.50.0040.00716.91
7.1.00.0000.08022.30
7.0.200.1590.00314.84
7.0.70.0500.06019.93
7.0.60.0500.06719.96
7.0.50.0530.05320.41
7.0.40.0330.06020.33
7.0.30.0470.06720.25
7.0.20.0400.06020.35
7.0.10.0430.06020.36
7.0.00.0400.06320.39
5.6.280.0100.07020.99
5.6.220.0500.05020.62
5.6.210.0430.05720.65
5.6.200.0430.05721.02
5.6.190.0330.06321.02
5.6.180.0470.05021.09
5.6.170.0500.06021.20
5.6.160.0270.06721.18
5.6.150.0300.06321.02
5.6.140.0430.05021.08
5.6.130.0370.06321.06
5.6.120.0030.06721.06
5.6.110.0130.06321.06
5.6.100.0030.06721.18
5.6.90.0370.05721.08
5.6.80.0430.04720.49
5.6.70.0270.06020.52
5.6.60.0400.05320.36
5.6.50.0430.06320.41
5.6.40.0370.05320.44
5.6.30.0430.05020.45
5.6.20.0300.05720.38
5.6.10.0430.05020.46
5.6.00.0270.06020.45
5.5.360.0570.05720.45
5.5.350.0370.06720.46
5.5.340.0330.06720.92
5.5.330.0370.05320.85
5.5.320.0470.04720.72
5.5.310.0400.05320.95
5.5.300.0370.05020.93
5.5.290.0500.04320.71
5.5.280.0100.06320.93
5.5.270.0270.05720.93
5.5.260.0130.08020.88
5.5.250.0330.05720.71
5.5.240.0300.06020.32
5.5.230.0300.06320.30
5.5.220.0370.05320.31
5.5.210.0330.05320.24
5.5.200.0370.05720.29
5.5.190.0370.05320.30
5.5.180.0330.05720.06
5.5.160.0230.06320.13
5.5.150.0270.06020.26
5.5.140.0300.05720.30
5.5.130.0400.04720.28
5.5.120.0400.05020.32
5.5.110.0430.05020.20
5.5.100.0370.05320.07
5.5.90.0230.06320.09
5.5.80.0030.06020.22
5.5.70.0070.06020.22
5.5.60.0200.05320.06
5.5.50.0400.05020.06
5.5.40.0330.05320.21
5.5.30.0230.06720.18
5.5.20.0400.05320.18
5.5.10.0370.05320.08
5.5.00.0400.06320.18

preferences:
13.41 ms | 455 KiB | 5 Q