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); } $that = compileEchoes('{{<strong>Is this bold?</strong>}}'); echo $that; 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)
5.4.280.0080.06012.40
5.4.270.0070.05212.40
5.4.260.0050.05612.40
5.4.250.0110.06212.40
5.4.240.0120.05812.40
5.4.230.0060.06312.39
5.4.220.0120.05612.39
5.4.210.0130.06112.39
5.4.200.0070.05212.39
5.4.190.0090.05412.39
5.4.180.0150.07112.39
5.4.170.0090.04512.39
5.4.160.0070.04312.38
5.4.150.0120.04712.38
5.4.140.0070.04312.07
5.4.130.0070.03812.06
5.4.120.0080.04512.02
5.4.110.0080.04912.02
5.4.100.0080.04312.02
5.4.90.0090.04712.02
5.4.80.0100.05012.02
5.4.70.0070.05812.01
5.4.60.0140.04612.01
5.4.50.0080.04212.01
5.4.40.0100.04712.00
5.4.30.0070.04512.00
5.4.20.0110.06011.99
5.4.10.0110.05312.00
5.4.00.0060.04611.49
5.3.280.0070.04712.71
5.3.270.0040.05212.72
5.3.260.0160.10212.72
5.3.250.0100.04612.72
5.3.240.0070.06012.72
5.3.230.0130.05212.71
5.3.220.0130.05512.68
5.3.210.0080.04612.68
5.3.200.0070.03812.68
5.3.190.0070.04212.68
5.3.180.0100.03612.68
5.3.170.0090.04312.67
5.3.160.0060.04612.67
5.3.150.0100.04212.67
5.3.140.0050.04312.66
5.3.130.0070.04312.66
5.3.120.0110.05012.66
5.3.110.0070.04212.66
5.3.100.0080.03912.12
5.3.90.0090.04412.10
5.3.80.0110.05312.08
5.3.70.0070.04512.08
5.3.60.0070.04312.07
5.3.50.0070.04512.02
5.3.40.0060.04612.02
5.3.30.0090.04511.97
5.3.20.0070.04711.75
5.3.10.0080.04311.71
5.3.00.0070.04111.70

preferences:
136.26 ms | 1394 KiB | 7 Q