3v4l.org

run code in 300+ PHP versions simultaneously
<?php $String = "{{ONE}} {{TWO}} {{THREE}} {{FOUR}} {{FIVE}} {{SIX}}"; $rows = array(array('linkVal' => '{{TWO}}', 'link' => 'http://one.com'), array('linkVal' => '{{FOUR}}', 'link' => 'http://two.com') ); echo str_replace(array_column($rows, 'linkVal'), array_column($rows, 'link'), $String);

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.10.0110.01116.68
8.5.00.0090.01119.78
8.4.150.0020.00014.05
8.4.140.0150.00717.70
8.4.130.0090.00417.74
8.4.120.0090.00520.80
8.4.110.0110.01022.41
8.4.100.0140.00817.77
8.4.90.0120.00818.65
8.4.80.0140.00617.68
8.4.70.0060.00217.83
8.4.60.0120.00619.07
8.4.50.0110.01019.50
8.4.40.0050.00319.32
8.4.30.0080.01120.33
8.4.20.0070.01120.62
8.4.10.0090.00019.39
8.3.280.0090.01318.43
8.3.270.0120.00716.52
8.3.260.0080.01116.39
8.3.250.0140.00418.67
8.3.240.0060.00316.37
8.3.230.0100.00816.32
8.3.220.0100.00917.10
8.3.210.0100.00616.64
8.3.200.0050.00416.57
8.3.190.0150.00317.26
8.3.180.0100.01016.61
8.3.170.0140.00018.86
8.3.160.0110.00718.14
8.3.150.0140.00420.80
8.3.140.0180.00016.72
8.3.130.0100.00618.96
8.3.120.0120.00618.76
8.3.110.0000.00916.29
8.3.100.0090.00016.66
8.3.90.0000.00726.77
8.3.80.0100.00316.62
8.3.70.0160.00616.75
8.3.60.0030.01318.02
8.3.50.0100.01016.33
8.3.40.0150.00018.49
8.3.30.0040.01118.67
8.3.20.0070.00320.49
8.3.10.0040.00419.11
8.3.00.0040.00421.77
8.2.290.0030.00522.27
8.2.280.0060.00218.44
8.2.270.0040.01417.09
8.2.260.0110.00718.63
8.2.250.0030.00616.70
8.2.240.0060.00316.79
8.2.230.0030.01520.94
8.2.220.0000.00824.06
8.2.210.0040.00426.77
8.2.200.0030.00618.16
8.2.190.0070.01416.63
8.2.180.0070.01525.92
8.2.170.0120.00922.96
8.2.160.0070.00720.39
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0100.00326.16
8.2.120.0070.00026.16
8.2.110.0040.00422.07
8.2.100.0090.00317.91
8.2.90.0060.00318.03
8.2.80.0030.00517.97
8.2.70.0030.00617.93
8.2.60.0000.00818.22
8.2.50.0000.01018.10
8.2.40.0060.00319.47
8.2.30.0000.00719.24
8.2.20.0040.00418.20
8.2.10.0000.00718.93
8.2.00.0000.00719.32
8.1.330.0000.00821.79
8.1.320.0100.00916.10
8.1.310.0030.00616.64
8.1.300.0080.00817.89
8.1.290.0060.00330.84
8.1.280.0070.01125.92
8.1.270.0040.00422.22
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00422.01
8.1.230.0070.00320.88
8.1.220.0050.00317.78
8.1.210.0080.00018.77
8.1.200.0060.00317.25
8.1.190.0000.00817.00
8.1.180.0100.00018.10
8.1.170.0090.00018.57
8.1.160.0030.00618.90
8.1.150.0040.00418.84
8.1.140.0000.00718.83
8.1.130.0050.00320.07
8.1.120.0000.00817.31
8.1.110.0030.00717.45
8.1.100.0040.00417.40
8.1.90.0000.01017.28
8.1.80.0070.00017.41
8.1.70.0030.00317.43
8.1.60.0040.00417.55
8.1.50.0060.00317.44
8.1.40.0030.00617.50
8.1.30.0070.00717.52
8.1.20.0040.00417.64
8.1.10.0000.00817.51
8.1.00.0040.00417.48
8.0.300.0040.00419.73
8.0.290.0000.00816.75
8.0.280.0000.00718.34
8.0.270.0030.00317.15
8.0.260.0000.00718.42
8.0.250.0030.00316.95
8.0.240.0050.00316.98
8.0.230.0000.00716.81
8.0.220.0070.00016.83
8.0.210.0070.00016.83
8.0.200.0030.00316.95
8.0.190.0030.00616.84
8.0.180.0040.00416.84
8.0.170.0030.00616.89
8.0.160.0000.01116.77
8.0.150.0050.00316.66
8.0.140.0000.00816.80
8.0.130.0030.00313.33
8.0.120.0070.00016.84
8.0.110.0000.00716.75
8.0.100.0050.00316.90
8.0.90.0000.00716.82
8.0.80.0060.00816.80
8.0.70.0050.00216.83
8.0.60.0030.00516.71
8.0.50.0000.00716.73
8.0.30.0090.00817.08
8.0.20.0090.00916.84
8.0.10.0040.00416.92
8.0.00.0110.00816.80
7.4.330.0000.00515.55
7.4.320.0030.00316.59
7.4.300.0030.00316.53
7.4.290.0020.00516.50
7.4.280.0070.00016.43
7.4.270.0040.00416.46
7.4.260.0040.00416.43
7.4.250.0000.00716.48
7.4.240.0050.00216.46
7.4.230.0040.00416.38
7.4.220.0040.00416.43
7.4.210.0090.00816.57
7.4.200.0040.00416.53
7.4.160.0080.01116.52
7.4.130.0160.00016.40
7.4.120.0030.01316.45
7.4.110.0130.00316.39
7.4.100.0060.01016.64
7.4.90.0100.00716.51
7.4.80.0070.01119.39
7.4.70.0150.00316.55
7.4.60.0060.01216.43
7.4.50.0030.01216.30
7.4.40.0060.01016.49
7.4.10.0110.00714.79
7.4.00.0060.01014.77
7.3.330.0060.00012.93
7.3.320.0050.00013.02
7.3.310.0040.00416.10
7.3.300.0030.00316.13
7.3.290.0030.00316.13
7.3.280.0150.00316.03
7.3.260.0120.00616.22
7.3.240.0100.00916.32
7.3.230.0100.00616.27
7.3.210.0120.00316.14
7.3.200.0000.01616.34
7.3.190.0110.01116.53
7.3.180.0040.01216.18
7.3.170.0080.00816.25
7.3.160.0070.01016.31
7.3.130.0030.01014.38
7.3.120.0070.01114.89
7.3.110.0060.01315.00
7.3.100.0070.01114.63
7.3.90.0000.00914.91
7.3.80.0090.00614.40
7.3.70.0060.00914.60
7.3.60.0040.00814.85
7.3.50.0050.01014.78
7.3.40.0030.00814.53
7.3.30.0090.00914.58
7.3.20.0540.00615.55
7.3.10.0140.00615.69
7.3.00.0120.00615.52
7.2.330.0100.01016.50
7.2.320.0030.01516.38
7.2.310.0030.01816.36
7.2.300.0100.00716.32
7.2.290.0060.00916.61
7.2.260.0100.01014.74
7.2.250.0100.01014.90
7.2.240.0070.00714.98
7.2.230.0040.01114.94
7.2.220.0040.00814.66
7.2.210.0090.00914.84
7.2.200.0060.00314.96
7.2.190.0110.00314.81
7.2.180.0060.00914.88
7.2.170.0030.01315.03
7.2.160.0090.00514.79
7.2.150.0120.00815.82
7.2.140.0110.00515.85
7.2.130.0100.00515.70
7.2.120.0050.01215.79
7.2.110.0080.01015.81
7.2.100.0050.01315.81
7.2.90.0080.00915.89
7.2.80.0060.00916.01
7.2.70.0080.01015.68
7.2.60.0100.00515.75
7.2.50.0090.00815.64
7.2.40.0090.00815.91
7.2.30.0060.00915.80
7.2.20.0090.00515.85
7.2.10.0150.00915.77
7.2.00.0110.00515.86
7.1.330.0040.00815.62
7.1.320.0040.01515.33
7.1.310.0030.00715.80
7.1.300.0040.01115.74
7.1.290.0070.00715.52
7.1.280.0070.00814.86
7.1.270.0080.00814.64
7.1.260.0090.00514.71
7.1.250.0150.00514.78
7.1.240.0060.00615.67
7.1.230.0040.01115.50
7.1.220.0000.01415.76
7.1.210.0080.00415.56
7.1.200.0070.00415.72
7.1.190.0000.01415.34
7.1.180.0000.01015.77
7.1.170.0080.00615.47
7.1.160.0000.01315.49
7.1.150.0060.00315.81
7.1.140.0070.00315.71
7.1.130.0030.00915.72
7.1.120.0070.00715.53
7.1.110.0090.00615.59
7.1.100.0070.00415.84
7.1.90.0070.00715.60
7.1.80.0100.00715.87
7.1.70.0070.00715.85
7.1.60.0030.00615.85
7.1.50.0060.00315.82
7.1.40.0060.00915.41
7.1.30.0100.00315.80
7.1.20.0070.00715.62
7.1.10.0070.00415.32
7.1.00.0110.00315.68

preferences:
147.41 ms | 403 KiB | 5 Q