3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '224,1,23,Pineapple,2500,2500,anana.png__240,1,23,Goavy,2500,250, goavy.png__140,1,23,Apple, 100,250,pomme.png'; $arr = explode("__", $str); Foreach($arr as $val){ $items = explode(",", $val); $res[$items[5]] = $items[3]; } print_r($res);

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.0090.00618.33
8.3.50.0060.01218.19
8.3.40.0140.00318.84
8.3.30.0140.00718.66
8.3.20.0040.00419.14
8.3.10.0080.00021.76
8.3.00.0040.00419.56
8.2.180.0090.01216.38
8.2.170.0150.00022.96
8.2.160.0130.00020.18
8.2.150.0000.00724.18
8.2.140.0000.00724.66
8.2.130.0060.00319.89
8.2.120.0040.00426.35
8.2.110.0040.00721.05
8.2.100.0030.01017.67
8.2.90.0060.00317.91
8.2.80.0030.00519.89
8.2.70.0090.00017.80
8.2.60.0040.00417.93
8.2.50.0040.00418.22
8.2.40.0040.00419.21
8.2.30.0000.00819.45
8.2.20.0000.00818.11
8.2.10.0030.00517.98
8.2.00.0000.00719.18
8.1.280.0110.00625.92
8.1.270.0070.00023.57
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00320.91
8.1.230.0040.00722.20
8.1.220.0040.00417.76
8.1.210.0000.00918.77
8.1.200.0040.00417.23
8.1.190.0040.00417.36
8.1.180.0040.00418.10
8.1.170.0040.00418.52
8.1.160.0030.00618.85
8.1.150.0000.00918.96
8.1.140.0070.00017.66
8.1.130.0030.00518.97
8.1.120.0080.00017.44
8.1.110.0030.00317.44
8.1.100.0040.00417.42
8.1.90.0080.00017.42
8.1.80.0060.00317.40
8.1.70.0040.00417.36
8.1.60.0000.00817.61
8.1.50.0000.00717.56
8.1.40.0030.00617.50
8.1.30.0000.00817.59
8.1.20.0050.00517.66
8.1.10.0000.00717.54
8.1.00.0080.00017.41
8.0.300.0070.00019.98
8.0.290.0060.00316.75
8.0.280.0000.00818.41
8.0.270.0080.00017.21
8.0.260.0060.00017.26
8.0.250.0030.00316.95
8.0.240.0070.00016.83
8.0.230.0000.00716.91
8.0.220.0030.00316.93
8.0.210.0030.00316.89
8.0.200.0040.00416.84
8.0.190.0040.00416.85
8.0.180.0000.00816.92
8.0.170.0000.00816.93
8.0.160.0040.00416.91
8.0.150.0050.00316.82
8.0.140.0040.00416.79
8.0.130.0000.00513.28
8.0.120.0070.00016.85
8.0.110.0070.00016.83
8.0.100.0030.00516.91
8.0.90.0000.00716.94
8.0.80.0120.00316.77
8.0.70.0000.00816.77
8.0.60.0000.00816.77
8.0.50.0000.00716.69
8.0.30.0090.01017.09
8.0.20.0090.00917.40
8.0.10.0040.00416.97
8.0.00.0190.00716.73
7.4.330.0000.00415.55
7.4.320.0000.00616.53
7.4.300.0070.00016.45
7.4.290.0030.00316.57
7.4.280.0040.00416.51
7.4.270.0030.00316.57
7.4.260.0000.00716.58
7.4.250.0030.00316.52
7.4.240.0000.00716.61
7.4.230.0020.00516.67
7.4.220.0040.00416.50
7.4.210.0100.00816.54
7.4.200.0030.00316.50
7.4.160.0100.00716.48
7.4.140.0090.01117.86
7.4.130.0090.00916.38
7.4.120.0110.00816.53
7.4.110.0080.00816.52
7.4.100.0070.01016.52
7.4.90.0100.00716.61
7.4.80.0140.01019.39
7.4.70.0130.00316.53
7.4.60.0060.00916.51
7.4.50.0070.01016.18
7.4.40.0000.01716.55
7.4.00.0110.00415.07
7.3.330.0060.00013.14
7.3.320.0030.00313.31
7.3.310.0000.00716.39
7.3.300.0000.00616.17
7.3.290.0080.00016.31
7.3.280.0090.01116.22
7.3.260.0110.00716.36
7.3.240.0130.00516.44
7.3.230.0090.01216.21
7.3.210.0140.00316.37
7.3.200.0160.00016.29
7.3.190.0160.00016.52
7.3.180.0120.00316.21
7.3.170.0060.01016.45
7.3.160.0090.00616.22
7.2.330.0110.00616.38
7.2.320.0110.01116.44
7.2.310.0160.00716.53
7.2.300.0120.01816.67
7.2.290.0070.01716.56
7.2.40.1320.00817.96
7.2.30.0990.00618.01
7.2.20.0910.01017.85
7.2.10.1650.00818.12
7.2.00.1150.01117.80
7.1.200.0030.00315.83
7.1.160.2320.00616.88
7.1.150.1000.00917.11
7.1.140.1300.00916.96
7.1.130.1500.00916.89
7.1.120.1260.00917.05
7.1.110.1130.00816.38
7.1.100.1450.00616.56
7.1.90.1370.00916.55
7.1.80.1440.01016.40
7.1.70.1620.00615.45
7.1.60.1660.01233.34
7.1.50.1800.00932.98
7.1.40.1410.01232.39
7.1.30.1380.01132.64
7.1.20.1310.01332.63
7.1.10.1630.00915.00
7.1.00.1250.00914.90

preferences:
55.54 ms | 400 KiB | 5 Q