3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = unserialize('a:3:{i:0;a:2:{s:8:"frage_id";s:1:"3";s:7:"antwort";s:1:"3";}i:1;a:2:{s:8:"frage_id";s:1:"4";s:7:"antwort";s:1:"3";}i:2;a:2:{s:8:"frage_id";s:1:"5";s:7:"antwort";s:1:"3";}}'); $keys = array_column($array, "frage_id"); $values = array_column($array, "antwort"); $prepend_func = function($value) { return "s" . $value; }; $keys = array_map($prepend_func, $keys); $combined = array_combine($keys, $values); print_r($combined);

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.0100.00716.63
8.3.50.0050.00921.99
8.3.40.0040.01118.71
8.3.30.0140.00019.10
8.3.20.0050.00320.33
8.3.10.0070.00023.48
8.3.00.0080.00019.25
8.2.180.0120.00616.38
8.2.170.0070.00722.96
8.2.160.0130.00320.43
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0050.00226.16
8.2.120.0080.00020.90
8.2.110.0090.00021.89
8.2.100.0090.00317.78
8.2.90.0000.01019.21
8.2.80.0000.00817.97
8.2.70.0060.00317.38
8.2.60.0090.00317.68
8.2.50.0000.00818.07
8.2.40.0040.00421.06
8.2.30.0070.00018.30
8.2.20.0050.00317.57
8.2.10.0070.00017.93
8.2.00.0000.00717.66
8.1.280.0110.00425.92
8.1.270.0040.00423.81
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0030.00623.87
8.1.230.0000.01119.16
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0080.00317.23
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0050.00318.49
8.1.160.0040.00422.01
8.1.150.0080.00018.59
8.1.140.0050.00317.45
8.1.130.0000.00817.78
8.1.120.0070.00017.49
8.1.110.0000.00717.49
8.1.100.0050.00217.50
8.1.90.0000.00717.46
8.1.80.0030.00517.47
8.1.70.0000.00817.41
8.1.60.0000.00817.59
8.1.50.0060.00317.42
8.1.40.0000.01017.50
8.1.30.0030.00517.66
8.1.20.0000.00817.70
8.1.10.0030.00617.54
8.1.00.0000.00917.31
8.0.300.0080.00018.77
8.0.290.0060.00316.75
8.0.280.0070.00018.36
8.0.270.0000.00717.16
8.0.260.0080.00017.30
8.0.250.0030.00317.00
8.0.240.0000.00717.09
8.0.230.0040.00416.93
8.0.220.0000.00716.93
8.0.210.0040.00416.97
8.0.200.0000.00617.02
8.0.190.0000.00716.98
8.0.180.0000.00716.99
8.0.170.0030.00516.98
8.0.160.0070.00016.95
8.0.150.0000.00716.86
8.0.140.0000.00716.94
8.0.130.0060.00013.36
8.0.120.0030.00516.90
8.0.110.0000.00716.79
8.0.100.0030.00516.84
8.0.90.0040.00416.83
8.0.80.0030.01116.95
8.0.70.0000.00716.96
8.0.60.0000.00816.99
8.0.50.0050.00316.91
8.0.30.0120.00916.99
8.0.20.0090.01117.40
8.0.10.0000.00717.08
8.0.00.0100.01016.83
7.4.330.0020.00215.00
7.4.320.0030.00316.65
7.4.300.0030.00316.55
7.4.290.0030.00316.60
7.4.280.0030.00316.60
7.4.270.0000.00716.51
7.4.260.0070.00016.51
7.4.250.0000.00716.55
7.4.240.0050.00316.43
7.4.230.0000.00716.48
7.4.220.0090.00916.54
7.4.210.0030.01216.54
7.4.200.0040.00416.62
7.4.190.0040.00416.68
7.4.160.0060.00916.40
7.4.150.0090.01217.40
7.4.140.0090.01217.86
7.4.130.0170.00516.57
7.4.120.0130.00416.52
7.4.110.0100.00716.47
7.4.100.0120.00816.52
7.4.90.0100.00716.48
7.4.80.0060.01819.39
7.4.70.0070.01016.38
7.4.60.0030.01416.55
7.4.50.0060.00016.43
7.4.40.0050.01016.49
7.4.30.0040.01416.47
7.4.00.0080.00814.91
7.3.330.0080.00013.27
7.3.320.0000.00513.10
7.3.310.0000.00716.17
7.3.300.0000.00716.32
7.3.290.0060.00916.32
7.3.280.0100.00616.32
7.3.270.0130.00317.40
7.3.260.0100.00716.57
7.3.250.0120.00916.46
7.3.240.0090.01316.32
7.3.230.0030.01316.39
7.3.210.0090.01216.49
7.3.200.0030.01319.39
7.3.190.0170.00016.43
7.3.180.0120.00316.34
7.3.170.0070.00716.39
7.3.160.0060.00916.39
7.3.120.0100.00714.90
7.3.10.0040.00716.42
7.3.00.0000.01116.71
7.2.330.0120.00616.71
7.2.320.0150.00916.59
7.2.310.0130.00316.63
7.2.300.0070.01316.73
7.2.290.0130.00516.38
7.2.130.0030.01016.83
7.2.120.0060.00616.57
7.2.110.0030.00616.85
7.2.100.0030.01116.49
7.2.90.0040.00516.58
7.2.80.0030.01016.93
7.2.70.0090.00917.02
7.2.60.0030.00916.67
7.2.50.0070.00716.86
7.2.40.0000.01416.76
7.2.30.0060.00616.87
7.2.20.0090.00316.88
7.2.10.0090.00616.82
7.2.00.0040.01018.04
7.1.250.0030.00715.50
7.1.100.0080.00317.86
7.1.70.0070.00016.86
7.1.60.0060.01919.46
7.1.50.0000.02016.93
7.1.00.0000.07722.48
7.0.200.0060.00316.63
7.0.140.0000.06722.05
7.0.60.0070.08019.86
7.0.50.0100.08017.72
7.0.40.0100.05320.11
7.0.30.0600.06720.20
7.0.20.0330.07320.33
7.0.10.0300.07720.45
7.0.00.0070.05020.20
5.6.210.0130.05320.77
5.6.200.0030.08718.29
5.6.190.0200.06320.47
5.6.180.3600.03720.66
5.6.170.0300.04720.54
5.6.160.0070.07320.48
5.6.150.0030.05318.27
5.6.140.0100.08018.15
5.6.130.0030.07318.11
5.6.120.0030.05321.00
5.6.110.0130.07721.14
5.6.100.0070.06721.09
5.6.90.0100.08020.97
5.6.80.0030.06020.41
5.6.70.0300.07320.50
5.5.350.0130.06720.41
5.5.340.0170.05718.07
5.5.330.0130.04320.57
5.5.320.0400.06020.43
5.5.310.0170.05020.34
5.5.300.0130.07317.94
5.5.290.0070.05317.92
5.5.280.0130.07720.87
5.5.270.0130.05720.89
5.5.260.0070.06720.82
5.5.250.0070.08020.69
5.5.240.0170.07320.14
5.4.450.0500.08019.34
5.4.440.0130.06319.48
5.4.430.0730.06019.46
5.4.420.0700.00019.51
5.4.410.0170.07019.06
5.4.400.0370.06318.63
5.4.390.0270.04718.84
5.4.380.0230.05718.84
5.4.370.0070.05718.59
5.4.360.0130.04718.77
5.4.350.0080.03512.02
5.4.340.0070.03412.02
5.4.320.0100.04712.51
5.4.310.0100.03712.50
5.4.300.0110.04512.51
5.4.290.0090.04012.50
5.4.280.0080.03912.40
5.4.270.0040.04412.39
5.4.260.0070.03812.39
5.4.250.0060.03812.39
5.4.240.0060.03912.40
5.4.230.0040.04212.39
5.4.220.0090.03612.39
5.4.210.0060.04112.39
5.4.200.0100.03712.39
5.4.190.0080.03812.39
5.4.180.0080.03812.39
5.4.170.0020.04212.40
5.4.160.0040.04112.39
5.4.150.0040.04112.39
5.4.140.0040.04312.07
5.4.130.0060.03812.06
5.4.120.0050.04212.02
5.4.110.0080.03612.02
5.4.100.0050.04012.02
5.4.90.0060.04112.02
5.4.80.0070.03812.02
5.4.70.0070.03612.01
5.4.60.0060.03912.01
5.4.50.0090.03512.01
5.4.40.0070.03712.00
5.4.30.0050.03612.00
5.4.20.0050.03712.00
5.4.10.0050.03612.00
5.4.00.0050.03811.49
5.3.290.0110.05012.80
5.3.280.0040.04012.71
5.3.270.0070.03912.72
5.3.260.0070.03812.72
5.3.250.0060.03812.72
5.3.240.0060.03812.72
5.3.230.0040.04212.71
5.3.220.0110.03312.68
5.3.210.0070.03812.68
5.3.200.0070.03712.68
5.3.190.0050.04112.68
5.3.180.0090.03812.68
5.3.170.0060.04012.67
5.3.160.0050.03812.67
5.3.150.0110.03412.67
5.3.140.0100.03312.66
5.3.130.0040.04112.66
5.3.120.0060.03812.66
5.3.110.0030.04512.66
5.3.100.0080.04812.12
5.3.90.0090.04512.10
5.3.80.0080.05112.10
5.3.70.0070.05112.10
5.3.60.0090.04612.08
5.3.50.0120.04612.03
5.3.40.0070.03712.03
5.3.30.0050.03711.98
5.3.20.0060.03511.77
5.3.10.0050.03611.73
5.3.00.0090.03611.72
5.2.170.0100.0319.18
5.2.160.0070.0299.19
5.2.150.0050.0339.19
5.2.140.0050.0319.18
5.2.130.0080.0299.14
5.2.120.0050.0329.14
5.2.110.0050.0329.15
5.2.100.0080.0299.14
5.2.90.0020.0349.14
5.2.80.0060.0309.14
5.2.70.0070.0309.14
5.2.60.0070.0299.10
5.2.50.0040.0339.07
5.2.40.0060.0319.04
5.2.30.0050.0329.02
5.2.20.0080.0329.00
5.2.10.0060.0298.93
5.2.00.0040.0328.79
5.1.60.0080.0248.07
5.1.50.0040.0278.06
5.1.40.0010.0308.05
5.1.30.0050.0278.40
5.1.20.0040.0318.42
5.1.10.0050.0298.14
5.1.00.0040.0298.14
5.0.50.0040.0246.63
5.0.40.0040.0236.48
5.0.30.0040.0346.30
5.0.20.0040.0216.26
5.0.10.0040.0236.25
5.0.00.0020.0346.24
4.4.90.0040.0174.78
4.4.80.0030.0154.76
4.4.70.0040.0144.75
4.4.60.0030.0154.75
4.4.50.0040.0154.77
4.4.40.0010.0274.71
4.4.30.0030.0174.76
4.4.20.0050.0194.84
4.4.10.0060.0184.85
4.4.00.0060.0284.76
4.3.110.0040.0194.66
4.3.100.0040.0164.66
4.3.90.0050.0134.63
4.3.80.0020.0264.58
4.3.70.0000.0184.63
4.3.60.0030.0154.63
4.3.50.0030.0164.63
4.3.40.0020.0254.54
4.3.30.0010.0183.29
4.3.20.0040.0153.26
4.3.10.0000.0193.23
4.3.00.0200.0177.59

preferences:
53.22 ms | 401 KiB | 5 Q