3v4l.org

run code in 300+ PHP versions simultaneously
<?php function compileEchoes($value){ $value = preg_replace ('/\{\{\{\s*(.+?)\s*\}\}\}/s', '<?php echo $1; ?>', $value); return preg_replace ('/\{\{\s*(.+?)\s*\}\}/s', "<?php echo htmlentities($1, ENT_QUOTES, 'UTF-8', false); ?>", $value); } $unescaped = compileEchoes('{{{<strong>Is this bold?</strong>}}}'); echo "<strong>Is this bold?</strong>"; echo $unescaped; echo "\n"; $that = compileEchoes('{{<strong>Is this bold?</strong>}}'); echo $that; echo "\n"; echo htmlentities('<strong>Is this bold?</strong>', ENT_QUOTES, 'UTF-8', false); ?>

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.0120.00318.51
8.3.50.0110.01022.11
8.3.40.0120.00318.89
8.3.30.0060.01018.80
8.3.20.0070.00718.90
8.3.10.0050.00320.95
8.3.00.0040.00421.93
8.2.180.0150.00816.75
8.2.170.0110.00422.96
8.2.160.0100.00520.35
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0040.00421.23
8.2.110.0060.00320.46
8.2.100.0040.00817.91
8.2.90.0040.00419.04
8.2.80.0060.00317.97
8.2.70.0050.00317.63
8.2.60.0050.00317.93
8.2.50.0000.00818.07
8.2.40.0040.00418.03
8.2.30.0040.00421.37
8.2.20.0080.00017.85
8.2.10.0040.00417.80
8.2.00.0030.00517.71
8.1.280.0040.01125.92
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0090.00022.42
8.1.230.0030.00921.02
8.1.220.0060.00318.77
8.1.210.0080.00018.88
8.1.200.0030.00617.35
8.1.190.0000.00817.53
8.1.180.0000.00918.10
8.1.170.0080.00018.71
8.1.160.0000.00718.84
8.1.150.0040.00718.73
8.1.140.0080.00017.41
8.1.130.0000.00817.73
8.1.120.0040.00417.52
8.1.110.0050.00517.44
8.1.100.0050.00317.54
8.1.90.0050.00217.52
8.1.80.0000.00717.54
8.1.70.0000.00717.50
8.1.60.0060.00317.72
8.1.50.0040.00417.64
8.1.40.0030.00617.66
8.1.30.0030.00617.81
8.1.20.0030.00517.64
8.1.10.0070.00017.74
8.1.00.0070.00017.47
8.0.300.0070.00020.02
8.0.290.0030.00617.16
8.0.280.0000.00818.52
8.0.270.0040.00717.27
8.0.260.0030.00318.38
8.0.250.0000.00817.09
8.0.240.0040.00417.04
8.0.230.0040.00317.04
8.0.220.0030.00316.88
8.0.210.0000.00716.86
8.0.200.0030.00316.93
8.0.190.0000.00717.08
8.0.180.0070.00016.87
8.0.170.0070.00016.98
8.0.160.0050.00216.98
8.0.150.0040.00416.87
8.0.140.0080.00316.83
8.0.130.0060.00013.39
8.0.120.0030.00516.84
8.0.110.0040.00416.78
8.0.100.0050.00316.93
8.0.90.0050.00216.89
8.0.80.0160.00717.02
8.0.70.0030.00616.87
8.0.60.0000.00816.86
8.0.50.0030.00616.90
8.0.30.0080.01117.43
8.0.20.0120.01117.40
8.0.10.0000.00716.98
8.0.00.0070.01316.86
7.4.330.0050.00016.80
7.4.320.0030.00516.76
7.4.300.0030.00316.71
7.4.290.0070.00016.76
7.4.280.0000.00716.68
7.4.270.0000.00716.71
7.4.260.0000.00613.40
7.4.250.0000.00816.83
7.4.240.0040.00416.69
7.4.230.0000.00816.80
7.4.220.0070.01116.63
7.4.210.0080.00816.83
7.4.200.0000.00716.90
7.4.190.0050.00316.98
7.4.160.0090.00916.74
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0090.00916.79
7.4.120.0090.01016.78
7.4.110.0110.00616.72
7.4.100.0090.00916.71
7.4.90.0030.01616.46
7.4.80.0070.01119.39
7.4.70.0100.00616.54
7.4.60.0220.01316.72
7.4.50.0000.00416.54
7.4.40.0070.01022.77
7.4.30.0080.00816.70
7.4.00.0070.01015.32
7.3.330.0000.00513.37
7.3.320.0050.00013.29
7.3.310.0040.00416.27
7.3.300.0070.00016.36
7.3.290.0100.00616.43
7.3.280.0080.00816.43
7.3.270.0100.00717.40
7.3.260.0130.00818.24
7.3.250.0110.00716.70
7.3.240.0100.00716.56
7.3.230.0130.01016.84
7.3.210.0070.01416.52
7.3.200.0100.00919.39
7.3.190.0090.01216.58
7.3.180.0110.00516.86
7.3.170.0140.00416.54
7.3.160.0070.00716.52
7.3.120.0060.01215.00
7.2.330.0130.00416.76
7.2.320.0160.00616.74
7.2.310.0110.01116.67
7.2.300.0130.00916.96
7.2.290.0100.01016.85
7.2.60.0040.01416.78
7.2.00.0070.00719.63
7.1.200.0080.00415.72
7.1.100.0080.00818.02
7.1.70.0050.00217.42
7.1.60.0090.01519.40
7.1.50.0090.01317.11
7.1.00.0000.04022.56
7.0.200.0070.00316.68
7.0.140.0030.07321.97
7.0.60.0130.06019.89
7.0.50.0070.08317.99
7.0.40.0200.07320.26
7.0.30.0330.08020.27
7.0.20.0230.04720.22
7.0.10.0030.07720.09
7.0.00.0030.04020.25
5.6.280.0000.07720.78
5.6.210.0000.06320.77
5.6.200.0070.05318.20
5.6.190.0000.04320.47
5.6.180.0270.08020.39
5.6.170.0400.04720.40
5.6.160.0030.07020.39
5.6.150.0100.04318.19
5.6.140.0130.07318.19
5.6.130.0270.03718.18
5.6.120.0070.04721.02
5.6.110.0070.08321.11
5.6.100.0030.07721.01
5.6.90.0130.03721.07
5.6.80.0000.08320.41
5.5.350.0300.06020.44
5.5.340.0100.05718.09
5.5.330.0070.08020.26
5.5.320.0330.07020.19
5.5.310.0330.06020.42
5.5.300.0130.07317.92
5.5.290.0070.07317.97
5.5.280.0000.06320.80
5.5.270.0000.04320.65
5.5.260.0000.05320.80
5.5.250.0030.08320.69
5.5.240.0070.07320.28
5.4.450.0200.07019.32
5.4.440.0230.07019.39
5.4.430.0170.08719.41
5.4.420.0300.07019.18
5.4.410.0270.04019.18
5.4.400.0130.04718.97
5.4.390.0230.04718.98
5.4.380.0200.07319.23
5.4.370.0230.06319.32
5.4.360.0330.06318.95
5.4.350.0230.04719.31
5.4.340.0270.07019.24
5.4.320.0200.06319.09
5.4.310.0230.04718.86
5.4.300.0200.05719.31
5.4.290.0230.04719.24
5.4.280.0200.03719.08
5.4.270.0270.06019.09
5.4.260.0230.06719.13
5.4.250.0230.04719.22
5.4.240.0300.05319.08
5.4.230.0170.07018.95
5.4.220.0270.07318.86
5.4.210.0300.06719.08
5.4.200.0270.04318.94
5.4.190.0230.03719.21
5.4.180.0200.07019.13
5.4.170.0230.06719.19
5.4.160.0200.05319.13
5.4.150.0200.04018.83
5.4.140.0130.04016.73
5.4.130.0170.03316.40
5.4.120.0130.04016.44
5.4.110.0200.03716.24
5.4.100.0200.04016.46
5.4.90.0100.04016.59
5.4.80.0130.03316.59
5.4.70.0100.03716.38
5.4.60.0230.03316.56
5.4.50.0130.04316.49
5.4.40.0130.06016.43
5.4.30.0100.04016.59
5.4.20.0130.04016.52
5.4.10.0200.03016.54
5.4.00.0130.03315.96
5.3.290.0270.03714.59
5.3.280.0200.06014.47
5.3.270.0230.06014.71
5.3.260.0270.06314.63
5.3.250.0170.04014.52
5.3.240.0270.02714.61
5.3.230.0130.03714.71
5.3.220.0170.03314.57
5.3.210.0170.03714.65
5.3.200.0130.03714.61
5.3.190.0130.03714.65
5.3.180.0200.03014.78
5.3.170.0070.04714.55
5.3.160.0200.07014.69
5.3.150.0330.05014.61
5.3.140.0200.04014.55
5.3.130.0130.03714.46
5.3.120.0170.04314.54
5.3.110.0170.04314.62
5.3.100.0200.03714.00
5.3.90.0130.04013.93
5.3.80.0130.04313.92
5.3.70.0100.04014.18
5.3.60.0130.03314.08
5.3.50.0200.03013.92
5.3.40.0100.04013.96
5.3.30.0130.03713.84
5.3.20.0070.04013.77
5.3.10.0100.04313.67
5.3.00.0130.03713.75
5.2.170.0100.03313.03
5.2.160.0100.03313.03
5.2.150.0070.03313.03
5.2.140.0130.02713.03
5.2.130.0130.02713.03
5.2.120.0130.03013.03
5.2.110.0100.03013.03
5.2.100.0130.03013.03
5.2.90.0200.02713.03
5.2.80.0130.03013.03
5.2.70.0130.02713.03
5.2.60.0130.03013.03
5.2.50.0070.03313.03
5.2.40.0070.03013.03
5.2.30.0100.02713.03
5.2.20.0130.02313.03
5.2.10.0130.02313.03
5.2.00.0100.03313.03
5.1.60.0100.02313.03
5.1.50.0200.04713.03
5.1.40.0200.04313.03
5.1.30.0130.05013.03
5.1.20.0230.03313.03
5.1.10.0170.03313.03
5.1.00.0170.03313.03
5.0.50.0100.04713.03
5.0.40.0170.04013.03
5.0.30.0100.05013.03
5.0.20.0070.04313.03
5.0.10.0100.03713.03
5.0.00.0170.05713.03
4.4.90.0070.01313.03
4.4.80.0130.01013.03
4.4.70.0030.01713.03
4.4.60.0070.01713.03
4.4.50.0100.01013.03
4.4.40.0100.02713.03
4.4.30.0070.02013.03
4.4.20.0130.02013.03
4.4.10.0100.03713.03
4.4.00.0100.03713.03
4.3.110.0100.02713.03
4.3.100.0030.03013.03
4.3.90.0070.03713.03
4.3.80.0100.03713.03
4.3.70.0070.02313.03
4.3.60.0100.01713.03
4.3.50.0070.03713.03
4.3.40.0100.04013.03
4.3.30.0130.01313.03
4.3.20.0100.03013.03
4.3.10.0100.03313.03
4.3.00.0070.03013.03

preferences:
44.19 ms | 401 KiB | 5 Q