3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 'user_id' => 1, 'user_name' => 'User', 'user_email' => 'mail@user.com' ); array_walk($array,function($value, &$key) { $newkey = str_replace("user_","",$key); $newarray[$newkey] = $value; }); print_r($newarray);

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.0160.00316.75
8.3.50.0150.00422.09
8.3.40.0070.00718.72
8.3.30.0100.00718.65
8.3.20.0070.00020.21
8.3.10.0040.00423.51
8.3.00.0080.00020.89
8.2.180.0120.00316.75
8.2.170.0040.01122.96
8.2.160.0040.01120.33
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0030.00619.48
8.2.110.0150.00619.39
8.2.100.0080.00417.80
8.2.90.0020.00519.36
8.2.80.0030.00617.97
8.2.70.0030.00717.75
8.2.60.0080.00018.03
8.2.50.0000.00918.07
8.2.40.0030.00917.97
8.2.30.0030.00618.34
8.2.20.0020.00517.85
8.2.10.0000.00718.18
8.2.00.0080.00019.65
8.1.280.0070.01425.92
8.1.270.0030.00524.02
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0110.00021.88
8.1.230.0040.00720.99
8.1.220.0080.00017.74
8.1.210.0080.00019.04
8.1.200.0060.00317.35
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0030.00518.45
8.1.160.0000.00721.92
8.1.150.0070.00018.55
8.1.140.0040.00417.50
8.1.130.0000.00717.84
8.1.120.0070.00017.36
8.1.110.0040.00417.34
8.1.100.0070.00017.35
8.1.90.0050.00317.50
8.1.80.0000.00717.52
8.1.70.0000.00717.41
8.1.60.0000.00817.57
8.1.50.0040.00417.53
8.1.40.0000.00817.43
8.1.30.0030.00617.50
8.1.20.0040.00417.57
8.1.10.0050.00217.57
8.1.00.0040.00417.55
8.0.300.0000.00719.90
8.0.290.0040.00416.75
8.0.280.0000.00718.23
8.0.270.0040.00417.25
8.0.260.0040.00417.23
8.0.250.0030.00316.96
8.0.240.0030.00316.99
8.0.230.0070.00016.92
8.0.220.0040.00416.86
8.0.210.0000.00716.77
8.0.200.0000.00716.99
8.0.190.0080.00017.01
8.0.180.0000.00716.87
8.0.170.0040.00416.97
8.0.160.0030.00316.95
8.0.150.0070.00016.96
8.0.140.0070.00016.82
8.0.130.0060.00013.34
8.0.120.0040.00416.96
8.0.110.0000.00816.96
8.0.100.0000.00716.73
8.0.90.0020.00516.89
8.0.80.0090.00616.96
8.0.70.0080.00016.84
8.0.60.0000.00916.78
8.0.50.0040.00416.94
8.0.30.0080.01116.79
8.0.20.0110.00817.40
8.0.10.0040.00417.06
8.0.00.0060.01216.78
7.4.330.0060.00015.14
7.4.320.0000.00616.55
7.4.300.0000.00616.60
7.4.290.0000.00816.43
7.4.280.0100.00016.63
7.4.270.0020.00516.61
7.4.260.0030.00316.47
7.4.250.0000.00716.44
7.4.240.0020.00516.54
7.4.230.0000.00716.60
7.4.220.0160.00916.52
7.4.210.0080.00616.61
7.4.200.0000.00716.71
7.4.160.0100.00616.44
7.4.150.0100.00617.40
7.4.140.0080.01117.86
7.4.130.0080.00816.56
7.4.120.0110.00616.53
7.4.110.0100.01016.61
7.4.100.0060.01416.65
7.4.90.0110.00716.72
7.4.80.0110.00719.39
7.4.70.0070.01016.55
7.4.60.0080.00816.34
7.4.50.0060.00316.74
7.4.40.0040.01516.57
7.4.30.0090.00616.63
7.4.00.0030.01014.85
7.3.330.0050.00013.37
7.3.320.0050.00013.40
7.3.310.0020.00516.46
7.3.300.0070.00016.40
7.3.290.0000.01416.34
7.3.280.0120.00616.45
7.3.270.0180.00017.40
7.3.260.0250.00016.52
7.3.250.0140.00716.48
7.3.240.0060.01016.51
7.3.230.0130.00716.41
7.3.210.0070.01716.48
7.3.200.0080.00819.39
7.3.190.0120.00916.36
7.3.180.0060.00916.30
7.3.170.0090.00616.45
7.3.160.0070.01016.41
7.3.120.0000.01314.93
7.2.330.0030.01316.69
7.2.320.0100.01316.88
7.2.310.0120.00416.71
7.2.300.0030.01716.63
7.2.290.0060.01216.59
7.2.00.0070.00718.86
7.1.100.0000.01218.09
7.1.70.0000.00917.21
7.1.60.0130.01319.70
7.1.50.0100.01016.91
7.1.00.0030.07322.43
7.0.200.0060.00616.40
7.0.140.0030.07321.95
7.0.60.0100.07319.84
7.0.50.0070.04017.89
7.0.40.0070.07319.96
7.0.30.0270.08020.25
7.0.20.0330.04320.10
7.0.10.0100.04020.15
7.0.00.0100.08320.05
5.6.280.0170.06321.11
5.6.210.0030.08320.70
5.6.200.0070.05718.29
5.6.190.0170.04720.46
5.6.180.0270.07720.64
5.6.170.0270.06320.47
5.6.160.0100.03720.71
5.6.150.0070.05718.29
5.6.140.0070.08318.28
5.6.130.0070.07718.19
5.6.120.0170.04320.99
5.6.110.0030.08021.07
5.6.100.0100.08321.11
5.6.90.0070.08020.97
5.6.80.0030.08320.51
5.5.350.4430.03720.50
5.5.340.0100.07317.95
5.5.330.0130.09020.41
5.5.320.0270.04020.36
5.5.310.0470.06020.27
5.5.300.0030.05018.08
5.5.290.0000.04317.95
5.5.280.0070.05320.87
5.5.270.0070.04720.90
5.5.260.0070.04720.77
5.5.250.0070.08320.55
5.5.240.0270.05020.24
5.4.450.0170.08019.28
5.4.440.0170.04719.52
5.4.430.0170.05319.47
5.4.420.0130.04319.56
5.4.410.0300.06319.39
5.4.400.0200.04319.23
5.4.390.0200.07019.09
5.4.380.0330.03719.09
5.4.370.0100.07319.31
5.4.360.0130.04719.20
5.4.350.0100.05318.95
5.4.340.0200.04718.84
5.4.320.0230.07019.16
5.4.310.0170.08019.17
5.4.300.0130.05319.21
5.4.290.0230.03718.87
5.4.280.0270.07719.16
5.4.270.0230.04019.31
5.4.260.0130.04019.05
5.4.250.0130.04019.13
5.4.240.0170.03718.97
5.4.230.0200.03319.23
5.4.220.0170.08019.13
5.4.210.0170.04719.08
5.4.200.0300.05719.08
5.4.190.0300.04019.05
5.4.180.0200.06019.14
5.4.170.0270.06719.10
5.4.160.0170.06319.14
5.4.150.0270.06018.96
5.4.140.0100.05716.32
5.4.130.0200.07016.50
5.4.120.0200.05016.38
5.4.110.0230.03716.51
5.4.100.0170.05016.27
5.4.90.0270.04016.19
5.4.80.0170.03716.43
5.4.70.0130.03716.36
5.4.60.0270.05316.38
5.4.50.0170.04716.43
5.4.40.0200.05316.53
5.4.30.0230.03016.52
5.4.20.0270.06016.48
5.4.10.0200.04016.42
5.4.00.0270.06315.86
5.3.290.0270.06714.64
5.3.280.0300.06014.73
5.3.270.0270.07014.68
5.3.260.0130.07014.57
5.3.250.0130.04714.60
5.3.240.0070.05014.52
5.3.230.0200.04714.60
5.3.220.0130.06314.61
5.3.210.0200.06314.46
5.3.200.0270.06714.48
5.3.190.0300.07014.46
5.3.180.0170.06714.47
5.3.170.0230.07314.47
5.3.160.0170.08014.53
5.3.150.0300.06014.57
5.3.140.0270.06314.63
5.3.130.0130.04014.69
5.3.120.0200.06714.55
5.3.110.0230.05014.45
5.3.100.0170.07314.04
5.3.90.0170.07314.10
5.3.80.0270.06014.03
5.3.70.0230.05714.03
5.3.60.0230.06714.09
5.3.50.0230.05714.03
5.3.40.0230.06314.03
5.3.30.0170.03714.03
5.3.20.0200.06314.03
5.3.10.0270.06014.03
5.3.00.0230.06014.03
5.2.170.0200.05314.03
5.2.160.0230.03314.03
5.2.150.0170.05714.03
5.2.140.0200.03314.03
5.2.130.0170.05714.03
5.2.120.0230.05314.03
5.2.110.0270.04314.03
5.2.100.0200.05714.03
5.2.90.0230.04714.03
5.2.80.0200.02714.03
5.2.70.0230.05314.03
5.2.60.0100.03314.03
5.2.50.0170.06014.03
5.2.40.0170.04014.03
5.2.30.0170.03714.03
5.2.20.0170.05714.03
5.2.10.0170.05314.03
5.2.00.0200.04314.03
5.1.60.0100.04314.03
5.1.50.0170.04714.03
5.1.40.0130.02714.03
5.1.30.0200.02014.03
5.1.20.0100.06014.03
5.1.10.0130.03014.03
5.1.00.0130.03314.03
5.0.50.0070.02014.03
5.0.40.0100.02314.03
5.0.30.0130.05714.03
5.0.20.0030.03014.03
5.0.10.0100.02014.03
5.0.00.0030.06714.03
4.4.90.0130.02314.03
4.4.80.0100.01714.03
4.4.70.0070.02314.03
4.4.60.0070.03314.03
4.4.50.0070.02314.03
4.4.40.0170.04714.03
4.4.30.0070.02714.03
4.4.20.0070.02314.03
4.4.10.0070.04014.03
4.4.00.0170.03314.03
4.3.110.0070.02014.03
4.3.100.0100.01314.03
4.3.90.0130.03014.03
4.3.80.0130.03314.03
4.3.70.0070.03014.03
4.3.60.0170.02314.03
4.3.50.0070.02314.03
4.3.40.0070.02714.03
4.3.30.0070.03314.03
4.3.20.0030.02014.03
4.3.10.0070.01314.03
4.3.00.0030.01314.03

preferences:
46.21 ms | 401 KiB | 5 Q