3v4l.org

run code in 300+ PHP versions simultaneously
<?php function deslug_array_values($getvars) { $new_array = array(); foreach ($getvars as $key=>$value) { $new_value = str_replace("-", " ", $value); $new_value = str_replace("+", "-", $new_value); $new_key = str_replace("-", " ", $key); $new_key = str_replace("+", "-", $new_key); $new_array[$new_key] = $new_value; } return $new_array; } var_dump(deslug_array_values( [ 'testing this', 'testing-this++', 'testing+this-too okay' ] ));

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.0150.00016.63
8.3.50.0130.00422.00
8.3.40.0140.01018.84
8.3.30.0040.01118.95
8.3.20.0070.00020.29
8.3.10.0070.00021.76
8.3.00.0000.00822.39
8.2.180.0150.00016.38
8.2.170.0070.00722.96
8.2.160.0130.00020.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0070.00022.29
8.2.110.0070.01022.25
8.2.100.0090.00317.72
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0040.00418.04
8.2.50.0100.00018.07
8.2.40.0000.00818.14
8.2.30.0070.00418.11
8.2.20.0070.00017.73
8.2.10.0000.00717.63
8.2.00.0000.00717.73
8.1.280.0180.00325.92
8.1.270.0030.00623.84
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.82
8.1.230.0080.00318.99
8.1.220.0000.00817.75
8.1.210.0000.00818.77
8.1.200.0080.00317.35
8.1.190.0030.00517.66
8.1.180.0040.00418.10
8.1.170.0030.00518.67
8.1.160.0030.00722.08
8.1.150.0040.00418.68
8.1.140.0040.00417.36
8.1.130.0040.00417.89
8.1.120.0040.00417.51
8.1.110.0080.00017.42
8.1.100.0040.00417.45
8.1.90.0030.00317.48
8.1.80.0040.00417.48
8.1.70.0000.00717.45
8.1.60.0040.00417.58
8.1.50.0090.00017.51
8.1.40.0040.00417.48
8.1.30.0000.00817.53
8.1.20.0070.00017.66
8.1.10.0040.00417.50
8.1.00.0040.00417.50
8.0.300.0050.00218.77
8.0.290.0000.00717.16
8.0.280.0070.00018.31
8.0.270.0050.00217.21
8.0.260.0030.00316.82
8.0.250.0000.00716.98
8.0.240.0040.00416.93
8.0.230.0070.00016.95
8.0.220.0030.00316.89
8.0.210.0030.00316.90
8.0.200.0070.00016.87
8.0.190.0040.00416.87
8.0.180.0000.00716.91
8.0.170.0000.00716.90
8.0.160.0070.00016.85
8.0.150.0050.00316.69
8.0.140.0040.00416.75
8.0.130.0000.00613.30
8.0.120.0040.00416.82
8.0.110.0040.00416.78
8.0.100.0000.00716.84
8.0.90.0070.00016.91
8.0.80.0080.00716.93
8.0.70.0000.00716.77
8.0.60.0040.00416.77
8.0.50.0050.00316.89
8.0.30.0140.00717.08
8.0.20.0110.00817.40
8.0.10.0000.00716.80
8.0.00.0130.00916.61
7.4.330.0000.00515.00
7.4.320.0060.00016.53
7.4.300.0070.00016.42
7.4.290.0000.00616.59
7.4.280.0040.00416.61
7.4.270.0070.00016.55
7.4.260.0030.00516.45
7.4.250.0000.00716.60
7.4.240.0070.00016.57
7.4.230.0040.00416.69
7.4.220.0100.01616.48
7.4.210.0070.00716.57
7.4.200.0040.00416.70
7.4.190.0000.00716.50
7.4.160.0040.01216.64
7.4.150.0050.01417.40
7.4.140.0110.00717.86
7.4.130.0080.01116.39
7.4.120.0080.00916.42
7.4.110.0100.00816.45
7.4.100.0100.00716.42
7.4.90.0150.00916.48
7.4.80.0070.01319.39
7.4.70.0100.00716.32
7.4.60.0060.00916.48
7.4.50.0000.00416.58
7.4.40.0030.01322.77
7.4.30.0140.00316.58
7.4.00.0000.01214.94
7.3.330.0050.00013.34
7.3.320.0000.00513.34
7.3.310.0000.00716.46
7.3.300.0030.00316.39
7.3.290.0060.00816.35
7.3.280.0060.01116.32
7.3.270.0090.01617.40
7.3.260.0080.01116.33
7.3.250.0100.01316.38
7.3.240.0090.00916.37
7.3.230.0080.01116.39
7.3.210.0250.02916.65
7.3.200.0090.00919.39
7.3.190.0120.01216.45
7.3.180.0080.00816.34
7.3.170.0070.01016.34
7.3.160.0060.00916.22
7.3.120.0110.00414.59
7.3.10.0050.00516.54
7.3.00.0070.00716.77
7.2.330.0000.01716.66
7.2.320.0140.00616.76
7.2.310.0070.01516.68
7.2.300.0070.01316.71
7.2.290.0110.00616.75
7.2.130.0060.00616.87
7.2.120.0120.00017.09
7.2.110.0090.00316.82
7.2.100.0060.00316.91
7.2.90.0060.00317.04
7.2.80.0070.00416.63
7.2.70.0030.00616.73
7.2.60.0060.00916.81
7.2.50.0090.00617.01
7.2.40.0160.00016.98
7.2.30.0030.00717.05
7.2.20.0090.00316.95
7.2.10.0070.00716.78
7.2.00.0110.00518.13
7.1.250.0050.00515.94
7.1.200.0090.00615.68
7.1.100.0250.01116.31
7.1.70.0030.00617.02
7.1.60.0030.02119.29
7.1.50.0220.01535.01
7.1.00.0100.07022.34
7.0.200.0040.01116.61
7.0.140.0070.07022.21
7.0.60.0070.08019.91
7.0.50.0100.07717.85
7.0.40.0170.08320.13
7.0.30.0330.04720.15
7.0.20.0230.08020.33
7.0.10.0070.04320.23
7.0.00.0000.04720.16
5.6.280.0070.07020.91
5.6.210.0070.08020.73
5.6.200.0070.03718.27
5.6.190.0130.04720.73
5.6.180.0370.04720.61
5.6.170.0330.07320.48
5.6.160.0100.08720.49
5.6.150.0030.05018.12
5.6.140.0030.04018.18
5.6.130.0070.04018.14
5.6.120.0130.08020.98
5.6.110.0000.04320.89
5.6.100.0030.07021.11
5.6.90.0100.06320.96
5.6.80.0100.07020.41
5.5.350.0300.07320.44
5.5.340.0100.06318.02
5.5.330.0100.03720.38
5.5.320.0230.06020.38
5.5.310.0300.06720.42
5.5.300.0030.05017.94
5.5.290.0170.06717.99
5.5.280.0030.04320.97
5.5.270.0130.07720.96
5.5.260.0030.04020.88
5.5.250.0030.05020.77
5.5.240.0130.06720.16
5.4.450.0770.06019.63
5.4.440.0630.06719.16
5.4.430.0930.05719.31
5.4.420.0200.06019.46
5.4.410.1000.05319.34
5.4.400.0570.06019.26
5.4.390.0670.05719.21
5.4.380.0130.05318.79
5.4.370.0130.05718.77
5.4.360.0230.04718.70
5.4.350.0200.05018.73
5.4.340.0170.05318.61
5.4.320.0060.04012.51
5.4.310.0060.03712.50
5.4.300.0050.04612.50
5.4.290.0190.04012.50
5.4.280.0030.04612.39
5.4.270.0060.04412.40
5.4.260.0060.03712.39
5.4.250.0080.04312.40
5.4.240.0030.03912.40
5.4.230.0150.04912.36
5.4.220.0450.08012.36
5.4.210.0280.06112.36
5.4.200.0200.04112.36
5.4.190.0170.04612.36
5.4.180.0250.06312.36
5.4.170.0140.04512.37
5.4.160.0210.04612.37
5.4.150.0160.04512.36
5.4.140.0300.08912.04
5.4.130.0200.04312.04
5.4.120.0280.09011.99
5.4.110.0360.08711.99
5.4.100.0410.08411.99
5.4.90.0220.05211.99
5.4.80.0290.09011.99
5.4.70.0410.08011.98
5.4.60.0170.04311.99
5.4.50.0460.09611.98
5.4.40.0420.07611.97
5.4.30.0160.04711.96
5.4.20.0330.08711.97
5.4.10.0450.07811.96
5.4.00.0150.04611.45
5.3.290.0060.04012.80
5.3.280.0360.08912.71
5.3.270.0160.04612.72
5.3.260.0340.08112.72
5.3.250.0160.04412.72
5.3.240.0230.07012.72
5.3.230.0310.09312.71
5.3.220.0270.07012.68
5.3.210.0350.09912.68
5.3.200.0390.08812.68
5.3.190.0290.09612.68
5.3.180.0210.04412.67
5.3.170.0140.05212.66
5.3.160.0160.04512.67
5.3.150.0140.04612.68
5.3.140.0300.09012.66
5.3.130.0130.05012.66
5.3.120.0160.04412.66
5.3.110.0190.04312.66
5.3.100.0140.04612.12
5.3.90.0160.04312.08
5.3.80.0150.04412.07
5.3.70.0170.04412.07
5.3.60.0260.03412.06
5.3.50.0210.07012.00
5.3.40.0210.04312.00
5.3.30.0180.04111.95
5.3.20.0130.05311.73
5.3.10.0150.04711.70
5.3.00.0200.03811.68
5.2.170.0080.0419.18
5.2.160.0150.0349.18
5.2.150.0130.0359.18
5.2.140.0160.0319.18
5.2.130.0200.0579.14
5.2.120.0130.0369.14
5.2.110.0100.0389.15
5.2.100.0110.0369.16
5.2.90.0120.0379.15
5.2.80.0180.0369.13
5.2.70.0280.0869.13
5.2.60.0140.0369.09
5.2.50.0150.0339.07
5.2.40.0260.0559.04
5.2.30.0140.0329.01
5.2.20.0120.0389.01
5.2.10.0130.0358.92
5.2.00.0180.0308.77
5.1.60.0120.0318.05
5.1.50.0120.0348.05
5.1.40.0100.0338.04
5.1.30.0150.0338.38
5.1.20.0110.0348.42
5.1.10.0130.0398.13
5.1.00.0140.0308.13
5.0.50.0100.0266.61
5.0.40.0200.0476.46
5.0.30.0090.0356.29
5.0.20.0100.0226.25
5.0.10.0090.0226.23
5.0.00.0080.0366.23
4.4.90.0090.0164.77
4.4.80.0050.0214.75
4.4.70.0080.0184.75
4.4.60.0080.0174.75
4.4.50.0060.0204.77
4.4.40.0100.0304.71
4.4.30.0070.0204.76
4.4.20.0030.0224.85
4.4.10.0080.0184.85
4.4.00.0080.0314.76
4.3.110.0080.0184.67
4.3.100.0100.0164.66
4.3.90.0080.0174.63
4.3.80.0070.0284.58
4.3.70.0090.0184.63
4.3.60.0070.0194.63
4.3.50.0090.0174.63
4.3.40.0180.0484.54
4.3.30.0050.0203.30
4.3.20.0040.0223.28
4.3.10.0050.0193.25
4.3.00.0270.0236.77

preferences:
41.64 ms | 400 KiB | 5 Q