3v4l.org

run code in 300+ PHP versions simultaneously
<?php $target = ''; $paramsToStrip = array('foo', 'bar'); $_GET = array('foo' => 'mööü', 'foooo' => 'sds'); if (!empty($_GET)) { $targetParams = array_diff_key($_GET, array_flip($paramsToStrip)); if (!empty($targetParams)) { $target = '?' . http_build_query($targetParams); } } var_dump($target);

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.40.0070.00718.84
8.3.30.0070.00718.63
8.3.20.0080.00018.73
8.3.10.0000.00920.50
8.3.00.0040.00419.13
8.2.170.0120.00622.96
8.2.160.0130.00721.24
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00419.38
8.2.110.0060.00319.04
8.2.100.0110.00017.91
8.2.90.0040.00417.78
8.2.80.0040.00418.04
8.2.70.0040.00417.93
8.2.60.0000.00818.22
8.2.50.0050.00518.10
8.2.40.0110.00019.16
8.2.30.0000.00719.23
8.2.20.0040.00417.62
8.2.10.0000.00817.61
8.2.00.0070.00017.73
8.1.270.0040.00424.66
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00022.59
8.1.230.0040.00722.70
8.1.220.0000.00817.89
8.1.210.0030.00718.77
8.1.200.0030.00717.22
8.1.190.0000.00917.22
8.1.180.0030.00618.10
8.1.170.0030.00618.71
8.1.160.0050.00318.85
8.1.150.0000.00718.78
8.1.140.0040.00417.34
8.1.130.0000.00717.78
8.1.120.0000.00817.48
8.1.110.0030.00517.37
8.1.100.0030.00317.33
8.1.90.0070.00017.43
8.1.80.0000.00717.41
8.1.70.0050.00517.46
8.1.60.0050.00317.45
8.1.50.0040.00417.50
8.1.40.0000.00817.55
8.1.30.0040.00417.65
8.1.20.0060.00317.62
8.1.10.0000.00717.41
8.1.00.0000.00717.28
8.0.300.0000.00720.16
8.0.290.0000.00816.63
8.0.280.0070.00018.44
8.0.270.0040.00417.26
8.0.260.0070.00016.81
8.0.250.0020.00516.92
8.0.240.0000.00716.91
8.0.230.0000.00716.87
8.0.220.0040.00416.93
8.0.210.0040.00316.90
8.0.200.0060.00016.93
8.0.190.0080.00316.95
8.0.180.0030.00316.84
8.0.170.0040.00416.82
8.0.160.0040.00416.84
8.0.150.0040.00416.75
8.0.140.0080.00016.81
8.0.130.0000.00513.35
8.0.120.0070.00016.83
8.0.110.0030.00516.77
8.0.100.0080.00016.95
8.0.90.0040.00416.70
8.0.80.0060.01216.86
8.0.70.0040.00416.81
8.0.60.0000.00716.77
8.0.50.0040.00416.76
8.0.30.0130.00917.12
8.0.20.0080.01017.00
8.0.10.0040.00416.94
8.0.00.0130.00616.76
7.4.330.0000.00513.06
7.4.320.0000.00616.56
7.4.300.0030.00316.51
7.4.290.0000.00716.52
7.4.280.0030.00616.29
7.4.270.0040.00416.51
7.4.260.0000.00613.26
7.4.250.0080.00016.49
7.4.240.0000.00716.51
7.4.230.0030.00316.60
7.4.220.0130.01616.44
7.4.210.0090.00716.59
7.4.200.0030.00316.60
7.4.190.0000.00716.68
7.4.160.0080.00816.64
7.4.150.0140.00316.53
7.4.140.0100.00716.53
7.4.130.0080.00816.46
7.4.120.0090.00916.42
7.4.110.0060.01016.50
7.4.100.0030.01316.53
7.4.90.0100.00716.61
7.4.80.0090.01216.39
7.4.70.0030.01516.57
7.4.60.0100.00716.58
7.4.50.0000.00816.40
7.4.40.0060.00916.29
7.4.30.0090.00916.59
7.4.00.0080.00814.95
7.3.330.0060.00013.10
7.3.320.0000.00613.14
7.3.310.0000.00716.04
7.3.300.0060.00016.25
7.3.290.0120.00316.26
7.3.280.0070.01016.20
7.3.270.0060.01216.64
7.3.260.0090.01116.45
7.3.250.0140.00716.37
7.3.240.0070.01016.48
7.3.230.0080.00816.41
7.3.210.0000.01716.15
7.3.200.0120.00919.39
7.3.190.0040.01216.41
7.3.180.0080.00816.05
7.3.170.0050.01116.58
7.3.160.0090.01216.46
7.3.120.0120.00414.75
7.3.110.0000.01414.68
7.3.100.0110.00314.68
7.3.90.0060.00314.68
7.3.80.0090.00014.85
7.3.70.0070.01014.71
7.3.60.0150.00014.66
7.3.50.0140.00014.56
7.3.40.0040.01114.64
7.3.30.0060.00314.47
7.3.20.0070.00316.68
7.3.10.0070.00316.66
7.3.00.0070.00716.61
7.2.330.0090.00816.48
7.2.320.0070.01016.70
7.2.310.0090.01916.72
7.2.300.0130.00316.65
7.2.290.0130.00316.80
7.2.250.0070.00715.02
7.2.240.0060.00615.20
7.2.230.0000.01614.99
7.2.220.0090.00315.25
7.2.210.0030.01415.07
7.2.200.0000.01415.25
7.2.190.0060.00614.81
7.2.180.0090.00915.13
7.2.170.0070.01115.10
7.2.80.0390.00316.56
7.2.60.0060.00916.71
7.2.50.0070.01116.70
7.1.330.0030.01015.78
7.1.320.0080.00415.88
7.1.310.0070.00815.76
7.1.300.0070.00715.61
7.1.290.0040.00715.93
7.1.280.0090.00615.86
7.1.270.0000.00915.89
7.1.260.0070.00715.47
7.1.200.0070.00715.82
7.1.70.0000.01217.10
7.1.60.0130.01019.40
7.1.50.0110.00716.92
7.1.00.0030.04322.30
7.0.200.0000.00716.73
7.0.140.0000.07721.95
7.0.120.0000.05322.09
7.0.60.0070.06019.79
7.0.50.0170.07317.91
7.0.40.0070.08020.00
7.0.30.0270.06720.09
7.0.20.0270.04320.33
7.0.10.0130.03720.20
7.0.00.0130.05020.20
5.6.280.0000.07720.85
5.6.210.0130.08020.56
5.6.200.0130.07318.21
5.6.190.0130.07720.41
5.6.180.0330.06720.61
5.6.170.0270.05320.41
5.6.160.0070.08320.34
5.6.150.0070.07018.11
5.6.140.0030.08718.21
5.6.130.0030.07718.21
5.6.120.0130.07720.99
5.6.110.0130.03321.11
5.6.100.0130.06321.02
5.6.90.0000.06021.09
5.6.80.0200.06020.26
5.5.350.0070.06020.41
5.5.340.0070.08317.93
5.5.330.0000.04720.12
5.5.320.1170.04320.20
5.5.310.0300.08020.34
5.5.300.0100.07717.98
5.5.290.0130.08018.01
5.5.280.0070.05320.77
5.5.270.0030.09020.94
5.5.260.0100.08320.86
5.5.250.0030.08320.77
5.5.240.0070.07320.11
5.4.450.0500.03719.23
5.4.440.0700.03319.36
5.4.430.0570.04019.38
5.4.420.0630.04719.57
5.4.410.0370.04319.33
5.4.400.0630.03719.22
5.4.390.0330.04019.22
5.4.380.0570.04319.22
5.4.370.0570.04019.13
5.4.360.0970.03718.77
5.4.350.0800.04019.10
5.4.340.0700.04719.06
5.4.320.0630.04319.04
5.4.310.0600.03319.10
5.4.300.0530.03319.13
5.4.290.0830.03718.89
5.4.280.0530.03718.90
5.4.270.0400.03018.76
5.4.260.0330.04319.23
5.4.250.0130.04718.93
5.4.240.0600.04719.13
5.4.230.0900.03318.79
5.4.220.0570.03318.79
5.4.210.0570.03318.93
5.4.200.0570.03719.24
5.4.190.0600.04019.12
5.4.180.0730.04318.79
5.4.170.0530.04019.15
5.4.160.0300.03019.21
5.4.150.0370.04719.02
5.4.140.0330.07316.32
5.4.130.0500.04316.30
5.4.120.0470.03316.33
5.4.110.0670.04016.37
5.4.100.0630.03316.23
5.4.90.0500.04716.33
5.4.80.0570.05016.41
5.4.70.0800.04016.35
5.4.60.0570.03716.41
5.4.50.0270.04316.22
5.4.40.0500.03316.25
5.4.30.0470.02716.39
5.4.20.0170.03716.22
5.4.10.0430.03016.43
5.4.00.0530.03316.22
5.3.290.0600.03316.23
5.3.280.0530.03716.23
5.3.270.0600.04016.23
5.3.260.0870.02716.23
5.3.250.1100.03016.23
5.3.240.0730.04716.23
5.3.230.0430.04716.23
5.3.220.0430.04316.23
5.3.210.0630.04316.23
5.3.200.0070.02716.23
5.3.190.0730.03716.23
5.3.180.0770.03016.23
5.3.170.0270.08316.23
5.3.160.0770.03716.23
5.3.150.0530.04316.22
5.3.140.0730.03016.22
5.3.130.0630.04316.22
5.3.120.0430.03716.22
5.3.110.0330.04716.22
5.3.100.0870.03016.22
5.3.90.0700.04316.22
5.3.80.0800.03716.22
5.3.70.0530.03316.22
5.3.60.0270.04016.22
5.3.50.0500.03716.22
5.3.40.1030.03016.21
5.3.30.0270.03316.21
5.3.20.0430.03716.21
5.3.10.0670.03716.21
5.3.00.0130.04316.21
5.2.170.0000.03316.21
5.2.160.0000.02716.21
5.2.150.0370.02316.21
5.2.140.0570.03016.21
5.2.130.0400.03016.21
5.2.120.0130.02716.21
5.2.110.0270.01716.21
5.2.100.0570.03016.21
5.2.90.0270.03016.21
5.2.80.0370.04316.21
5.2.70.0400.03316.21
5.2.60.0400.03016.21
5.2.50.0530.02016.21
5.2.40.0370.02716.21
5.2.30.0270.03316.21
5.2.20.0270.02316.21
5.2.10.0470.02716.21
5.2.00.0400.03316.21
5.1.60.0270.03716.21
5.1.50.0070.01716.21
5.1.40.0430.02316.21
5.1.30.0330.02016.21
5.1.20.0330.02716.21
5.1.10.0430.02716.21
5.1.00.0570.02316.21
5.0.50.0200.02016.21
5.0.40.0070.02016.21
5.0.30.0030.03016.21
5.0.20.0330.01716.21
5.0.10.0200.01316.21
5.0.00.0130.03016.21
4.4.90.0230.01716.21
4.4.80.0170.01716.21
4.4.70.0170.01316.21
4.4.60.0100.01316.21
4.4.50.0030.01716.21
4.4.40.0130.02316.21
4.4.30.0130.01316.21
4.4.20.0070.01716.21
4.4.10.0200.01716.21
4.4.00.0130.01716.21
4.3.110.0030.01716.21
4.3.100.0130.01316.21
4.3.90.0230.01316.21
4.3.80.0370.02316.21
4.3.70.0370.01316.21
4.3.60.0030.02016.21
4.3.50.0130.02016.21
4.3.40.0230.02716.21
4.3.30.0130.01016.21
4.3.20.0100.01716.21
4.3.10.0030.01716.21
4.3.00.0100.01716.21

preferences:
45.33 ms | 400 KiB | 5 Q