3v4l.org

run code in 300+ PHP versions simultaneously
<?php $addr = "http://10.0.0.4/?utm_source=source1&utm_medium=medium1&utm_campaign=campaign1"; // Parse the url. $tableName = array ('referer_medium', 'referer_source', 'referer_campaign'); $tags = array ('utm_medium=', 'utm_source=', 'utm_campaign='); $results = explode("&", explode("?", $addr)[1]); print_r($results); foreach($results as $result){ foreach($tags as $tag) { if (($offset = stripos($result, $tag)) !== false) { $gonzag[] = substr($result, $offset); } } } print_r($gonzag); //foreach ($tags as $key => $tag){ // $visitorInfo["{$tableName[$key]}"] = $_GET["{$tag}"]; //}

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.01418.46
8.3.30.0090.00618.66
8.3.20.0040.00418.70
8.3.10.0040.00420.38
8.3.00.0080.00019.23
8.2.170.0130.00622.96
8.2.160.0070.00722.27
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.95
8.2.110.0090.00019.27
8.2.100.0090.00317.91
8.2.90.0000.00819.30
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0040.00417.93
8.2.50.0000.00818.10
8.2.40.0000.00820.07
8.2.30.0030.00718.04
8.2.20.0070.00017.66
8.2.10.0020.00517.82
8.2.00.0000.00717.67
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00019.59
8.1.230.0090.00317.95
8.1.220.0040.00417.76
8.1.210.0030.00618.77
8.1.200.0090.00017.36
8.1.190.0050.00317.22
8.1.180.0070.00018.10
8.1.170.0040.00418.55
8.1.160.0000.00718.86
8.1.150.0040.00418.52
8.1.140.0080.00017.36
8.1.130.0030.00317.82
8.1.120.0000.00717.45
8.1.110.0000.00817.42
8.1.100.0000.00717.41
8.1.90.0000.00717.37
8.1.80.0000.00817.38
8.1.70.0060.00317.45
8.1.60.0080.00017.61
8.1.50.0050.00317.50
8.1.40.0040.00417.52
8.1.30.0040.00417.69
8.1.20.0040.00417.56
8.1.10.0030.00517.50
8.1.00.0030.00617.32
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0030.00318.59
8.0.270.0050.00317.18
8.0.260.0000.00716.77
8.0.250.0050.00216.98
8.0.240.0090.00316.98
8.0.230.0000.00716.85
8.0.220.0030.00316.80
8.0.210.0070.00016.93
8.0.200.0000.00816.84
8.0.190.0000.00717.01
8.0.180.0040.00416.84
8.0.170.0070.00316.96
8.0.160.0040.00416.79
8.0.150.0030.00616.83
8.0.140.0040.00416.77
8.0.130.0030.00313.26
8.0.120.0070.00016.86
8.0.110.0040.00416.95
8.0.100.0040.00416.94
8.0.90.0040.00416.71
8.0.80.0070.00816.88
8.0.70.0000.00716.70
8.0.60.0080.00016.93
8.0.50.0040.00416.84
8.0.30.0140.00617.11
8.0.20.0050.01317.40
8.0.10.0040.00416.98
8.0.00.0100.01016.85
7.4.330.0030.00313.43
7.4.320.0000.00716.46
7.4.300.0060.00016.62
7.4.290.0000.00716.52
7.4.280.0000.00716.51
7.4.270.0030.00316.53
7.4.260.0060.00013.21
7.4.250.0040.00416.58
7.4.240.0040.00416.60
7.4.230.0000.00716.50
7.4.220.0030.01516.65
7.4.210.0080.00816.62
7.4.200.0040.00416.42
7.4.190.0070.00016.58
7.4.160.0120.00616.41
7.4.150.0120.00417.40
7.4.140.0070.01017.18
7.4.130.0090.00816.42
7.4.120.0090.00816.54
7.4.110.0090.00916.65
7.4.100.0070.01416.46
7.4.90.0090.00816.51
7.4.80.0000.01618.80
7.4.70.0150.00616.60
7.4.60.0100.00616.36
7.4.50.0030.00616.30
7.4.40.0080.01122.27
7.4.30.0070.01016.56
7.4.00.0080.00814.69
7.3.330.0000.00713.24
7.3.320.0030.00313.06
7.3.310.0050.00316.54
7.3.300.0000.00716.25
7.3.290.0000.01416.34
7.3.280.0070.00816.33
7.3.270.0120.00417.40
7.3.260.0080.01218.24
7.3.250.0100.00716.39
7.3.240.0120.00616.39
7.3.230.0130.00316.53
7.3.210.0120.00716.56
7.3.200.0070.01319.39
7.3.190.0070.01016.65
7.3.180.0100.00616.34
7.3.170.0150.00916.57
7.3.160.0090.00916.29
7.3.120.0100.00314.59
7.2.330.0150.00916.58
7.2.320.0100.00716.52
7.2.310.0160.00316.86
7.2.300.0080.01216.77
7.2.290.0070.01016.47
7.2.00.0080.00419.41
7.1.100.0030.01018.37
7.1.70.0000.01017.29
7.1.60.0100.00619.40
7.1.50.0060.00617.02
7.1.00.0030.05322.57
7.0.200.0050.00216.69
7.0.140.0000.07722.18
7.0.60.0070.08319.86
7.0.50.0070.04017.72
7.0.40.4070.05020.33
7.0.30.3300.03720.09
7.0.20.3600.04020.19
7.0.10.3730.04320.12
7.0.00.0000.05320.16
5.6.280.0030.07020.85
5.6.210.0100.06720.50
5.6.200.0000.05318.29
5.6.190.3900.04320.47
5.6.180.3270.03720.55
5.6.170.3300.03320.51
5.6.160.0030.08320.48
5.6.150.0100.08020.35
5.6.140.3800.03320.52
5.6.130.3970.04720.20
5.6.120.1230.07320.30
5.6.110.0130.07320.34
5.6.100.3730.05020.33
5.6.90.3230.04720.34
5.6.80.3300.03719.70
5.6.70.3300.04019.68
5.6.60.3330.04319.91
5.6.50.3300.03719.73
5.6.40.4030.04319.57
5.6.30.4300.03719.67
5.6.20.4130.03719.69
5.6.10.4300.03719.63
5.6.00.3730.04719.71
5.5.350.4000.04320.46
5.5.340.0070.03718.01
5.5.330.1500.06020.46
5.5.320.3500.04320.23
5.5.310.3400.03720.35
5.5.300.3530.04320.00
5.5.290.3670.03020.07
5.5.280.0170.07320.00
5.5.270.0030.09320.14
5.5.260.3330.04020.06
5.5.250.3830.04019.94
5.5.240.3000.04019.49
5.5.230.3800.04319.49
5.5.220.3500.04319.48
5.5.210.3400.03719.55
5.5.200.4170.03719.46
5.5.190.4270.03719.50
5.5.180.4200.04019.48
5.5.160.4300.04019.45
5.5.150.3830.04019.41
5.5.140.3970.04019.45
5.5.130.3500.04719.44
5.5.120.3670.04319.53
5.5.110.4130.03719.45
5.5.100.3900.04019.36
5.5.90.4100.03719.33
5.5.80.4370.03319.32
5.5.70.4030.05319.41
5.5.60.4270.03719.24
5.5.50.3300.03719.39
5.5.40.3870.04019.38
5.5.30.3570.03019.42
5.5.20.4000.04019.32
5.5.10.3530.03719.41
5.5.00.3900.03319.30
5.4.450.3900.04019.36
5.4.440.0070.07719.46
5.4.430.1400.05019.31
5.4.420.3730.03719.35
5.4.410.3030.03719.14
5.4.400.3200.02719.05
5.4.390.3270.04019.10
5.4.380.3600.04019.13
5.4.370.3900.04019.05
5.4.360.3230.04019.10
5.4.350.4130.04319.10
5.4.340.4200.04018.96
5.4.320.4200.03718.96
5.4.310.4170.04319.03
5.4.300.3730.03319.01
5.4.290.4030.03719.09
5.4.280.4200.03719.01
5.4.270.4230.03719.03
5.4.260.4270.04019.13
5.4.250.4230.03319.06
5.4.240.4030.03718.88
5.4.230.4200.04019.26
5.4.220.3400.03719.13
5.4.210.3370.04319.05
5.4.200.3900.04019.09
5.4.190.3470.03319.02
5.4.180.4130.03719.13
5.4.170.4000.03019.05
5.4.160.3430.03719.03
5.4.150.3600.03319.04
5.4.140.3870.03716.54
5.4.130.4000.03716.39
5.4.120.3930.03016.57
5.4.110.3070.04016.45
5.4.100.3430.03716.31
5.4.90.3470.03716.38
5.4.80.3130.03316.57
5.4.70.3470.03716.41
5.4.60.3400.04016.29
5.4.50.3730.03316.37
5.4.40.3470.04316.41
5.4.30.4230.03716.38
5.4.20.4330.03716.39
5.4.10.4070.03716.30
5.4.00.3770.03715.84
5.3.290.4270.03714.59
5.3.280.4300.03314.55
5.3.270.4070.04314.58
5.3.260.3730.04314.55
5.3.250.3400.03314.54
5.3.240.3870.03714.55
5.3.230.4030.03314.59
5.3.220.4400.03314.55
5.3.210.3530.03714.40
5.3.200.3470.03714.53
5.3.190.3600.03314.54
5.3.180.3930.04014.53
5.3.170.3430.03714.53
5.3.160.3230.04014.34
5.3.150.3630.03314.50
5.3.140.3830.03314.54
5.3.130.3570.04014.49
5.3.120.4030.04314.38
5.3.110.4270.03714.54
5.3.100.3970.03713.96
5.3.90.3870.03713.96
5.3.80.4200.03313.99
5.3.70.3500.03713.95
5.3.60.0370.02713.92
5.3.50.0130.06713.94
5.3.40.3500.03713.91
5.3.30.3500.04313.90
5.3.20.3930.03013.61
5.3.10.4230.04013.52
5.3.00.4000.02313.57
5.2.170.0070.02311.12
5.2.160.0370.06311.12
5.2.150.2970.02711.09
5.2.140.3630.03311.08
5.2.130.3670.03011.08
5.2.120.3670.03311.11
5.2.110.3600.03011.13
5.2.100.3230.03011.00
5.2.90.3470.02711.06
5.2.80.3330.03311.02
5.2.70.2900.02711.07
5.2.60.2770.03011.01
5.2.50.3200.02310.84
5.2.40.2400.03710.98
5.2.30.2230.02710.94
5.2.20.2570.03010.79
5.2.10.2230.02310.90
5.2.00.0270.03010.75
5.1.60.0000.0239.83
5.1.50.0000.0279.91
5.1.40.0030.0239.91
5.1.30.1370.02710.35
5.1.20.2200.02310.31
5.1.10.2270.03010.03
5.1.00.2230.02010.04
5.0.50.1130.0208.53
5.0.40.1070.0208.38
5.0.30.1130.0278.15
5.0.20.1130.0178.27
5.0.10.1100.0178.26
5.0.00.1200.0238.07
4.4.90.1330.0175.82
4.4.80.0870.0135.80
4.4.70.1100.0135.73
4.4.60.1100.0175.77
4.4.50.1100.0135.79
4.4.40.0000.0275.81
4.4.30.0000.0175.89
4.4.20.1330.0105.85
4.4.10.1100.0135.85
4.4.00.1070.0235.84
4.3.110.1070.0175.84
4.3.100.1070.0175.67
4.3.90.1130.0135.80
4.3.80.1330.0205.80
4.3.70.1070.0135.70
4.3.60.1170.0175.79
4.3.50.1330.0105.69
4.3.40.1300.0235.65
4.3.30.0530.0174.98
4.3.20.0500.0174.98
4.3.10.0700.0234.98
4.3.00.0570.0134.98

preferences:
45.74 ms | 400 KiB | 5 Q