3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bigKml = "<Document><name>test2.kmz</name><br><img src='files/bagel.png'><br><br></Document>"; $imgPattern = "/<img src=.*?>/"; preg_match($imgPattern, $bigKml, $imageTags); print_r($imageTags); foreach($imageTags as $imageTag) { $urlPattern = "/'([^']*)'/"; preg_match($urlPattern, $imageTag, $oldUrls); $oldUrl = $oldUrls[1]; //the second element contains the match without the quotes print_r($oldUrl); $newUrl = "/var/www/resources/$oldUrl; } ?>

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.160.0140.04412.34
5.4.150.0150.04312.33
5.4.140.0200.05212.02
5.4.130.0140.04312.01
5.4.120.0210.05011.96
5.4.110.0230.06411.96
5.4.100.0140.04311.96
5.4.90.0240.06411.96
5.4.80.0140.04311.96
5.4.70.0170.03911.96
5.4.60.0110.04511.96
5.4.50.0150.04111.96
5.4.40.0190.03811.95
5.4.30.0120.04711.95
5.4.20.0140.05711.94
5.4.10.0180.05311.94
5.4.00.0140.04111.44
5.3.260.0180.04512.72
5.3.250.0070.03612.72
5.3.240.0150.04412.72
5.3.230.0150.04512.71
5.3.220.0130.04612.68
5.3.210.0150.04512.68
5.3.200.0290.06312.68
5.3.190.0210.07012.68
5.3.180.0150.04512.67
5.3.170.0190.07012.67
5.3.160.0130.04612.67
5.3.150.0150.04512.67
5.3.140.0150.04412.66
5.3.130.0170.05812.66
5.3.120.0180.04212.66
5.3.110.0160.06012.66
5.3.100.0160.07512.12
5.3.90.0150.04312.08
5.3.80.0130.04612.07
5.3.70.0140.04612.08
5.3.60.0100.04912.06
5.3.50.0130.04612.00
5.3.40.0310.09012.00
5.3.30.0160.04111.95
5.3.20.0140.04411.73
5.3.10.0150.04311.69
5.3.00.0190.04111.67

preferences:
138.3 ms | 1394 KiB | 7 Q