3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); $url = 'https://localhost/api?field.filter=foo'; // Parse the URL. $parsed = parse_url($url); // Parse the query string. parse_str($parsed['query'], $parsed['query']); print_r($parsed);

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.0180.00416.38
8.3.50.0120.00316.46
8.3.40.0070.01420.48
8.3.30.0070.00718.58
8.3.20.0050.00324.18
8.3.10.0000.00824.66
8.3.00.0050.00326.16
8.2.180.0040.01125.92
8.2.170.0170.00318.79
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0070.00026.35
8.2.110.0110.00021.07
8.2.100.0080.00317.91
8.2.90.0000.01018.03
8.2.80.0080.00020.35
8.2.70.0030.00517.92
8.2.60.0000.00818.09
8.2.50.0050.00619.04
8.2.40.0000.00821.19
8.2.30.0050.00319.16
8.2.20.0000.00817.92
8.2.10.0020.00519.16
8.2.00.0030.00519.14
8.1.280.0000.01525.92
8.1.270.0000.00723.99
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00322.05
8.1.230.0040.00822.72
8.1.220.0000.00817.79
8.1.210.0000.00818.85
8.1.200.0060.00317.23
8.1.190.0040.00417.23
8.1.180.0000.00918.10
8.1.170.0040.00418.65
8.1.160.0050.00218.95
8.1.150.0070.00018.73
8.1.140.0050.00318.77
8.1.130.0000.00719.02
8.1.120.0000.00717.46
8.1.110.0000.00817.29
8.1.100.0050.00317.39
8.1.90.0030.00517.28
8.1.80.0030.00617.27
8.1.70.0000.00717.26
8.1.60.0000.00817.57
8.1.50.0030.00617.47
8.1.40.0040.00417.46
8.1.30.0040.00417.60
8.1.20.0030.00617.47
8.1.10.0100.00017.54
8.1.00.0080.00017.35
8.0.300.0000.00720.16
8.0.290.0050.00316.63
8.0.280.0070.00018.43
8.0.270.0030.00316.63
8.0.260.0030.00316.75
8.0.250.0000.00716.87
8.0.240.0000.00716.86
8.0.230.0000.00816.76
8.0.220.0000.00716.84
8.0.210.0030.00316.80
8.0.200.0060.00316.75
8.0.190.0050.00316.86
8.0.180.0000.00716.84
8.0.170.0000.00816.84
8.0.160.0000.00716.85
8.0.150.0000.00816.65
8.0.140.0000.00816.82
8.0.130.0030.00313.20
8.0.120.0000.00816.70
8.0.110.0060.00316.83
8.0.100.0070.00016.81
8.0.90.0070.00016.89
8.0.80.0100.00816.78
8.0.70.0000.00716.71
8.0.60.0040.00416.79
8.0.50.0030.00316.83
8.0.30.0070.01017.14
8.0.20.0110.00716.87
8.0.10.0000.00816.79
8.0.00.0090.00916.71
7.4.330.0000.00515.55
7.4.320.0000.00616.48
7.4.300.0000.00716.50
7.4.290.0040.00416.35
7.4.280.0050.00216.52
7.4.270.0000.00816.53
7.4.260.0050.00516.45
7.4.250.0030.00316.35
7.4.240.0030.00316.50
7.4.230.0070.00316.41
7.4.220.0000.00716.32
7.4.210.0090.00716.52
7.4.200.0000.00716.50
7.4.130.0080.00916.50
7.4.120.0170.01016.50
7.4.110.0160.00316.57
7.4.100.0100.00716.44
7.4.90.0060.01116.58
7.4.80.0070.01119.39
7.4.70.0070.01016.41
7.4.60.0090.01416.21
7.4.50.0140.01016.25
7.4.40.0100.00916.30
7.4.30.0110.01016.64
7.4.20.0110.00816.20
7.4.10.0100.01316.17
7.4.00.0060.01616.33
7.3.330.0030.00316.01
7.3.320.0060.00013.18
7.3.310.0030.00316.18
7.3.300.0000.00616.21
7.3.290.0070.00916.27
7.3.260.0130.00616.56
7.3.230.0090.01016.20
7.3.210.0100.00716.13
7.3.200.0100.00716.41
7.3.190.0100.00616.66
7.3.180.0090.01116.15
7.3.170.0130.00816.52
7.3.160.0120.00916.28
7.3.150.0090.01216.26
7.3.140.0030.02016.39
7.3.130.0120.01016.53
7.3.120.0130.00716.50
7.3.110.0130.00716.41
7.3.100.0200.00016.23
7.3.90.0100.01116.16
7.3.80.0040.01716.50
7.3.70.0150.01016.15
7.3.60.0180.00416.41
7.3.50.0060.01316.16
7.3.40.0140.00616.04
7.3.30.0050.01516.23
7.3.20.0180.00316.13
7.3.10.0070.01416.27
7.3.00.0190.01016.41
7.2.330.0070.01016.65
7.2.310.0040.01916.64
7.2.300.0060.01816.59
7.2.290.0080.01616.64
7.2.280.0080.01116.66
7.2.270.0090.01216.22
7.2.260.0120.00816.35
7.2.250.0030.01716.42
7.2.240.0070.01116.46
7.2.230.0160.01616.33
7.2.220.0060.01816.64
7.2.210.0030.01716.74
7.2.200.0140.01116.45
7.2.190.0070.01716.40
7.2.180.0120.00816.37
7.2.170.0190.00516.49
7.2.160.0120.01216.33
7.2.150.0090.01516.51
7.2.140.0180.00716.44
7.2.130.0160.01016.54
7.2.120.0180.00816.63
7.2.110.0160.01716.51
7.2.100.0110.01216.54
7.2.90.0170.00816.47
7.2.80.0130.00716.53
7.2.70.0150.00616.50
7.2.60.0060.01416.55
7.2.50.0160.00516.35
7.2.40.0110.01216.27
7.2.30.0130.01316.69
7.2.20.0110.00916.45
7.2.10.0060.01616.51
7.2.00.0050.01816.53

preferences:
66.21 ms | 400 KiB | 5 Q