3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"params":["dsada","sdasd","dsadas"]}'; $decoded = json_decode($json, true); $decoded['params']; foreach($decoded['params'] as $item){ $item = "'$item'"; } echo var_dump($decoded['params']);

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.0130.00718.43
8.3.50.0080.01021.13
8.3.40.0100.01018.84
8.3.30.0150.00018.84
8.3.20.0000.00818.78
8.3.10.0030.00621.01
8.3.00.0040.00421.73
8.2.180.0070.00716.34
8.2.170.0090.00622.96
8.2.160.0060.01220.53
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00421.12
8.2.110.0140.00320.55
8.2.100.0110.00017.91
8.2.90.0000.00719.29
8.2.80.0030.00617.97
8.2.70.0050.00517.63
8.2.60.0000.00918.05
8.2.50.0000.00818.07
8.2.40.0080.00018.14
8.2.30.0000.00719.43
8.2.20.0080.00017.75
8.2.10.0000.00717.75
8.2.00.0090.00017.74
8.1.280.0040.01125.92
8.1.270.0090.00423.99
8.1.260.0130.00626.35
8.1.250.0040.00428.09
8.1.240.0040.00423.92
8.1.230.0040.00821.03
8.1.220.0040.00418.77
8.1.210.0030.00619.02
8.1.200.0060.00317.23
8.1.190.0000.00817.39
8.1.180.0030.00618.10
8.1.170.0000.00818.56
8.1.160.0000.00718.89
8.1.150.0040.00418.64
8.1.140.0070.00017.46
8.1.130.0030.00317.84
8.1.120.0000.00817.37
8.1.110.0000.00717.35
8.1.100.0000.00717.38
8.1.90.0000.00817.46
8.1.80.0000.00817.50
8.1.70.0000.00717.46
8.1.60.0040.00417.57
8.1.50.0040.00417.53
8.1.40.0040.00417.46
8.1.30.0070.00017.48
8.1.20.0070.00017.58
8.1.10.0040.00417.45
8.1.00.0040.00717.55
8.0.300.0030.00619.87
8.0.290.0070.00017.18
8.0.280.0030.00318.46
8.0.270.0040.00417.26
8.0.260.0070.00016.81
8.0.250.0050.00316.97
8.0.240.0000.00716.89
8.0.230.0040.00416.85
8.0.220.0000.00716.85
8.0.210.0000.00716.95
8.0.200.0030.00316.95
8.0.190.0040.00416.99
8.0.180.0040.00416.80
8.0.170.0000.00716.81
8.0.160.0030.00316.86
8.0.150.0000.00916.74
8.0.140.0070.00016.90
8.0.130.0030.00313.31
8.0.120.0040.00416.89
8.0.110.0020.00516.87
8.0.100.0040.00416.82
8.0.90.0040.00416.80
8.0.80.0090.00616.88
8.0.70.0040.00416.89
8.0.60.0000.00716.84
8.0.50.0000.00816.84
8.0.30.0090.01517.19
8.0.20.0150.00717.40
8.0.10.0040.00417.00
8.0.00.0130.00616.66
7.4.330.0050.00016.83
7.4.320.0070.00016.45
7.4.300.0000.00616.51
7.4.290.0000.00716.66
7.4.280.0040.00416.49
7.4.270.0000.00816.47
7.4.260.0030.00313.29
7.4.250.0080.00016.43
7.4.240.0000.00816.50
7.4.230.0000.00716.70
7.4.220.0080.00916.66
7.4.210.0080.01016.55
7.4.200.0040.00416.41
7.4.190.0030.00316.54
7.4.160.0170.00316.66
7.4.150.0060.01317.40
7.4.140.0070.01517.86
7.4.130.0120.00816.48
7.4.120.0130.00916.54
7.4.110.0060.01216.44
7.4.100.0140.00716.56
7.4.90.0110.00716.57
7.4.80.0110.00719.39
7.4.70.0060.01116.48
7.4.60.0140.00616.55
7.4.50.0000.00616.63
7.4.40.0000.01622.77
7.4.30.0070.01016.16
7.4.00.0080.00615.07
7.3.330.0030.00313.10
7.3.320.0000.00513.15
7.3.310.0000.00716.31
7.3.300.0030.00316.17
7.3.290.0080.00716.31
7.3.280.0100.00816.29
7.3.270.0030.01317.40
7.3.260.0140.00418.24
7.3.250.0080.01016.48
7.3.240.0030.01316.57
7.3.230.0120.00616.41
7.3.210.0110.00516.36
7.3.200.0140.00819.39
7.3.190.0100.00716.58
7.3.180.0120.00316.31
7.3.170.0060.00916.30
7.3.160.0050.01016.34
7.3.120.0000.01114.80
7.3.10.0060.00916.46
7.3.00.0030.00616.73
7.2.330.0060.01116.53
7.2.320.0060.01216.76
7.2.310.0130.00916.57
7.2.300.0060.01116.59
7.2.290.0160.01016.60
7.2.130.0070.00716.83
7.2.120.0070.00316.98
7.2.110.0030.01016.95
7.2.100.0000.01517.04
7.2.90.0060.00916.74
7.2.80.0110.00417.04
7.2.70.0080.00617.14
7.2.60.0030.01316.78
7.2.50.0080.00817.02
7.2.40.0030.00917.08
7.2.30.0120.00316.77
7.2.20.0040.01117.13
7.2.10.0040.00717.00
7.2.00.0020.01118.30
7.1.250.0040.00815.81
7.1.200.0080.00815.88
7.1.100.0030.01018.18
7.1.70.0070.00317.16
7.1.60.0060.01319.17
7.1.50.0060.01316.84
7.1.00.0070.03022.37
7.0.200.0180.00516.84
7.0.140.0070.07022.01
7.0.60.0100.08019.92
7.0.50.0030.08017.91
7.0.40.0070.04020.06
7.0.30.0600.06320.09
7.0.20.0230.07320.19
7.0.10.0130.05720.09
7.0.00.0100.08720.17
5.6.280.0000.07721.06
5.6.210.0130.07320.70
5.6.200.0070.03718.16
5.6.190.0030.07020.64
5.6.180.0270.06020.41
5.6.170.0300.07020.34
5.6.160.0070.08720.33
5.6.150.0130.07018.21
5.6.140.0130.06318.22
5.6.130.0070.07318.11
5.6.120.0070.07721.11
5.6.110.0130.07720.98
5.6.100.0130.07720.98
5.6.90.0070.08020.97
5.6.80.0030.07720.38
5.6.70.4570.03020.37
5.5.350.0070.08720.48
5.5.340.0030.08718.02
5.5.330.0070.04720.36
5.5.320.0430.06720.28
5.5.310.0270.04020.33
5.5.300.0100.03718.01
5.5.290.0130.04317.98
5.5.280.0100.08320.77
5.5.270.0030.04020.75
5.5.260.0130.08020.86
5.5.250.0000.04320.46
5.5.240.0000.08020.03
5.4.450.0030.08019.58
5.4.440.0030.05019.57
5.4.430.0070.05319.20
5.4.420.0070.07319.25
5.4.410.0000.08319.41
5.4.400.0000.07019.07
5.4.390.0030.04718.95
5.4.380.0030.08019.10
5.4.370.0000.07719.08
5.4.360.0030.06319.14
5.4.350.0000.05319.13
5.4.340.0000.05019.13
5.4.320.0000.06718.82
5.4.310.0000.08319.16
5.4.300.0070.08019.06
5.4.290.0130.05018.82
5.4.280.0070.07018.91
5.4.270.0030.04719.07
5.4.260.0070.07019.06
5.4.250.0100.07019.17
5.4.240.0000.06719.21
5.4.230.0030.06319.07
5.4.220.0030.07318.88
5.4.210.0100.04719.15
5.4.200.0000.04319.24
5.4.190.0030.07319.08
5.4.180.0030.07319.05
5.4.170.0100.03319.08
5.4.160.0000.05719.11
5.4.150.0100.06718.79
5.4.140.0100.06316.50
5.4.130.0000.06316.28
5.4.120.0070.06716.43
5.4.110.0130.04016.27
5.4.100.0030.05016.51
5.4.90.0030.05016.36
5.4.80.0000.07016.39
5.4.70.0030.05016.46
5.4.60.0070.05016.19
5.4.50.0070.07016.31
5.4.40.0070.07016.41
5.4.30.0070.06716.04
5.4.20.0030.07016.32
5.4.10.0070.06716.40
5.4.00.0030.05315.67
5.3.290.0030.06014.63
5.3.280.0000.06014.54
5.3.270.0000.05714.64
5.3.260.0100.07314.58
5.3.250.0000.08014.44
5.3.240.0030.07314.55
5.3.230.0000.05014.43
5.3.220.0000.08014.55
5.3.210.0000.06314.42
5.3.200.0030.07314.40
5.3.190.0030.04314.47
5.3.180.0030.07314.51
5.3.170.0030.07314.52
5.3.160.0070.06714.54
5.3.150.0030.07014.52
5.3.140.0030.07014.51
5.3.130.0000.07714.48
5.3.120.0070.07014.40
5.3.110.0000.08014.48
5.3.100.0030.08013.98
5.3.90.0030.07314.11
5.3.80.0030.04013.98
5.3.70.0070.05313.93
5.3.60.0000.04014.10
5.3.50.0070.03013.75
5.3.40.0030.07014.04
5.3.30.0030.04714.00
5.3.20.0070.05313.72
5.3.10.0030.05713.45
5.3.00.0070.05713.68
5.2.170.0070.03312.91
5.2.160.0070.04012.91
5.2.150.0000.04712.91
5.2.140.0030.05012.91
5.2.130.0030.06312.91
5.2.120.0070.05712.91
5.2.110.0000.05712.91
5.2.100.0000.05312.91
5.2.90.0070.05712.91
5.2.80.0030.05312.91
5.2.70.0030.04712.91
5.2.60.0030.05312.91
5.2.50.0000.05012.91
5.2.40.0000.05312.91
5.2.30.0030.04012.91
5.2.20.0000.06312.91
5.2.10.0000.06712.91
5.2.00.0100.04712.91
5.1.60.0000.04312.91
5.1.50.0030.04012.91
5.1.40.0030.02712.91
5.1.30.0000.02712.91
5.1.20.0000.02712.91
5.1.10.0000.02312.91
5.1.00.0000.03012.91
5.0.50.0000.02012.91
5.0.40.0000.02012.91
5.0.30.0000.03312.91
5.0.20.0000.02312.91
5.0.10.0030.02012.91
5.0.00.0000.03312.91
4.4.90.0100.02712.91
4.4.80.0000.03712.91
4.4.70.0030.03712.91
4.4.60.0000.03012.91
4.4.50.0000.03012.91
4.4.40.0000.05712.91
4.4.30.0030.01712.91
4.4.20.0000.01312.91
4.4.10.0000.01312.91
4.4.00.0000.02312.91
4.3.110.0000.01312.91
4.3.100.0000.01312.91
4.3.90.0000.01312.91
4.3.80.0000.02712.91
4.3.70.0000.01312.91
4.3.60.0000.01712.91
4.3.50.0000.01312.91
4.3.40.0000.02312.91
4.3.30.0000.01712.91
4.3.20.0000.01712.91
4.3.10.0000.02312.91
4.3.00.0000.01312.91

preferences:
48.66 ms | 401 KiB | 5 Q