3v4l.org

run code in 300+ PHP versions simultaneously
<?php $valor = "João dos Santos Videira" echo preg_replace("/&([a-z])[a-z]+;/i", "$1", htmlentities($valor));

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.230.0120.04212.36
5.4.220.0100.04212.36
5.4.210.0090.04212.36
5.4.200.0200.06412.36
5.4.190.0110.03812.35
5.4.180.0100.04112.36
5.4.170.0110.03912.36
5.4.160.0090.04212.36
5.4.150.0180.06312.35
5.4.140.0120.04212.04
5.4.130.0120.04012.02
5.4.120.0190.06111.99
5.4.110.0120.03811.99
5.4.100.0100.03911.99
5.4.90.0240.07411.99
5.4.80.0110.03811.99
5.4.70.0090.04111.98
5.4.60.0140.03911.98
5.4.50.0100.04211.98
5.4.40.0090.04111.97
5.4.30.0100.04011.97
5.4.20.0100.04211.96
5.4.10.0100.03911.96
5.4.00.0090.04211.46
5.3.280.0170.06612.71
5.3.270.0100.04512.72
5.3.260.0120.04212.72
5.3.250.0130.04112.72
5.3.240.0190.06612.72
5.3.230.0090.04312.71
5.3.220.0110.04212.68
5.3.210.0210.06412.68
5.3.200.0110.03912.68
5.3.190.0140.04312.68
5.3.180.0110.05612.67
5.3.170.0120.04212.67
5.3.160.0090.04512.67
5.3.150.0130.03812.67
5.3.140.0100.04112.66
5.3.130.0160.05212.65
5.3.120.0130.03912.66
5.3.110.0130.03912.65
5.3.100.0110.03912.12
5.3.90.0100.04012.08
5.3.80.0100.04612.08
5.3.70.0110.04012.08
5.3.60.0120.04112.07
5.3.50.0100.04112.00

preferences:
144.62 ms | 1394 KiB | 7 Q