3v4l.org

run code in 300+ PHP versions simultaneously
<?php $addr = "http://10.0.0.4/?rdm_tag=1&utm_source=source1&utm_medium=medium1&pk_tag=123&utm_campaign=campaign1"; // Parse the url. $tableName = array ('referer_medium', 'referer_source', 'referer_campaign'); $tags = array ('utm_medium=', 'utm_source=', 'utm_campaign='); $visitorInfo = array( 'foo' => 'foo', 'referer_medium' => '', 'bar' => 'bar', 'referer_source' => '', 'referer_campaign' => '', 'answer' => '42' ); $results = explode("&", explode("?", $addr)[1]); print_r($results); foreach($results as $result){ foreach($tags as $key => $tag) { if (($offset = stripos($result, $tag)) !== false) { $visitorInfo["$tableName[$key]}"] = substr($result, strlen($tag)); } } } print_r($visitorInfo); //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.60.0140.00016.75
8.3.50.0070.00721.94
8.3.40.0070.01118.84
8.3.30.0060.00919.09
8.3.20.0090.00920.34
8.3.10.0140.00423.61
8.3.00.0080.00417.50
8.2.180.0100.01016.50
8.2.170.0110.00422.96
8.2.160.0130.00020.53
8.2.150.0120.00324.18
8.2.140.0080.00024.66
8.2.130.0140.00326.16
8.2.120.0040.00419.77
8.2.110.0000.00920.50
8.2.100.0070.00317.91
8.2.90.0000.00819.30
8.2.80.0060.00317.97
8.2.70.0040.00417.63
8.2.60.0050.00518.04
8.2.50.0050.00318.07
8.2.40.0000.00718.16
8.2.30.0000.00718.21
8.2.20.0040.00417.82
8.2.10.0050.00317.84
8.2.00.0040.00417.68
8.1.280.0110.00425.92
8.1.270.0060.01323.79
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0070.00323.75
8.1.230.0040.00720.81
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0040.00417.53
8.1.180.0040.00418.10
8.1.170.0040.00418.54
8.1.160.0070.00022.11
8.1.150.0050.00218.54
8.1.140.0000.00817.49
8.1.130.0070.00017.38
8.1.120.0000.00817.39
8.1.110.0070.00017.50
8.1.100.0050.00217.44
8.1.90.0040.00417.52
8.1.80.0070.00017.38
8.1.70.0000.00717.41
8.1.60.0000.00817.53
8.1.50.0040.00417.48
8.1.40.0080.00017.55
8.1.30.0030.00617.66
8.1.20.0020.00517.66
8.1.10.0040.00417.61
8.1.00.0000.00717.56
8.0.300.0040.00418.77
8.0.290.0070.00017.18
8.0.280.0030.00318.47
8.0.270.0070.00017.22
8.0.260.0000.00716.75
8.0.250.0000.00716.95
8.0.240.0070.00016.95
8.0.230.0030.00616.99
8.0.220.0070.00016.82
8.0.210.0000.00716.93
8.0.200.0000.00617.02
8.0.190.0080.00016.88
8.0.180.0070.00016.92
8.0.170.0030.00616.92
8.0.160.0030.00516.80
8.0.150.0050.00216.77
8.0.140.0030.00316.78
8.0.130.0030.00613.41
8.0.120.0030.00516.85
8.0.110.0080.00016.88
8.0.100.0040.00416.75
8.0.90.0000.00816.81
8.0.80.0100.00616.91
8.0.70.0040.00416.79
8.0.60.0000.00716.80
8.0.50.0040.00416.90
8.0.30.0070.01617.08
8.0.20.0100.00917.43
8.0.10.0000.00716.99
8.0.00.0080.01016.84
7.4.330.0030.00315.09
7.4.320.0040.00416.68
7.4.300.0070.00016.59
7.4.290.0080.00016.55
7.4.280.0030.00516.51
7.4.270.0030.00316.43
7.4.260.0120.00016.52
7.4.250.0070.00016.51
7.4.240.0040.00316.60
7.4.230.0000.00716.73
7.4.220.0110.00616.71
7.4.210.0070.00816.62
7.4.200.0000.00716.38
7.4.190.0070.00016.60
7.4.160.0070.01016.50
7.4.150.0120.00617.40
7.4.140.0060.01117.86
7.4.130.0080.01116.47
7.4.120.0100.00716.58
7.4.110.0060.01116.68
7.4.100.0090.00916.60
7.4.90.0120.00416.45
7.4.80.0160.00319.39
7.4.70.0030.01616.54
7.4.60.0090.00616.43
7.4.50.0000.00816.55
7.4.40.0070.01022.77
7.4.30.0120.00416.50
7.4.00.0060.00615.20
7.3.330.0000.00613.20
7.3.320.0000.00713.15
7.3.310.0000.00716.36
7.3.300.0070.00016.38
7.3.290.0000.01316.35
7.3.280.0100.01016.38
7.3.270.0090.00817.40
7.3.260.0160.00316.52
7.3.250.0120.00616.52
7.3.240.0150.00416.47
7.3.230.0070.01016.39
7.3.210.0000.01716.48
7.3.200.0100.01319.39
7.3.190.0100.00816.48
7.3.180.0060.01316.45
7.3.170.0130.00316.68
7.3.160.0110.01116.57
7.3.120.0030.00914.89
7.3.10.0090.00316.57
7.3.00.0050.00816.40
7.2.330.0120.00616.58
7.2.320.0120.00616.80
7.2.310.0110.00616.57
7.2.300.0060.01516.69
7.2.290.0090.01216.80
7.2.130.0040.01217.05
7.2.120.0060.00917.12
7.2.110.0090.00317.12
7.2.100.0100.00717.10
7.2.90.0110.00716.79
7.2.80.0000.01517.07
7.2.70.0080.00517.06
7.2.60.0040.01117.12
7.2.50.0030.01216.98
7.2.40.0110.00416.80
7.2.30.0100.00316.86
7.2.20.0150.00016.98
7.2.10.0070.00317.10
7.2.00.0030.01018.13
7.1.250.0000.01315.89
7.1.100.0000.01117.94
7.1.70.0030.00617.26
7.1.60.0060.01819.31
7.1.50.0060.01517.04
7.1.00.0070.07322.44
7.0.200.0000.00716.86
7.0.140.0030.07321.96
7.0.100.0030.08019.98
7.0.90.0270.07019.98
7.0.80.0070.08020.03
7.0.70.0100.06020.03
7.0.60.0070.07719.76
7.0.50.0070.04320.30
7.0.40.0030.04720.07
7.0.30.0030.06719.96
7.0.20.0000.04720.00
7.0.10.0100.05320.04
7.0.00.0070.03720.13
5.6.280.0030.07321.09
5.6.250.0100.08320.82
5.6.240.0070.04020.63
5.6.230.0070.05720.65
5.6.220.0030.08720.70
5.6.210.0130.06320.55
5.6.200.0170.07021.06
5.6.190.0100.05321.05
5.6.180.0130.07321.02
5.6.170.0070.06320.93
5.6.160.0070.04021.04
5.6.150.0070.06721.00
5.6.140.0030.05321.04
5.6.130.0100.05321.01
5.6.120.0070.07721.08
5.6.110.0100.07321.09
5.6.100.0070.05320.98
5.6.90.0030.05720.98
5.6.80.0100.04720.27
5.6.70.0130.05320.46
5.6.60.0070.08320.32
5.6.50.0070.04020.55
5.6.40.0100.07720.29
5.6.30.0070.03720.41
5.6.20.0030.08720.43
5.6.10.0130.05320.52
5.6.00.0170.05320.42
5.5.380.0030.05720.42
5.5.370.0030.07020.56
5.5.360.0170.07020.44
5.5.350.0070.06320.45
5.5.340.0070.07020.86
5.5.330.0130.03720.83
5.5.320.0030.05020.90
5.5.310.0100.03020.89
5.5.300.0070.03720.61
5.5.290.0030.08720.89
5.5.280.0100.03320.83
5.5.270.0030.08320.85
5.5.260.0070.06020.92
5.5.250.0070.06320.61
5.5.240.0030.06720.29
5.5.230.0070.05020.30
5.5.220.0070.07320.14
5.5.210.0130.07320.29
5.5.200.0200.06720.13
5.5.190.0200.03720.11
5.5.180.0130.06720.11
5.5.160.0100.07019.99
5.5.150.0070.07320.23
5.5.140.0000.06320.23
5.5.130.0130.06320.23
5.5.120.0130.06019.98
5.5.110.0070.03720.14
5.5.100.0070.04320.07
5.5.90.0030.07720.00
5.5.80.0070.05719.95
5.5.70.0100.07320.14
5.5.60.0000.07020.15
5.5.50.0030.08020.08
5.5.40.0070.04020.07
5.5.30.0030.08319.92
5.5.20.0230.05320.14
5.5.10.0030.06020.11
5.5.00.0000.06320.02
5.4.450.0070.08319.56
5.4.440.0100.07019.53
5.4.430.0130.06719.30
5.4.420.0070.06319.44
5.4.410.0070.03719.40
5.4.400.0070.03719.03
5.4.390.0130.05319.14
5.4.380.0000.04318.90
5.4.370.0130.03319.04
5.4.360.0030.04319.16
5.4.350.0000.04319.05
5.4.340.0130.03718.91
5.4.320.0070.07319.03
5.4.310.0130.03718.95
5.4.300.0030.04319.04
5.4.290.0030.04719.02
5.4.280.0100.05718.84
5.4.270.0070.06719.12
5.4.260.0030.07319.13
5.4.250.0070.03318.86
5.4.240.0070.03319.04
5.4.230.0000.04719.13
5.4.220.0070.03719.04
5.4.210.0070.06719.20
5.4.200.0070.07319.20
5.4.190.0070.08019.21
5.4.180.0070.07319.07
5.4.170.0070.07019.19
5.4.160.0230.05719.22
5.4.150.0100.05719.10
5.4.140.0000.08016.27
5.4.130.0070.06016.30
5.4.120.0030.07316.42
5.4.110.0000.04716.48
5.4.100.0000.08016.40
5.4.90.0000.04316.50
5.4.80.0070.03716.34
5.4.70.0130.06316.47
5.4.60.0130.06016.46
5.4.50.0130.06716.36
5.4.40.0200.06016.49
5.4.30.0030.06716.52
5.4.20.0070.05716.36
5.4.10.0070.06716.31
5.4.00.0130.03015.90
5.3.290.0100.07014.67
5.3.280.0070.04714.59
5.3.270.0030.08014.57
5.3.260.0170.06714.57
5.3.250.0070.06314.58
5.3.240.0100.06714.57
5.3.230.0070.07314.54
5.3.220.0030.04014.53
5.3.210.0070.07314.57
5.3.200.0170.05714.55
5.3.190.0030.08314.58
5.3.180.0030.05014.49
5.3.170.0100.03714.38
5.3.160.0100.05014.50
5.3.150.0100.07314.38
5.3.140.0170.04314.50
5.3.130.0000.07314.54
5.3.120.0070.07314.54
5.3.110.0030.04314.54
5.3.100.0070.05314.03
5.3.90.0030.06713.89
5.3.80.0100.05713.96
5.3.70.0100.07313.97
5.3.60.0030.07013.98
5.3.50.0130.06313.93
5.3.40.0070.03713.81
5.3.30.0130.06713.85
5.3.20.0030.04013.67
5.3.10.0100.06313.65
5.3.00.0000.04313.50
5.2.170.0070.06010.95
5.2.160.0130.04311.21
5.2.150.0000.07011.18
5.2.140.0070.06011.00
5.2.130.0070.04010.89
5.2.120.0070.06010.86
5.2.110.0070.03011.14
5.2.100.0070.04011.09
5.2.90.0030.04011.16
5.2.80.0070.06310.92
5.2.70.0070.03011.09
5.2.60.0030.07010.91
5.2.50.0030.05010.81
5.2.40.0030.06010.92
5.2.30.0100.04710.96
5.2.20.0100.05311.03
5.2.10.0070.03010.88
5.2.00.0030.03310.79
5.1.60.0100.04710.03
5.1.50.0070.04710.00
5.1.40.0030.0279.96
5.1.30.0070.02310.25
5.1.20.0000.03310.35
5.1.10.0100.05310.11
5.1.00.0000.0409.95
5.0.50.0030.0479.55
5.0.40.0030.0279.55
5.0.30.0030.0379.55
5.0.20.0000.0239.55
5.0.10.0000.0309.55
5.0.00.0000.0639.55
4.4.90.0030.0279.55
4.4.80.0000.0339.55
4.4.70.0070.0209.55
4.4.60.0070.0309.55
4.4.50.0030.0179.55
4.4.40.0000.0379.55
4.4.30.0030.0209.55
4.4.20.0030.0139.55
4.4.10.0030.0309.55
4.4.00.0000.0409.55
4.3.110.0000.0339.55
4.3.100.0030.0239.55
4.3.90.0000.0309.55
4.3.80.0000.0439.55
4.3.70.0000.0209.55
4.3.60.0030.0339.55
4.3.50.0030.0179.55
4.3.40.0000.0439.55
4.3.30.0030.0139.55
4.3.20.0000.0239.55
4.3.10.0000.0339.55
4.3.00.0070.0179.55

preferences:
50.56 ms | 400 KiB | 5 Q