3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result_array = array(); $str = "1=>aaabba;4=>bsbsbsb;7=>flkdsl;5=>jdsfkjhsfd;"; $temp_array = explode(";",$str); $temp_array = array_filter($temp_array); foreach($temp_array as $val) { $sub_temp_array = explode("=>",$val); $result_array[$sub_temp_array[0]] = $sub_temp_array[1]; } print_r($result_array);

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.4.20.0170.00319.30
8.4.10.0170.00022.17
8.3.150.0110.00717.19
8.3.140.0150.00418.97
8.3.130.0030.00616.43
8.3.120.0070.01120.69
8.3.110.0130.00316.35
8.3.100.0060.00324.06
8.3.90.0070.00326.77
8.3.80.0090.00017.97
8.3.70.0040.01416.58
8.3.60.0150.00016.36
8.3.50.0130.00721.14
8.3.40.0110.00318.82
8.3.30.0000.01418.89
8.3.20.0050.00221.69
8.3.10.0050.00323.48
8.3.00.0000.00823.70
8.2.260.0040.00418.16
8.2.250.0090.00918.72
8.2.240.0060.00318.87
8.2.230.0030.00620.94
8.2.220.0090.00037.54
8.2.210.0030.01626.77
8.2.200.0060.00316.88
8.2.190.0090.00916.75
8.2.180.0090.00918.28
8.2.170.0120.00318.86
8.2.160.0070.00722.96
8.2.150.0000.00725.66
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0040.00421.18
8.2.110.0120.00620.38
8.2.100.0090.00317.96
8.2.90.0000.00817.84
8.2.80.0080.00017.97
8.2.70.0040.00417.79
8.2.60.0040.00418.22
8.2.50.0040.00418.10
8.2.40.0070.00019.43
8.2.30.0000.00821.02
8.2.20.0040.00418.04
8.2.10.0040.00417.98
8.2.00.0000.00817.76
8.1.310.0080.00018.25
8.1.300.0100.00618.38
8.1.290.0120.00030.84
8.1.280.0070.00725.92
8.1.270.0080.00023.80
8.1.260.0060.00326.35
8.1.250.0030.00528.09
8.1.240.0030.00917.51
8.1.230.0080.00320.93
8.1.220.0080.00017.76
8.1.210.0040.00418.87
8.1.200.0030.00617.35
8.1.190.0030.00517.23
8.1.180.0000.00818.10
8.1.170.0080.00018.46
8.1.160.0000.00722.18
8.1.150.0000.00818.80
8.1.140.0050.00317.55
8.1.130.0050.00317.46
8.1.120.0000.00717.47
8.1.110.0040.00417.35
8.1.100.0040.00417.48
8.1.90.0030.00317.49
8.1.80.0040.00417.48
8.1.70.0030.00617.39
8.1.60.0040.00417.52
8.1.50.0060.00317.42
8.1.40.0040.00717.40
8.1.30.0050.00317.75
8.1.20.0000.00817.62
8.1.10.0000.00917.55
8.1.00.0000.00817.54
8.0.300.0050.00219.57
8.0.290.0080.00016.60
8.0.280.0000.00718.45
8.0.270.0090.00016.82
8.0.260.0030.00318.45
8.0.250.0040.00316.95
8.0.240.0030.00316.86
8.0.230.0030.00316.91
8.0.220.0030.00316.76
8.0.210.0070.00016.94
8.0.200.0040.00416.96
8.0.190.0080.00016.79
8.0.180.0000.00716.96
8.0.170.0070.00016.96
8.0.160.0070.00017.02
8.0.150.0040.00416.84
8.0.140.0000.00716.84
8.0.130.0030.00313.28
8.0.120.0040.00416.70
8.0.110.0000.00716.90
8.0.100.0040.00416.69
8.0.90.0040.00416.86
8.0.80.0100.01416.95
8.0.70.0040.00416.79
8.0.60.0050.00316.73
8.0.50.0040.00416.83
8.0.30.0100.00717.23
8.0.20.0100.00917.40
8.0.10.0050.00216.87
8.0.00.0000.01716.50
7.4.330.0000.00515.55
7.4.320.0060.00016.62
7.4.300.0030.00316.50
7.4.290.0000.00716.52
7.4.280.0050.00316.50
7.4.270.0000.00716.64
7.4.260.0040.00416.42
7.4.250.0030.00316.41
7.4.240.0000.00816.60
7.4.230.0030.00316.39
7.4.220.0100.00716.54
7.4.210.0090.00616.69
7.4.200.0030.00316.59
7.4.160.0080.00916.66
7.4.150.0030.01417.40
7.4.140.0090.00917.86
7.4.130.0080.01116.52
7.4.120.0080.00916.55
7.4.110.0130.00316.66
7.4.100.0110.00716.43
7.4.90.0130.00516.58
7.4.80.0080.00819.39
7.4.70.0030.01316.51
7.4.60.0060.00916.57
7.4.50.0110.00616.65
7.4.40.0130.00316.34
7.4.30.0090.00616.27
7.4.00.0080.00914.82
7.3.330.0030.00313.23
7.3.320.0030.00313.08
7.3.310.0030.00316.39
7.3.300.0060.00016.36
7.3.290.0040.00416.27
7.3.280.0070.01216.34
7.3.270.0180.00017.40
7.3.260.0050.01416.39
7.3.250.0110.01016.46
7.3.240.0130.00416.32
7.3.230.0070.01816.52
7.3.210.0100.00716.41
7.3.200.0100.00716.44
7.3.190.0090.01116.45
7.3.180.0120.00916.60
7.3.170.0230.00016.32
7.3.160.0060.01216.40
7.3.120.0060.01114.68
7.3.110.0070.01114.90
7.3.100.0080.00714.96
7.3.90.0020.00914.66
7.3.80.0050.00614.67
7.3.70.0000.00914.66
7.3.60.0050.00814.83
7.3.50.0080.00614.66
7.3.40.0090.00614.75
7.3.30.0050.00714.83
7.3.20.0030.00816.48
7.3.10.0050.01216.57
7.3.00.0520.00715.83
7.2.330.0120.00716.66
7.2.320.0140.00316.69
7.2.310.0070.01016.76
7.2.300.0100.01316.72
7.2.290.0160.00616.61
7.2.250.0090.00915.02
7.2.240.0040.01415.16
7.2.230.0050.01315.13
7.2.220.0100.00514.83
7.2.210.0030.01015.19
7.2.200.0070.00115.00
7.2.190.0030.01115.07
7.2.180.0030.01314.92
7.2.170.0050.01015.04
7.2.130.0930.00314.89
7.2.120.0720.00715.18
7.2.110.1430.01014.92
7.2.100.0760.01014.55
7.2.90.0680.00314.98
7.2.80.0570.01614.91
7.2.70.0710.00314.70
7.2.60.0350.01015.93
7.2.50.0670.00614.96
7.2.40.0690.00615.03
7.2.30.0980.01314.85
7.2.20.1220.01014.89
7.2.10.0550.00414.97
7.2.00.0510.00415.09
7.1.330.0070.00715.93
7.1.320.0040.01015.72
7.1.310.0090.00215.88
7.1.300.0090.00615.65
7.1.290.0040.00815.94
7.1.280.0020.01115.65
7.1.270.0090.00315.61
7.1.260.0100.00515.77
7.1.250.0750.00713.97
7.1.240.0690.01114.03
7.1.230.0700.00313.90
7.1.220.0860.00913.96
7.1.210.0590.01513.98
7.1.200.0370.01114.74
7.1.190.0770.00713.79
7.1.180.0720.00313.98
7.1.170.1110.01014.09
7.1.160.1040.01313.97
7.1.150.1060.00614.05
7.1.140.0570.01313.80
7.1.130.0500.01013.80
7.1.120.0790.01414.04
7.1.110.1770.01013.84
7.1.100.0900.00714.07
7.1.90.0510.00413.76
7.1.80.0490.00314.12
7.1.70.0150.00915.60
7.1.60.0230.01015.59
7.1.50.0570.00714.11
7.1.40.0330.01114.13
7.1.30.0520.00013.95
7.1.20.0520.00314.04
7.1.10.0360.00314.11
7.1.00.0310.04018.33
7.0.330.1150.00713.35
7.0.320.0850.01013.69
7.0.310.0910.00713.66
7.0.300.0700.00713.70
7.0.290.0990.01313.67
7.0.280.0770.00613.55
7.0.270.0480.01013.52
7.0.260.0460.00713.34
7.0.250.0460.01113.35
7.0.240.0890.01113.61
7.0.230.0560.00013.73
7.0.220.0330.01313.80
7.0.210.0420.00313.56
7.0.200.0300.00314.34
7.0.190.0750.00313.88
7.0.180.0540.00613.64
7.0.170.0410.00313.74
7.0.160.0370.00813.56
7.0.150.0280.00913.70
7.0.140.0440.01413.65
7.0.130.0320.00913.18
7.0.120.0300.03717.04
7.0.110.0490.03016.94
7.0.100.0330.03816.80
7.0.90.0420.03216.83
7.0.80.1930.02716.98
7.0.70.0280.03716.95
7.0.60.0350.03516.82
7.0.50.0330.03417.07
7.0.40.0380.02717.00
7.0.30.0340.02516.92
7.0.20.0340.02716.97
7.0.10.0300.02517.03
7.0.00.0390.02717.01
5.6.380.0040.01514.46
5.6.370.0130.00914.30
5.6.360.0140.00614.32
5.6.350.0100.01014.27
5.6.340.0090.01314.69
5.6.330.0140.00714.24
5.6.320.0100.01114.23
5.6.310.0160.00314.34
5.6.300.0120.01214.47
5.6.290.0100.01014.43
5.6.280.0090.00914.10
5.6.270.0120.00814.55
5.6.260.0090.03617.58
5.6.250.0150.03917.74
5.6.240.0080.03617.74
5.6.230.0080.03717.65
5.6.220.0200.03817.52
5.6.210.0140.02817.59
5.6.200.0090.03617.75
5.6.190.0100.03517.77
5.6.180.0090.03117.64
5.6.170.0160.02617.68
5.6.160.0130.03217.54
5.6.150.0160.03017.61
5.6.140.0080.03517.49
5.6.130.0060.03617.57
5.6.120.0150.02817.51
5.6.110.0160.03017.55
5.6.100.0100.03317.63
5.6.90.0120.03217.47
5.6.80.0100.03617.26
5.6.70.0170.02817.18
5.6.60.0130.03717.47
5.6.50.0090.03917.32
5.6.40.0110.03517.50
5.6.30.0150.03017.37
5.6.20.0140.02917.36
5.6.10.0080.03517.36
5.6.00.0160.02617.34
5.5.380.0070.01111.08
5.5.370.0070.00711.14
5.5.360.0120.00311.04
5.5.350.0060.01211.23
5.5.340.0100.00311.32
5.5.330.0130.00411.10
5.5.320.0120.00411.32
5.5.310.0060.00911.17
5.5.300.0040.01110.98
5.5.290.0060.01011.30
5.5.280.0120.00311.22
5.5.270.0070.01011.18
5.5.260.0090.00611.09
5.5.250.0070.00711.26
5.5.240.0060.01010.96
5.5.230.0110.00411.23
5.5.220.0040.01111.18
5.5.210.0150.00011.32
5.5.200.0100.00610.92
5.5.190.0100.00311.35
5.5.180.0140.00311.23
5.5.170.0130.00311.12
5.5.160.0110.00511.11
5.5.150.0110.00511.04
5.5.140.0110.00511.25
5.5.130.0100.00310.79
5.5.120.0100.00711.26
5.5.110.0080.00811.18
5.5.100.0130.00011.15
5.5.90.0060.00611.18
5.5.80.0150.00011.25
5.5.70.0040.01111.21
5.5.60.0130.00311.18
5.5.50.0070.00711.14
5.5.40.0140.00311.05
5.5.30.0080.00511.11
5.5.20.0040.00811.11
5.5.10.0090.00911.29
5.5.00.0120.00211.30
5.4.450.0110.00411.16
5.4.440.0090.00610.83
5.4.430.0110.00410.95
5.4.420.0080.00410.91
5.4.410.0060.00611.31
5.4.400.0050.01011.39
5.4.390.0040.00811.08
5.4.380.0090.00611.01
5.4.370.0170.00010.79
5.4.360.0100.00311.28
5.4.350.0050.01011.05
5.4.340.0090.00311.38
5.4.330.0100.00511.08
5.4.320.0050.01111.15
5.4.310.0140.00311.14
5.4.300.0120.00410.80
5.4.290.0000.01511.04
5.4.280.0110.00510.89
5.4.270.0100.00311.07
5.4.260.0070.00711.19
5.4.250.0130.00411.23
5.4.240.0060.00911.20
5.4.230.0110.00411.29
5.4.220.0080.00411.09
5.4.210.0090.00611.30
5.4.200.0090.00310.74
5.4.190.0070.00711.11
5.4.180.0080.00811.11
5.4.170.0110.00811.08
5.4.160.0090.00611.11
5.4.150.0090.00311.12
5.4.140.0040.01111.08
5.4.130.0070.00711.20
5.4.120.0100.00511.04
5.4.110.0080.00511.19
5.4.100.0030.01111.08
5.4.90.0110.00711.14
5.4.80.0090.00611.38
5.4.70.0030.01010.95
5.4.60.0130.00011.07
5.4.50.0110.00311.15
5.4.40.0070.00711.18
5.4.30.0080.00311.25
5.4.20.0120.00211.37
5.4.10.0100.00311.17
5.4.00.0100.00211.11
5.3.290.0050.00510.50
5.3.280.0140.00010.58
5.3.270.0120.00310.69
5.3.260.0090.00310.66
5.3.250.0100.00310.31
5.3.240.0060.00910.54
5.3.230.0090.00510.59
5.3.220.0080.00310.47
5.3.210.0090.00910.41
5.3.200.0080.00410.51
5.3.190.0090.00310.64
5.3.180.0090.00410.50
5.3.170.0170.00010.56
5.3.160.0130.00010.74
5.3.150.0090.00610.55
5.3.140.0090.00310.63
5.3.130.0090.00710.66
5.3.120.0100.00310.61
5.3.110.0030.00910.59
5.3.100.0140.00010.55
5.3.90.0070.00710.55
5.3.80.0100.00310.46
5.3.70.0110.00510.35
5.3.60.0090.00410.51
5.3.50.0120.00310.41
5.3.40.0090.00510.48
5.3.30.0110.00310.45
5.3.20.0080.00410.20
5.3.10.0070.00510.09
5.3.00.0070.00710.29
5.2.170.0080.0049.54
5.2.160.0050.0079.54
5.2.150.0040.0089.58
5.2.140.0000.0149.55
5.2.130.0040.0089.49
5.2.120.0080.0049.31
5.2.110.0110.0009.53
5.2.100.0020.0109.26
5.2.90.0000.0099.26
5.2.80.0070.0079.48
5.2.70.0080.0049.19
5.2.60.0060.0069.29
5.2.50.0040.0099.28
5.2.40.0050.0059.44
5.2.30.0070.0039.35
5.2.20.0080.0049.32
5.2.10.0120.0009.15
5.2.00.0060.0069.22
5.1.60.0070.0028.99
5.1.50.0050.0058.99
5.1.40.0050.0058.99
5.1.30.0080.0038.99
5.1.20.0050.0058.99
5.1.10.0040.0048.99
5.1.00.0090.0028.99
5.0.50.0080.0008.99
5.0.40.0050.0038.99
5.0.30.0040.0048.99
5.0.20.0070.0008.99
5.0.10.0060.0038.99
5.0.00.0100.0008.99
4.4.90.0070.0008.99
4.4.80.0040.0048.99
4.4.70.0030.0038.99
4.4.60.0000.0088.99
4.4.50.0000.0078.99
4.4.40.0030.0038.99
4.4.30.0080.0008.99
4.4.20.0000.0078.99
4.4.10.0040.0048.99
4.4.00.0000.0078.99
4.3.110.0000.0078.99
4.3.100.0030.0068.99
4.3.90.0050.0058.99
4.3.80.0040.0028.99
4.3.70.0000.0058.99
4.3.60.0090.0028.99
4.3.50.0000.0078.99
4.3.40.0040.0048.99
4.3.30.0000.0068.99
4.3.20.0040.0048.99
4.3.10.0000.0088.99
4.3.00.0030.0038.99

preferences:
38.69 ms | 403 KiB | 5 Q