3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! // Проверяем если это контекст $referer = ''; $request = ''; if(preg_match('/utm_medium=cpc', $referer) || preg_match('/utm_medium=cpc', $request)) { //$this->source = $this->source_ref['context']; echo 1; } // Проверяем на партнеров if(isset($_GET['pid']) && !empty(trim($_GET['pid'])) && $this->check_pid()) { //$this->source = $this->source_ref['partner']; echo 2; } // Проверяем на поисковики if(preg_match('/search', $referer)) { //$this->source = $this->source_ref['search']; echo 3; } // Проверяем на рассылки if(preg_match('/(id_notification=|unsubscribe=)', $request)) { //$this->source = $this->source_ref['mail']; echo 4; } if(empty($referer) && !isset($_GET['pid']) || preg_match('/sravnikupi.ru/', $referer)) { //$this->source = $this->source_ref['direct']; echo 5; }

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.0130.00718.55
8.3.50.0070.01216.53
8.3.40.0100.00718.84
8.3.30.0030.01418.64
8.3.20.0040.00418.75
8.3.10.0060.00320.52
8.3.00.0080.00017.63
8.2.180.0140.00716.50
8.2.170.0140.00022.96
8.2.160.0170.00322.17
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0030.00526.16
8.2.120.0080.00020.08
8.2.110.0030.00719.15
8.2.100.0080.00418.03
8.2.90.0000.00819.21
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0030.00517.93
8.2.50.0000.00718.22
8.2.40.0040.00420.59
8.2.30.0000.00719.30
8.2.20.0080.00017.71
8.2.10.0050.00317.73
8.2.00.0030.00617.61
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.69
8.1.230.0080.00319.16
8.1.220.0000.00917.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0060.00318.40
8.1.160.0000.00818.89
8.1.150.0060.00322.00
8.1.140.0040.00417.41
8.1.130.0030.00317.82
8.1.120.0030.00317.52
8.1.110.0000.00917.45
8.1.100.0050.00317.35
8.1.90.0040.00417.47
8.1.80.0040.00417.52
8.1.70.0000.00717.36
8.1.60.0000.00817.59
8.1.50.0040.00417.47
8.1.40.0040.00417.50
8.1.30.0040.00417.64
8.1.20.0060.00317.64
8.1.10.0080.00017.44
8.1.00.0000.00817.52
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.36
8.0.270.0040.00417.16
8.0.260.0000.00718.36
8.0.250.0070.00016.89
8.0.240.0040.00416.99
8.0.230.0070.00017.06
8.0.220.0000.00716.86
8.0.210.0050.00216.86
8.0.200.0080.00016.99
8.0.190.0060.00317.08
8.0.180.0000.00716.94
8.0.170.0050.00316.97
8.0.160.0040.00417.00
8.0.150.0040.00417.02
8.0.140.0130.00016.90
8.0.130.0050.00013.34
8.0.120.0070.00016.81
8.0.110.0040.00416.92
8.0.100.0040.00416.95
8.0.90.0000.00717.02
8.0.80.0060.01216.93
8.0.70.0000.00716.86
8.0.60.0040.00417.02
8.0.50.0040.00416.82
8.0.30.0110.01017.14
8.0.20.0050.01317.14
8.0.10.0070.00017.04
8.0.00.0090.01216.81
7.4.330.0060.00014.89
7.4.320.0060.00016.54
7.4.300.0030.00316.49
7.4.290.0030.00316.41
7.4.280.0050.00216.41
7.4.270.0060.00316.64
7.4.260.0060.00013.20
7.4.250.0040.00416.43
7.4.240.0000.00716.46
7.4.230.0050.00316.55
7.4.220.0070.01116.55
7.4.210.0080.00916.53
7.4.200.0030.00316.68
7.4.190.0000.00716.75
7.4.160.0090.00616.68
7.4.150.0060.01217.07
7.4.140.0120.00617.23
7.4.130.0120.00816.61
7.4.120.0090.00916.46
7.4.110.0200.00016.44
7.4.100.0140.00316.57
7.4.90.0060.01216.59
7.4.80.0180.00418.80
7.4.70.0110.00616.44
7.4.60.0160.00316.50
7.4.50.0030.00616.57
7.4.40.0120.00622.26
7.4.30.0000.01716.49
7.4.00.0100.00714.74
7.3.330.0040.00413.17
7.3.320.0020.00413.07
7.3.310.0050.00216.25
7.3.300.0040.00416.21
7.3.290.0070.01116.16
7.3.280.0060.01216.33
7.3.270.0090.00917.07
7.3.260.0090.01018.24
7.3.250.0050.01316.25
7.3.240.0120.00616.25
7.3.230.0070.01016.43
7.3.210.0090.00916.30
7.3.200.0100.01319.39
7.3.190.0140.00816.29
7.3.180.0100.00616.58
7.3.170.0060.00916.25
7.3.160.0130.00316.36
7.3.120.0060.01014.59
7.2.330.0090.01216.57
7.2.320.0110.00716.59
7.2.310.0090.00916.31
7.2.300.0100.00716.43
7.2.290.0000.01716.56
7.2.00.0090.00319.27
7.1.100.0030.00618.01
7.1.70.0000.01016.96
7.1.60.0110.01519.40
7.1.50.0060.00616.64
7.1.00.0030.06322.43
7.0.200.0000.00716.86
7.0.140.0030.07322.11
7.0.120.0030.03322.08
7.0.60.0030.04020.09
7.0.50.0070.08717.88
7.0.40.0170.05319.90
7.0.30.0430.05320.18
7.0.20.0330.05320.13
7.0.10.0300.03320.33
7.0.00.0100.08320.16
5.6.280.0000.07721.08
5.6.210.0100.07720.50
5.6.200.0030.04718.21
5.6.190.0170.08020.61
5.6.180.0030.04720.39
5.6.170.0270.07320.47
5.6.160.0130.08020.33
5.6.150.0030.06018.18
5.6.140.0070.05318.13
5.6.130.0100.08318.09
5.6.120.0070.04320.96
5.6.110.0230.07020.89
5.6.100.0100.03320.98
5.6.90.0030.07020.98
5.6.80.0130.07720.39
5.6.70.0270.07320.47
5.5.350.0200.04020.41
5.5.340.0070.05717.88
5.5.330.0070.08720.21
5.5.320.0030.05720.07
5.5.310.0200.04020.34
5.5.300.0070.07717.91
5.5.290.0030.06017.91
5.5.280.0030.06020.84
5.5.270.0030.05320.89
5.5.260.0130.07720.64
5.5.250.0170.05320.46
5.5.240.0030.08320.26
5.4.450.0100.07319.41
5.4.440.0100.07319.48
5.4.430.0100.03719.11
5.4.420.0070.03719.13
5.4.410.0030.04019.36
5.4.400.0030.04018.93
5.4.390.0030.03719.09
5.4.380.0030.03718.78
5.4.370.0030.03719.18
5.4.360.0000.04019.16
5.4.350.0000.04719.10
5.4.340.0070.04319.09
5.4.320.0070.03719.12
5.4.310.0170.03019.15
5.4.300.0070.06019.13
5.4.290.0070.03718.81
5.4.280.0030.03719.08
5.4.270.0070.04018.92
5.4.260.0100.03319.08
5.4.250.0000.04019.00
5.4.240.0000.04019.14
5.4.230.0030.03719.17
5.4.220.0000.04019.17
5.4.210.0030.03718.78
5.4.200.0000.04018.91
5.4.190.0000.04018.77
5.4.180.0030.04019.17
5.4.170.0000.04018.78
5.4.160.0030.03719.15
5.4.150.0070.04319.12
5.4.140.0000.04016.17
5.4.130.0100.03016.25
5.4.120.0030.03716.25
5.4.110.0030.07316.41
5.4.100.0030.05016.39
5.4.90.0000.04316.33
5.4.80.0100.06316.39
5.4.70.0130.06016.39
5.4.60.0000.04316.40
5.4.50.0000.05716.60
5.4.40.0070.04016.24
5.4.30.0230.04016.38
5.4.20.0070.04716.38
5.4.10.0130.05716.34
5.4.00.0100.05015.73
5.3.290.0070.03714.64
5.3.280.0030.03714.52
5.3.270.0070.03714.62
5.3.260.0030.03714.48
5.3.250.0000.03714.62
5.3.240.0070.03314.39
5.3.230.0000.04314.49
5.3.220.0070.03014.65
5.3.210.0070.03314.39
5.3.200.0030.06014.51
5.3.190.0070.04314.49
5.3.180.0070.04714.58
5.3.170.0030.04314.49
5.3.160.0030.05714.46
5.3.150.0100.06714.44
5.3.140.0030.04714.49
5.3.130.0030.04714.44
5.3.120.0030.08014.50
5.3.110.0000.06314.34
5.3.100.0000.05013.99
5.3.90.0030.05713.98
5.3.80.0070.03713.83
5.3.70.0100.05013.95
5.3.60.0030.04713.95
5.3.50.0030.04313.89
5.3.40.0070.03713.87
5.3.30.0070.06313.83
5.3.20.0130.07013.63
5.3.10.0100.07313.60
5.3.00.0100.07313.57
5.2.170.0030.04011.02
5.2.160.0130.05311.08
5.2.150.0030.03311.07
5.2.140.0030.06711.09
5.2.130.0070.04711.09
5.2.120.0030.03311.06
5.2.110.0070.06011.09
5.2.100.0000.06011.03
5.2.90.0100.05011.08
5.2.80.0070.03710.98
5.2.70.0070.02711.04
5.2.60.0070.05011.01
5.2.50.0070.05710.86
5.2.40.0070.06310.88
5.2.30.0130.05310.97
5.2.20.0030.06010.78
5.2.10.0070.05710.81
5.2.00.0070.03310.75
5.1.60.0070.0539.99
5.1.50.0030.04310.07
5.1.40.0000.0609.81
5.1.30.0100.05310.23
5.1.20.0070.04710.34
5.1.10.0100.03710.04
5.1.00.0030.04710.04
5.0.50.0030.0478.58
5.0.40.0070.0378.55
5.0.30.0030.0478.51
5.0.20.0130.0278.51
5.0.10.0030.0278.51
5.0.00.0000.0378.51
4.4.90.0000.0208.51
4.4.80.0070.0138.51
4.4.70.0070.0178.51
4.4.60.0030.0308.51
4.4.50.0000.0238.51
4.4.40.0000.0578.51
4.4.30.0000.0208.51
4.4.20.0000.0408.51
4.4.10.0000.0408.51
4.4.00.0070.0508.51
4.3.110.0000.0278.51
4.3.100.0000.0238.51
4.3.90.0070.0308.51
4.3.80.0000.0308.51
4.3.70.0070.0108.51
4.3.60.0000.0178.51
4.3.50.0000.0178.51
4.3.40.0030.0478.51
4.3.30.0000.0378.51
4.3.20.0000.0238.51
4.3.10.0000.0278.51
4.3.00.0030.0178.51

preferences:
55.04 ms | 401 KiB | 5 Q