3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '"Andrea","andrea.salvai@miroglio.com",""'; $string = preg_replace('/.*(\,"")/', "{$1}", $string,1); echo $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)
7.0.20.0470.05720.08
7.0.10.0000.04720.07
7.0.00.0100.09020.08
5.6.170.0330.06320.44
5.6.160.0070.05720.57
5.6.150.0070.04718.15
5.6.140.0130.04018.11
5.6.130.0070.04018.18
5.6.120.0000.08721.05
5.6.110.0170.07720.98
5.6.100.0130.07021.04
5.6.90.0130.08020.88
5.6.80.0100.07320.50
5.5.310.0270.07020.26
5.5.300.0030.08717.96
5.5.290.0030.08718.02
5.5.280.0070.05020.73
5.5.270.0230.06320.77
5.5.260.0130.07320.97
5.5.250.0070.03720.65
5.5.240.0100.03720.23

preferences:
136.25 ms | 1394 KiB | 7 Q