3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $uri = "http://fashion/ru/items/2?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 preg_match('/^[^&page=](*)$/', $url, $matches); $gp = (isset($matches[2])) ? $matches[2] : ''; return $gp; } echo ggp($uri); echo 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)
8.3.60.0040.01118.80
8.3.50.0240.00422.17
8.3.40.0120.00319.21
8.3.30.0040.01119.09
8.3.20.0070.00020.34
8.3.10.0000.00821.96
8.3.00.0090.00022.57
8.2.180.0030.01216.75
8.2.170.0120.00322.96
8.2.160.0070.01421.19
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0090.00926.16
8.2.120.0050.00319.61
8.2.110.0050.00522.24
8.2.100.0000.01418.09
8.2.90.0080.00019.20
8.2.80.0030.00617.97
8.2.70.0030.00517.88
8.2.60.0000.00818.03
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0040.00418.17
8.2.20.0080.00017.88
8.2.10.0040.00417.76
8.2.00.0050.00317.73
8.1.280.0110.00425.92
8.1.270.0000.00922.10
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0150.00623.87
8.1.230.0090.00619.08
8.1.220.0040.00417.77
8.1.210.0000.00918.77
8.1.200.0110.00017.35
8.1.190.0040.00417.41
8.1.180.0050.00318.60
8.1.170.0090.00018.71
8.1.160.0000.00721.97
8.1.150.0040.00418.70
8.1.140.0020.00517.48
8.1.130.0070.00017.82
8.1.120.0040.00317.43
8.1.110.0030.00617.44
8.1.100.0000.00717.59
8.1.90.0030.00417.58
8.1.80.0000.00717.48
8.1.70.0070.00017.46
8.1.60.0000.00917.79
8.1.50.0000.00717.72
8.1.40.0060.00317.73
8.1.30.0050.00317.63
8.1.20.0000.00817.65
8.1.10.0000.00917.65
8.1.00.0050.00317.66
8.0.300.0000.00818.77
8.0.290.0040.00417.30
8.0.280.0030.00318.49
8.0.270.0000.00717.26
8.0.260.0000.00617.05
8.0.250.0030.00317.21
8.0.240.0040.00417.17
8.0.230.0000.00716.98
8.0.220.0040.00416.95
8.0.210.0000.00716.99
8.0.200.0000.00717.08
8.0.190.0070.00017.01
8.0.180.0040.00417.07
8.0.170.0050.00317.12
8.0.160.0030.00517.05
8.0.150.0000.00717.01
8.0.140.0070.00017.06
8.0.130.0000.00613.44
8.0.120.0040.00417.02
8.0.110.0040.00417.11
8.0.100.0000.00716.85
8.0.90.0050.00216.91
8.0.80.0120.01217.03
8.0.70.0040.00417.08
8.0.60.0000.00717.13
8.0.50.0000.00716.91
8.0.30.0130.00817.33
8.0.20.0080.01117.50
8.0.10.0000.00817.08
8.0.00.0090.01016.81
7.4.330.0020.00215.00
7.4.320.0000.00616.75
7.4.300.0030.00316.66
7.4.290.0000.00716.83
7.4.280.0030.00316.87
7.4.270.0030.00516.79
7.4.260.0040.00416.68
7.4.250.0030.00516.77
7.4.240.0030.00516.83
7.4.230.0030.00316.93
7.4.220.0130.00316.85
7.4.210.0080.00816.80
7.4.200.0070.00016.92
7.4.190.0000.00716.90
7.4.160.0100.00716.75
7.4.150.0090.00917.40
7.4.140.0060.01417.86
7.4.130.0070.01016.68
7.4.120.0110.00916.63
7.4.110.0030.01416.87
7.4.100.0130.00816.74
7.4.90.0090.00916.76
7.4.80.0170.00619.39
7.4.70.0150.00616.82
7.4.60.0110.00816.56
7.4.50.0060.00316.75
7.4.40.0000.01122.77
7.4.30.0180.00616.78
7.4.00.0090.00915.32
7.3.330.0030.00313.49
7.3.320.0040.00313.34
7.3.310.0070.00016.63
7.3.300.0030.00316.59
7.3.290.0040.01616.45
7.3.280.0070.00916.53
7.3.270.0070.01017.40
7.3.260.0130.00416.46
7.3.250.0120.00816.64
7.3.240.0090.00916.51
7.3.230.0170.00016.59
7.3.210.0080.00816.53
7.3.200.0060.01219.39
7.3.190.0090.01216.70
7.3.180.0060.00916.68
7.3.170.0060.01216.60
7.3.160.0130.00316.43
7.3.120.0040.01015.05
7.3.110.0030.01315.10
7.3.100.0090.00615.11
7.3.90.0030.01015.04
7.3.80.0060.00715.27
7.3.70.0090.00314.87
7.3.60.0120.00315.00
7.3.50.0020.00815.00
7.3.40.0060.00614.90
7.3.30.0110.00314.89
7.3.20.0070.00616.85
7.3.10.0020.01216.81
7.3.00.0070.00616.75
7.2.330.0030.01416.79
7.2.320.0100.01416.94
7.2.310.0160.00016.82
7.2.300.0100.00716.77
7.2.290.0070.01016.83
7.2.250.0060.01115.19
7.2.240.0120.00815.18
7.2.230.0050.00815.32
7.2.220.0050.00715.19
7.2.210.0080.00515.45
7.2.200.0090.00715.30
7.2.190.0080.00615.13
7.2.180.0070.00815.18
7.2.170.0020.01115.23
7.2.00.0060.00819.73
7.1.330.0090.00516.00
7.1.320.0060.00516.06
7.1.310.0030.00916.14
7.1.300.0060.00715.98
7.1.290.0080.00315.97
7.1.280.0050.00816.00
7.1.270.0060.00716.00
7.1.260.0080.00715.83
7.1.100.0080.00318.07
7.1.70.0000.01117.44
7.1.60.0170.00719.82
7.1.50.0070.01517.23
7.1.00.0000.08022.29
7.0.200.0000.01316.65
7.0.140.0030.07322.04
7.0.100.0030.04719.98
7.0.90.0030.07019.91
7.0.80.0030.04019.82
7.0.70.0030.06020.05
7.0.60.0130.07720.07
7.0.50.0000.04320.25
7.0.40.0130.03320.04
7.0.30.0130.07320.08
7.0.20.0000.04720.10
7.0.10.0030.06720.09
7.0.00.0100.03720.18
5.6.280.0070.07021.05
5.6.250.0030.08720.54
5.6.240.0130.07320.52
5.6.230.0000.04720.68
5.6.220.0100.03720.58
5.6.210.0070.03720.66
5.6.200.0070.04721.02
5.6.190.0070.04020.96
5.6.180.0000.04321.09
5.6.170.0170.05721.14
5.6.160.0100.05021.04
5.6.150.0030.04321.09
5.6.140.0070.04021.02
5.6.130.0030.04720.96
5.6.120.0000.04721.05
5.6.110.0000.04720.96
5.6.100.0000.04721.05
5.6.90.0030.04321.00
5.6.80.0070.03720.43
5.6.70.0130.07320.39
5.6.60.0030.04320.41
5.6.50.0030.05020.51
5.6.40.0030.06320.44
5.6.30.0030.04020.39
5.6.20.0000.06020.49
5.6.10.0070.03020.53
5.6.00.0000.06320.52
5.5.380.0070.05020.36
5.5.370.0030.04020.36
5.5.360.0030.05320.42
5.5.350.0030.04320.37
5.5.340.0000.04720.73
5.5.330.0070.04320.78
5.5.320.0030.04320.94
5.5.310.0030.05020.83
5.5.300.0030.05320.84
5.5.290.0030.04020.89
5.5.280.0100.03720.79
5.5.270.0070.04320.88
5.5.260.0070.04020.74
5.5.250.0000.04320.74
5.5.240.0000.04320.30
5.5.230.0070.03720.26
5.5.220.0070.03720.14
5.5.210.0030.04020.21
5.5.200.0100.03320.26
5.5.190.0070.04320.15
5.5.180.0070.03720.14
5.5.160.0000.04720.18
5.5.150.0100.07320.26
5.5.140.0030.05019.96
5.5.130.0070.07320.15
5.5.120.0000.07720.25
5.5.110.0070.08320.08
5.5.100.0130.07720.11
5.5.90.0030.07720.08
5.5.80.0170.06720.11
5.5.70.0130.07320.04
5.5.60.0130.04320.11
5.5.50.0200.03320.06
5.5.40.0070.07720.15
5.5.30.0100.06320.09
5.5.20.0130.07720.05
5.5.10.0070.07020.06
5.5.00.0070.07720.00
5.4.450.0100.03319.38
5.4.440.0100.05319.42
5.4.430.0030.04319.50
5.4.420.0030.04019.45
5.4.410.0070.03319.38
5.4.400.0000.03719.16
5.4.390.0030.04019.05
5.4.380.0030.07019.14
5.4.370.0070.03319.03
5.4.360.0000.04019.09
5.4.350.0000.04019.18
5.4.340.0030.03018.84
5.4.320.0030.05318.85
5.4.310.0070.04319.21
5.4.300.0100.05318.94
5.4.290.0000.05719.02
5.4.280.0030.04019.09
5.4.270.0170.05319.16
5.4.260.0030.08019.15
5.4.250.0030.08018.94
5.4.240.0130.07719.02
5.4.230.0000.08319.18
5.4.220.0030.05019.08
5.4.210.0070.07719.18
5.4.200.0030.06318.87
5.4.190.0100.04018.89
5.4.180.0070.06319.03
5.4.170.0000.08319.15
5.4.160.0130.06019.02
5.4.150.0100.07719.07
5.4.140.0170.05716.50
5.4.130.0030.07716.49
5.4.120.0070.07316.51
5.4.110.0100.07316.42
5.4.100.0130.03716.34
5.4.90.0130.06716.42
5.4.80.0100.07016.36
5.4.70.0070.07316.50
5.4.60.0130.07016.45
5.4.50.0030.07016.29
5.4.40.0030.07716.38
5.4.30.0070.04316.36
5.4.20.0070.07316.46
5.4.10.0100.07316.29
5.4.00.0070.07015.78
5.3.290.0070.03714.80
5.3.280.0070.07314.74
5.3.270.0000.09014.63
5.3.260.0000.04714.61
5.3.250.0000.04714.67
5.3.240.0030.07714.56
5.3.230.0170.06314.59
5.3.220.0130.06714.49
5.3.210.0070.06714.64
5.3.200.0070.07314.55
5.3.190.0070.04714.63
5.3.180.0130.03714.49
5.3.170.0000.07714.55
5.3.160.0070.07714.59
5.3.150.0100.03714.59
5.3.140.0070.09714.70
5.3.130.0130.06314.61
5.3.120.0070.07314.67
5.3.110.0130.07014.50
5.3.100.0100.07014.16
5.3.90.0100.07014.05
5.3.80.0100.07314.14
5.3.70.0070.05314.16
5.3.60.0030.05013.89
5.3.50.0130.05013.84
5.3.40.0070.07014.07
5.3.30.0100.07013.92
5.3.20.0100.04013.76
5.3.10.0030.07313.72
5.3.00.0070.06713.75
5.2.170.0070.02711.56
5.2.160.0070.03311.56
5.2.150.0100.06011.56
5.2.140.0070.05011.56
5.2.130.0030.03311.56
5.2.120.0070.06011.56
5.2.110.0070.05011.56
5.2.100.0070.05711.56
5.2.90.0030.05711.56
5.2.80.0000.06711.56
5.2.70.0070.06011.56
5.2.60.0070.06711.56
5.2.50.0070.04011.56
5.2.40.0030.06311.56
5.2.30.0100.05711.56
5.2.20.0170.04311.56
5.2.10.0130.05011.56
5.2.00.0100.04711.56
5.1.60.0030.05311.56
5.1.50.0030.04711.56
5.1.40.0000.05011.56
5.1.30.0070.06011.56
5.1.20.0070.05311.56
5.1.10.0070.04711.56
5.1.00.0070.05311.56
5.0.50.0030.04711.56
5.0.40.0070.04011.56
5.0.30.0070.06011.56
5.0.20.0000.02711.56
5.0.10.0070.04311.56
5.0.00.0030.03311.56
4.4.90.0030.03711.56
4.4.80.0030.03311.56
4.4.70.0030.03711.56
4.4.60.0000.03711.56
4.4.50.0000.02011.56
4.4.40.0130.04311.56
4.4.30.0070.03011.56
4.4.20.0000.03011.56
4.4.10.0070.03011.56
4.4.00.0000.04711.56
4.3.110.0030.03311.56
4.3.100.0030.03311.56
4.3.90.0000.03311.56
4.3.80.0030.04011.56
4.3.70.0030.03311.56
4.3.60.0070.03011.56
4.3.50.0000.03011.56
4.3.40.0000.05711.56
4.3.30.0000.03711.56
4.3.20.0100.02711.56
4.3.10.0000.03011.56
4.3.00.0070.02711.56

preferences:
48.16 ms | 401 KiB | 5 Q