3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array ( 'apple' => 'some code', 'beta' => 'other code', 'cat' => 'other code 2' ); $next_array = array(); foreach ($array as $key=>$val){ $next_array[str_replace('e','!',$key)] = $val; } print_r($next_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.5.30.0080.00919.27
8.5.20.0110.01018.69
8.5.10.0120.00516.62
8.5.00.0120.01119.71
8.4.180.0130.00820.73
8.4.170.0120.01020.51
8.4.160.0120.01021.53
8.4.150.0010.00014.05
8.4.140.0150.00617.52
8.4.130.0100.00317.55
8.4.120.0110.00920.52
8.4.110.0090.00822.18
8.4.100.0040.00517.59
8.4.90.0120.00917.90
8.4.80.0140.00517.74
8.4.70.0090.00920.52
8.4.60.0110.01018.77
8.4.50.0110.00618.48
8.4.40.0100.01017.46
8.4.30.0130.00618.82
8.4.20.0130.00717.68
8.4.10.0100.01019.48
8.3.300.0110.01118.43
8.3.290.0080.01220.59
8.3.280.0130.00618.38
8.3.270.0130.00716.54
8.3.260.0130.00616.68
8.3.250.0110.00818.85
8.3.240.0140.00720.68
8.3.230.0110.00816.48
8.3.220.0060.00216.70
8.3.210.0100.01118.40
8.3.200.0050.00616.73
8.3.190.0110.00917.02
8.3.180.0090.01017.03
8.3.170.0070.01120.64
8.3.160.0110.00717.02
8.3.150.0080.00020.53
8.3.140.0040.00417.41
8.3.130.0030.00618.50
8.3.120.0000.00820.84
8.3.110.0000.01020.94
8.3.100.0000.00824.06
8.3.90.0040.00426.77
8.3.80.0060.00317.97
8.3.70.0150.00318.45
8.3.60.0120.00618.36
8.3.50.0110.01116.48
8.3.40.0160.00321.69
8.3.30.0070.00719.09
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0080.00026.16
8.2.300.0110.00922.34
8.2.290.0090.00722.05
8.2.280.0100.00718.20
8.2.270.0140.00417.05
8.2.260.0040.00418.92
8.2.250.0040.00418.32
8.2.240.0060.00319.02
8.2.230.0030.00522.58
8.2.220.0080.00037.54
8.2.210.0070.01026.77
8.2.200.0060.00316.63
8.2.190.0120.00316.63
8.2.180.0070.01016.48
8.2.170.0090.00618.96
8.2.160.0000.01422.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0040.00421.13
8.2.110.0070.00321.18
8.2.100.0250.01018.44
8.2.90.0280.00318.44
8.2.80.0280.00318.44
8.2.70.0190.01118.44
8.2.60.0210.00818.44
8.2.50.0230.00718.44
8.2.40.0210.00618.44
8.2.30.0270.00018.44
8.2.20.0210.00618.44
8.2.10.0200.00618.44
8.2.00.0160.01018.44
8.1.340.0100.01017.59
8.1.330.0110.00621.81
8.1.320.0120.00616.01
8.1.310.0080.00018.33
8.1.300.0030.00617.68
8.1.290.0040.00830.84
8.1.280.0090.00925.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0030.01328.09
8.1.240.0090.00023.96
8.1.230.0180.00918.44
8.1.220.0200.00818.44
8.1.210.0320.00018.44
8.1.200.0290.00818.44
8.1.190.0310.00618.44
8.1.180.0250.00518.44
8.1.170.0200.00718.44
8.1.160.0180.00918.44
8.1.150.0220.00618.44
8.1.140.0210.00718.44
8.1.130.0160.01218.44
8.1.120.0270.00018.44
8.1.110.0250.00518.44
8.1.100.0230.00618.44
8.1.90.0250.00418.44
8.1.80.0220.00418.44
8.1.70.0210.00618.44
8.1.60.0230.00418.44
8.1.50.0180.00718.44
8.1.40.0100.01418.44
8.1.30.0210.00618.44
8.1.20.0210.00618.44
8.1.10.0150.01118.44
8.1.00.0160.00818.44
8.0.300.0160.00518.44
8.0.290.0180.00918.44
8.0.280.0240.00418.44
8.0.270.0210.00818.44
8.0.260.0270.00018.44
8.0.250.0230.00318.44
8.0.240.0220.00418.44
8.0.230.0230.00418.44
8.0.220.0270.00018.44
8.0.210.0140.01318.44
8.0.200.0230.00518.44
8.0.190.0210.00818.44
8.0.180.0310.00318.44
8.0.170.0240.01018.44
8.0.160.0230.00618.44
8.0.150.0150.00718.44
8.0.140.0220.00718.44
8.0.130.0210.00518.44
8.0.120.0290.00218.44
8.0.110.0270.00018.44
8.0.100.0300.00018.44
8.0.90.0180.01118.44
8.0.80.0170.00818.44
8.0.70.0240.00318.44
8.0.60.0170.00918.44
8.0.50.0240.00318.44
8.0.30.0220.00318.44
8.0.20.0190.00718.44
8.0.10.0190.00618.44
7.4.330.0210.00516.31

preferences:
50.83 ms | 1113 KiB | 5 Q