3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array ( 0 => array ( 'one' => 'A {bad} thing.', 'two' => 'So far so {bad}.', ), 1 => array ( 'one' => 'A {bad} thing, bis.', 'two' => 'So far so {bad}, bis.', ), ); $b = str_replace('{bad}', 'good', $a); echo '$b = '; var_export($b); echo ';', "\n";
based on ED1hB

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.0.00.0090.01016.64
7.4.140.0110.00817.86
7.4.130.0110.00716.36
7.4.120.0070.01216.49
7.4.110.0000.01616.45
7.4.100.0100.00716.27
7.4.90.0080.00816.44
7.4.80.0120.01419.39
7.4.70.0120.00616.42
7.4.60.0130.00316.43
7.4.50.0090.00916.38
7.4.40.0110.00616.32
7.4.30.0060.01016.31
7.4.00.0060.01114.82
7.3.260.0090.00916.23
7.3.250.0100.01116.30
7.3.240.0090.01016.29
7.3.230.0110.00716.41
7.3.210.0090.01016.37
7.3.200.0120.00316.44
7.3.190.0120.00316.29
7.3.180.0120.00616.16
7.3.170.0090.00616.33
7.3.160.0030.01416.30
7.3.120.0030.01414.86
7.3.110.0090.00614.87
7.3.100.0000.01814.99
7.3.90.0000.01414.54
7.3.80.0080.00814.31
7.3.70.0040.00814.78
7.3.60.0000.00814.76
7.3.50.0120.00614.70
7.3.40.0100.00314.74
7.3.30.0090.00314.79
7.3.20.0040.00816.49
7.3.10.0140.00316.39
7.3.00.0030.01216.43
7.2.330.0090.00916.38
7.2.320.0170.00716.53
7.2.310.0160.00316.74
7.2.300.0100.01316.63
7.2.290.0100.01016.36
7.2.250.0070.01014.91
7.2.240.0060.01214.96
7.2.230.0040.00814.89
7.2.220.0030.01015.15
7.2.210.0070.01015.15
7.2.200.0060.00614.93
7.2.190.0100.00314.85
7.2.180.0080.00814.97
7.2.170.0040.00815.00
7.2.160.0070.00714.95
7.2.150.0060.00616.65
7.2.140.0130.00016.79
7.2.130.0040.00716.81
7.2.120.0080.00816.93
7.2.110.0070.00716.86
7.2.100.0060.00916.87
7.2.90.0060.00316.64
7.2.80.0080.00416.95
7.2.70.0080.00816.87
7.2.60.0060.00916.70
7.2.50.0040.01516.69
7.2.40.0070.00716.96
7.2.30.0000.01717.07
7.2.20.0030.01216.58
7.2.10.0170.01017.30
7.2.00.0150.00817.49
7.1.330.0060.01015.79
7.1.320.0060.00315.55
7.1.310.0040.00815.55
7.1.300.0030.01015.68
7.1.290.0030.01215.61
7.1.280.0040.01515.78
7.1.270.0000.01015.39
7.1.260.0040.01215.80
7.1.250.0000.01015.49
7.1.240.0030.00715.74
7.1.230.0090.00015.68
7.1.220.0090.00615.61
7.1.210.0030.01315.77
7.1.200.0060.00615.72
7.1.190.0070.01015.82
7.1.180.0100.00715.45
7.1.170.0090.00615.68
7.1.160.0100.00615.79
7.1.150.0080.00815.68
7.1.140.0080.00315.44
7.1.130.0160.00716.17
7.1.120.0120.01316.11
7.1.110.0500.01115.77
7.1.100.0150.01515.88
7.1.90.0260.00216.04
7.1.80.0180.00815.80
7.1.70.0240.00515.49
7.1.60.0220.01224.16
7.1.50.0350.00524.04
7.1.40.0210.01123.96
7.1.30.0240.01624.18
7.1.20.0280.01424.05
7.1.10.0160.00615.19
7.1.00.0180.00615.25
7.0.330.0060.00315.36
7.0.320.0090.00315.26
7.0.310.0030.00615.42
7.0.300.0070.00715.43
7.0.290.0090.00615.32
7.0.280.0030.01015.12
7.0.270.0130.01215.61
7.0.260.0130.01215.86
7.0.250.0220.00715.45
7.0.240.0170.00615.58
7.0.230.0170.01015.56
7.0.220.0160.01015.51
7.0.210.0160.00715.15
7.0.200.0180.01015.12
7.0.190.0240.00815.04
7.0.180.0170.01414.84
7.0.170.0230.01114.89
7.0.160.0210.01014.96
7.0.150.0220.00714.94
7.0.140.0150.00814.73
7.0.130.0170.00615.00
7.0.120.0180.00614.97
7.0.110.0130.01014.73
7.0.100.0150.00914.85
7.0.90.0160.00714.79
7.0.80.0140.01114.87
7.0.70.0220.00314.97
7.0.60.0090.01114.68
7.0.50.0150.00814.99
7.0.40.0090.01013.93
7.0.30.0170.00514.15
7.0.20.0090.01114.07
7.0.10.0160.01213.88
7.0.00.0160.00913.91
5.6.400.0070.00714.56
5.6.390.0060.00614.12
5.6.380.0040.01114.24
5.6.370.0070.01014.61
5.6.360.0060.00314.33
5.6.350.0140.00014.27
5.6.340.0100.00314.14
5.6.330.0040.01114.10
5.6.320.0030.01313.95
5.6.310.0120.00614.48
5.6.300.0170.03417.53
5.6.290.0120.02817.52
5.6.280.0110.02817.74
5.6.270.0100.03417.65
5.6.260.0140.02817.61
5.6.250.0100.03117.77
5.6.240.0130.03017.79
5.6.230.0180.03517.58
5.6.220.0080.03317.42
5.6.210.0070.03517.37
5.6.200.0090.03317.52
5.6.190.0130.03317.69
5.6.180.0100.04117.47
5.6.170.0080.03717.50
5.6.160.0060.03617.60
5.6.150.0110.04517.47
5.6.140.0190.02617.56
5.6.130.0130.03217.54
5.6.120.0080.03417.57
5.6.110.0050.03617.61
5.6.100.0080.03517.63
5.6.90.0120.03217.45
5.6.80.0110.02817.07
5.6.70.0070.03317.27
5.6.60.0050.03717.27
5.6.50.0080.03317.21
5.6.40.0090.03017.33
5.6.30.0090.03117.21
5.6.20.0080.03517.28
5.6.10.0130.02417.18
5.6.00.0070.04517.07
5.5.380.0100.05417.39
5.5.370.0070.07317.42
5.5.360.0070.05817.43
5.5.350.0140.05617.39
5.5.340.0130.05617.95
5.5.330.0030.06117.96
5.5.320.0270.04717.78
5.5.310.0130.07817.77
5.5.300.0200.05017.96
5.5.290.0130.07017.87
5.5.280.0030.06217.78
5.5.270.0130.05317.95
5.5.260.0100.08317.92
5.5.250.0170.07417.74
5.5.240.0210.05317.18
5.5.230.0060.06117.31
5.5.220.0100.05317.41
5.5.210.0100.05517.35
5.5.200.0030.05817.15
5.5.190.0120.05617.09
5.5.180.0130.05417.34
5.5.160.0140.06917.41
5.5.150.0170.05017.09
5.5.140.0100.08117.12
5.5.130.0160.04917.31
5.5.120.0190.06417.12
5.5.110.0100.05317.28
5.5.100.0160.05317.32
5.5.90.0140.06617.25
5.5.80.0030.07217.30
5.5.70.0170.04517.21
5.5.60.0170.05417.31
5.5.50.0100.07917.21
5.5.40.0140.05117.33
5.5.30.0100.05817.19
5.5.20.0070.07617.20
5.5.10.0160.08017.30
5.5.00.0030.06416.94
5.4.450.0070.07219.32
5.4.440.0140.05219.50
5.4.430.0000.06319.31
5.4.420.0130.05319.41
5.4.410.0130.05519.21
5.4.400.0160.05218.86
5.4.390.0070.06019.00
5.4.380.0070.05618.95
5.4.370.0130.04618.99
5.4.360.0160.04618.92
5.4.350.0170.04719.00
5.4.340.0060.06019.00
5.4.320.0100.07619.05
5.4.310.0160.04819.06
5.4.300.0030.07619.09
5.4.290.0300.04319.04
5.4.280.0100.07819.17
5.4.270.0170.05818.88
5.4.260.0130.04919.19
5.4.250.0170.06118.94
5.4.240.0130.05419.01
5.4.230.0100.05319.00
5.4.220.0070.06718.98
5.4.210.0160.05719.00
5.4.200.0160.05519.06
5.4.190.0130.06719.07
5.4.180.0160.06519.07
5.4.170.0100.05618.91
5.4.160.0170.04719.00
5.4.150.0260.04018.97
5.4.140.0180.04816.33
5.4.130.0060.05416.32
5.4.120.0160.05916.63
5.4.110.0140.04916.65
5.4.100.0030.05616.52
5.4.90.0060.05516.51
5.4.80.0060.06116.50
5.4.70.0100.05616.62
5.4.60.0070.05216.52
5.4.50.0240.05816.54
5.4.40.0070.06716.62
5.4.30.0100.06116.60
5.4.20.0130.04716.49
5.4.10.0070.05216.33
5.4.00.0030.05515.99
5.3.290.0230.05914.66
5.3.280.0130.04914.79
5.3.270.0100.05414.53
5.3.260.0200.06514.77
5.3.250.0130.05214.77
5.3.240.0170.04714.74
5.3.230.0130.04714.52
5.3.220.0070.07014.71
5.3.210.0200.05014.76
5.3.200.0060.05714.55
5.3.190.0130.05114.70
5.3.180.0100.05214.49
5.3.170.0100.04914.65
5.3.160.0230.05714.54
5.3.150.0120.06214.55
5.3.140.0070.06014.44
5.3.130.0100.06814.64
5.3.120.0130.07214.70
5.3.110.0190.04214.53
5.3.100.0110.05514.09
5.3.90.0030.05514.13
5.3.80.0070.05214.19
5.3.70.0100.06014.10
5.3.60.0030.05514.07
5.3.50.0130.04513.93
5.3.40.0200.04414.04
5.3.30.0130.04313.72
5.3.20.0060.05313.76
5.3.10.0130.04213.76
5.3.00.0030.05813.63
5.2.170.0100.04111.26
5.2.160.0100.03911.18
5.2.150.0160.03511.39
5.2.140.0100.04411.19
5.2.130.0100.03911.23
5.2.120.0030.04211.02
5.2.110.0120.03711.02
5.2.100.0070.04111.31
5.2.90.0090.03810.91
5.2.80.0100.04211.23
5.2.70.0030.04811.07
5.2.60.0060.04211.27
5.2.50.0160.03911.16
5.2.40.0060.04510.98
5.2.30.0070.03910.95
5.2.20.0060.03911.20
5.2.10.0070.03810.87
5.2.00.0090.04010.96
5.1.60.0070.03210.22
5.1.50.0060.03610.22
5.1.40.0100.0459.96
5.1.30.0070.03410.38
5.1.20.0030.05610.47
5.1.10.0030.03910.21
5.1.00.0130.03210.25
5.0.50.0030.0319.35
5.0.40.0100.0229.35
5.0.30.0030.0439.35
5.0.20.0090.0249.35
5.0.10.0030.0299.35
5.0.00.0100.0409.35
4.4.90.0030.0259.35
4.4.80.0070.0209.35
4.4.70.0000.0269.35
4.4.60.0060.0199.35
4.4.50.0060.0199.35
4.4.40.0030.0479.35
4.4.30.0120.0229.35
4.4.20.0030.0319.35
4.4.10.0030.0229.35
4.4.00.0060.0349.35
4.3.110.0060.0199.35
4.3.100.0030.0219.35
4.3.90.0070.0189.35
4.3.80.0060.0329.35
4.3.70.0030.0219.35
4.3.60.0070.0189.35
4.3.50.0060.0219.35
4.3.40.0070.0399.35
4.3.30.0030.0239.35
4.3.20.0060.0269.35
4.3.10.0060.0229.35
4.3.00.0000.0249.35