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[4]] = $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.0120.00318.18
8.3.50.0040.01118.17
8.3.40.0120.00618.70
8.3.30.0120.00918.55
8.3.20.0050.00319.20
8.3.10.0050.00321.86
8.3.00.0050.00319.68
8.2.180.0140.00716.63
8.2.170.0060.00922.96
8.2.160.0100.00320.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00319.95
8.2.120.0040.00426.35
8.2.110.0000.01720.87
8.2.100.0040.00717.91
8.2.90.0070.00020.54
8.2.80.0080.00017.97
8.2.70.0000.00817.93
8.2.60.0040.00418.05
8.2.50.0050.00318.22
8.2.40.0000.00919.25
8.2.30.0040.00419.56
8.2.20.0040.00418.10
8.2.10.0040.00418.18
8.2.00.0060.00319.36
8.1.280.0090.01225.92
8.1.270.0040.00423.84
8.1.260.0030.00626.35
8.1.250.0090.00028.09
8.1.240.0090.00019.19
8.1.230.0070.00322.10
8.1.220.0030.00617.76
8.1.210.0070.00019.02
8.1.200.0040.00417.36
8.1.190.0030.00517.23
8.1.180.0070.00018.10
8.1.170.0080.00018.39
8.1.160.0050.00218.94
8.1.150.0000.00818.89
8.1.140.0040.00417.67
8.1.130.0050.00319.08
8.1.120.0040.00417.44
8.1.110.0000.00817.39
8.1.100.0040.00417.49
8.1.90.0040.00417.51
8.1.80.0030.00717.51
8.1.70.0030.00317.38
8.1.60.0060.00317.62
8.1.50.0070.00017.49
8.1.40.0060.00617.42
8.1.30.0030.00617.52
8.1.20.0060.00317.59
8.1.10.0040.00417.52
8.1.00.0040.00417.46
8.0.300.0040.00420.02
8.0.290.0000.00716.63
8.0.280.0030.00318.46
8.0.270.0030.00317.26
8.0.260.0040.00417.13
8.0.250.0060.00016.86
8.0.240.0050.00316.93
8.0.230.0000.00716.97
8.0.220.0000.00716.84
8.0.210.0000.00716.82
8.0.200.0040.00416.86
8.0.190.0060.00316.83
8.0.180.0040.00416.85
8.0.170.0040.00416.90
8.0.160.0020.00516.79
8.0.150.0000.00816.70
8.0.140.0030.00316.88
8.0.130.0000.00613.28
8.0.120.0050.00316.78
8.0.110.0040.00416.76
8.0.100.0030.00616.87
8.0.90.0070.00016.77
8.0.80.0000.01416.88
8.0.70.0000.00716.95
8.0.60.0040.00416.78
8.0.50.0000.00716.99
8.0.30.0080.01217.12
8.0.20.0120.00617.40
8.0.10.0040.00416.90
8.0.00.0090.01216.65
7.4.330.0050.00015.55
7.4.320.0040.00416.42
7.4.300.0000.00716.40
7.4.290.0030.00316.57
7.4.280.0040.00416.51
7.4.270.0000.00716.42
7.4.260.0030.00316.50
7.4.250.0000.00716.45
7.4.240.0000.00716.58
7.4.230.0030.00316.58
7.4.220.0040.00416.58
7.4.210.0110.00516.65
7.4.200.0040.00416.67
7.4.160.0060.01016.50
7.4.140.0060.01317.86
7.4.130.0030.01316.30
7.4.120.0090.01016.54
7.4.110.0090.01216.54
7.4.100.0110.00716.45
7.4.90.0100.00716.53
7.4.80.0060.01219.39
7.4.70.0070.01016.37
7.4.60.0070.01016.47
7.4.50.0110.00416.68
7.4.40.0150.00316.50
7.4.00.0070.01014.86
7.3.330.0000.00513.25
7.3.320.0060.00013.20
7.3.310.0000.00616.29
7.3.300.0030.00316.31
7.3.290.0040.00416.16
7.3.280.0030.01516.35
7.3.260.0070.01116.45
7.3.240.0130.00416.44
7.3.230.0110.00716.52
7.3.210.0110.01116.29
7.3.200.0080.00816.48
7.3.190.0100.00716.38
7.3.180.0060.00916.44
7.3.170.0040.01216.32
7.3.160.0040.01216.39
7.3.10.0060.00616.52
7.3.00.0040.01116.48
7.2.330.0070.01016.56
7.2.320.0130.00916.70
7.2.310.0090.00916.56
7.2.300.0040.01916.74
7.2.290.0090.01616.66
7.2.130.0060.00616.67
7.2.120.0060.00916.67
7.2.110.0060.00617.02
7.2.100.0060.00817.03
7.2.90.0030.00916.79
7.2.80.0000.01217.07
7.2.70.0070.00417.06
7.2.60.0050.00717.00
7.2.50.0100.00016.86
7.2.40.0950.00817.42
7.2.30.0970.01117.45
7.2.20.1000.01017.56
7.2.10.0870.00717.48
7.2.00.0960.00517.55
7.1.250.0040.01215.57
7.1.200.0080.00415.67
7.1.160.1760.00916.68
7.1.150.1630.00916.78
7.1.140.1570.00616.53
7.1.130.1670.01016.95
7.1.120.1710.00817.06
7.1.110.2000.00816.27
7.1.100.1730.00416.28
7.1.90.1160.00916.04
7.1.80.1240.00916.38
7.1.70.2240.01115.46
7.1.60.1750.01433.41
7.1.50.2610.01432.98
7.1.40.2170.01532.66
7.1.30.2680.01632.75
7.1.20.1150.01432.88
7.1.10.1290.00914.75
7.1.00.1010.00814.86

preferences:
67.49 ms | 401 KiB | 5 Q