3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.example.com/login.php/?redirect=myprofile.php'; $url_components = parse_url($url); if (!empty($url_components['query'])){ parse_str($url_components['query'], $params); print_r($params); } else { echo "query doesn't exist in parse_str"; }

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.4.120.0140.00620.34
8.4.110.0140.00618.79
8.4.100.0140.00717.63
8.4.90.0080.01317.80
8.4.80.0030.00619.46
8.4.70.0090.00717.69
8.4.60.0120.00917.73
8.4.50.0110.00917.69
8.4.40.0060.00317.75
8.4.30.0130.00620.54
8.4.20.0040.01517.46
8.4.10.0080.00819.65
8.3.250.0130.00618.87
8.3.240.0080.01216.52
8.3.230.0130.00216.63
8.3.220.0130.00616.74
8.3.210.0070.00316.74
8.3.200.0110.00816.69
8.3.190.0130.00719.09
8.3.180.0130.00618.36
8.3.170.0060.00916.73
8.3.160.0160.00318.82
8.3.150.0130.00617.05
8.3.140.0060.00918.87
8.3.130.0000.00818.34
8.3.120.0040.00418.90
8.3.110.0060.00320.94
8.3.100.0120.00424.06
8.3.90.0070.01126.77
8.3.80.0040.00417.97
8.3.70.0080.00618.30
8.3.60.0280.00821.21
8.3.50.0130.00522.16
8.3.40.0170.00923.91
8.3.30.0270.00322.31
8.3.20.0180.00825.05
8.3.10.0150.00525.29
8.3.00.0160.00426.04
8.2.290.0110.00719.12
8.2.280.0120.00818.61
8.2.270.0120.00618.68
8.2.260.0090.00916.78
8.2.250.0040.00416.53
8.2.240.0070.01119.12
8.2.230.0040.00422.58
8.2.220.0070.00437.54
8.2.210.0130.00626.77
8.2.200.0100.00018.54
8.2.190.0100.00716.60
8.2.180.0230.00725.92
8.2.170.0160.00922.41
8.2.160.0200.00524.44
8.2.150.0240.00525.79
8.2.140.0230.00525.29
8.2.130.0210.00726.04
8.2.120.0190.00923.48
8.2.110.0240.00522.58
8.2.100.0210.00921.91
8.2.90.0190.00522.04
8.2.80.0210.00522.45
8.2.70.0180.01021.99
8.2.60.0230.00921.84
8.2.50.0230.00722.01
8.2.40.0200.00622.10
8.2.30.0210.00722.68
8.2.20.0190.00923.14
8.2.10.0150.00620.35
8.2.00.0140.00720.79
8.1.330.0100.00916.34
8.1.320.0110.00715.85
8.1.310.0120.00418.29
8.1.300.0100.01018.00
8.1.290.0000.00830.84
8.1.280.0280.00725.92
8.1.270.0210.01124.91
8.1.260.0180.00426.14
8.1.250.0170.00427.00
8.1.240.0170.01124.08
8.1.230.0270.00423.28
8.1.220.0210.00521.83
8.1.210.0210.00622.38
8.1.200.0180.01021.64
8.1.190.0180.00721.52
8.1.180.0160.00922.01
8.1.170.0190.00822.47
8.1.160.0210.00723.12
8.1.150.0220.00622.28
8.1.140.0150.00320.33
8.1.130.0150.00720.49
8.1.120.0140.00720.20
8.1.110.0160.00420.16
8.1.100.0100.00719.62
8.1.90.0120.00619.60
8.1.80.0120.00719.61
8.1.70.0140.00319.62
8.1.60.0140.00519.75
8.1.50.0130.00419.71
8.1.40.0120.00719.68
8.1.30.0120.00619.75
8.1.20.0160.00419.71
8.1.10.0150.00619.65
8.1.00.0150.00719.64
8.0.300.0200.00522.98
8.0.290.0150.00521.27
8.0.280.0140.00522.21
8.0.270.0170.00620.62
8.0.260.0120.00620.08
8.0.250.0140.00519.73
8.0.240.0160.00219.74
8.0.230.0090.00519.20
8.0.220.0140.00219.05
8.0.210.0090.00519.11
8.0.200.0080.00719.22
8.0.190.0110.00519.21
8.0.180.0140.00519.14
8.0.170.0110.00519.17
8.0.160.0100.00619.14
8.0.150.0090.00619.08
8.0.140.0120.00519.12
8.0.130.0120.00319.07
8.0.120.0080.00919.08
8.0.110.0200.00219.06
8.0.100.0130.00519.07
8.0.90.0110.00619.09
8.0.80.0120.00619.09
8.0.70.0110.00519.10
8.0.60.0110.00519.02
8.0.50.0110.00619.07
8.0.30.0090.00919.05
8.0.20.0110.00719.09
8.0.10.0120.00619.14
8.0.00.0130.00419.25
7.4.330.0110.00518.50
7.4.320.0150.00419.40
7.4.300.0140.00218.88
7.4.290.0110.00518.85
7.4.280.0090.00718.83
7.4.270.0140.00418.76
7.4.260.0130.00818.81
7.4.250.0160.00418.71
7.4.240.0150.00618.64
7.4.230.0120.00818.77
7.4.220.0140.00418.68
7.4.210.0140.00418.65
7.4.200.0140.00418.70
7.4.190.0180.00318.81
7.4.180.0130.00618.68
7.4.160.0140.00418.80
7.4.150.0100.00818.71
7.4.140.0120.00518.66
7.4.130.0150.00418.66
7.4.120.0190.00418.70
7.4.110.0150.00618.71
7.4.100.0160.00418.68
7.4.90.0130.00718.68
7.4.80.0170.00318.74
7.4.70.0150.00518.62
7.4.60.0150.00518.69
7.4.50.0140.00518.66
7.4.40.0150.00418.67
7.4.30.0140.00618.71
7.4.20.0140.00718.60
7.4.10.0120.00618.62
7.4.00.0090.00718.69
7.3.330.0130.00618.68
7.3.320.0180.00218.56
7.3.310.0140.00418.61
7.3.300.0130.00418.61
7.3.290.0160.00218.65
7.3.280.0130.00418.60
7.3.270.0120.00418.57
7.3.260.0090.00818.56
7.3.250.0100.00718.65
7.3.240.0110.00618.63
7.3.230.0120.00518.56
7.3.220.0120.00518.57
7.3.210.0140.00418.52
7.3.200.0130.00518.46
7.3.190.0120.00718.58
7.3.180.0160.00418.53
7.3.170.0140.00518.50
7.3.160.0170.00318.54
7.3.150.0150.00518.52
7.3.140.0160.00418.52
7.3.130.0140.00518.56

preferences:
28.38 ms | 403 KiB | 5 Q