3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $uri = "?sort%5B%5D=1&str%5B%5D=4&curs%5B%5D=1&page=2&page=1&page=2&page=5&page=4&page=3&page=2&page=1&page=1&page=1&page=1&page=1&page=1&page=1&page=1&page=1&page=1&page=1&tesdsd=2"; function ggp($url) { // get GET-parameters string preg_match('/^([^?]+)(\?.*?)?(#.*)?$/', $url, $matches); $gp = (isset($matches[2])) ? $matches[2] : ''; return $gp; } function deleted($url) { // get GET-parameters string $res = preg_match("/([?&])$varname=.*?(?=&|#|\z)/", $url, $matches); return $res,$matches; } echo ggp($uri); echo"<br>"; var_dump(deleted($uri));

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.170.0150.04312.39
5.4.160.0160.04312.39
5.4.150.0150.04512.38
5.4.140.0160.04312.07
5.4.130.0230.06812.05
5.4.120.0150.04512.02
5.4.110.0160.04212.01
5.4.100.0180.05612.02
5.4.90.0100.04712.01
5.4.80.0160.04112.02
5.4.70.0150.04112.01
5.4.60.0150.04312.01
5.4.50.0180.03912.01
5.4.40.0180.05412.00
5.4.30.0130.04512.00
5.4.20.0160.04211.99
5.4.10.0210.05211.99
5.4.00.0160.05711.48
5.3.270.0210.04312.72
5.3.260.0140.04712.72
5.3.250.0160.04512.72
5.3.240.0160.04512.72
5.3.230.0160.04612.71
5.3.220.0140.04812.68
5.3.210.0190.04512.68
5.3.200.0210.04312.68
5.3.190.0150.04612.68
5.3.180.0250.06612.67
5.3.170.0180.05612.67
5.3.160.0170.04412.67
5.3.150.0160.04312.67
5.3.140.0170.04312.66
5.3.130.0270.06512.66
5.3.120.0180.04312.66
5.3.110.0120.04912.66
5.3.100.0160.04412.12
5.3.90.0160.04212.10
5.3.80.0230.05212.08
5.3.70.0200.06912.08
5.3.60.0170.04212.07
5.3.50.0180.04112.02
5.3.40.0230.05212.02
5.3.30.0170.04111.98
5.3.20.0150.04511.76
5.3.10.0270.06111.73
5.3.00.0140.04311.71

preferences:
143.08 ms | 1394 KiB | 7 Q