3v4l.org

run code in 300+ PHP versions simultaneously
<?php $referer = 'http://chameleon.online.dev/documents/orders/'; // Извлекаем имя хоста из URL //preg_match('@^(^http://[.*]/)?(.*)@i', // $referer, $matches); preg_match('@^(?:http://)?([^/]+)@i', $referer, $matches); $host = $matches; var_dump($host);

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.0140.00018.88
8.3.30.0140.00018.96
8.3.20.0080.00020.16
8.3.10.0040.00423.35
8.3.00.0060.00320.94
8.2.170.0040.01122.96
8.2.160.0200.00020.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.01726.16
8.2.120.0030.00619.50
8.2.110.0030.01422.27
8.2.100.0040.00718.03
8.2.90.0000.00819.09
8.2.80.0090.00017.97
8.2.70.0030.00717.75
8.2.60.0000.00817.92
8.2.50.0050.00318.07
8.2.40.0050.00320.07
8.2.30.0080.00318.19
8.2.20.0060.00317.63
8.2.10.0050.00318.04
8.2.00.0080.00017.88
8.1.270.0090.00023.92
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.77
8.1.230.0040.00723.91
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0000.00917.23
8.1.180.0030.00618.10
8.1.170.0080.00418.71
8.1.160.0000.00721.88
8.1.150.0040.00418.71
8.1.140.0040.00417.41
8.1.130.0000.00719.58
8.1.120.0000.00717.59
8.1.110.0050.00217.54
8.1.100.0050.00217.43
8.1.90.0000.00817.56
8.1.80.0000.00817.59
8.1.70.0040.00417.52
8.1.60.0030.00517.56
8.1.50.0000.00717.57
8.1.40.0060.00317.64
8.1.30.0040.00417.63
8.1.20.0040.00417.70
8.1.10.0020.00517.68
8.1.00.0000.00817.59
8.0.300.0000.00718.77
8.0.290.0040.00416.73
8.0.280.0000.00718.31
8.0.270.0030.00317.21
8.0.260.0060.00017.12
8.0.250.0030.00617.00
8.0.240.0030.00617.07
8.0.230.0070.00016.92
8.0.220.0070.00016.96
8.0.210.0030.00316.96
8.0.200.0000.00816.89
8.0.190.0000.00717.09
8.0.180.0040.00416.86
8.0.170.0040.00417.05
8.0.160.0040.00416.94
8.0.150.0000.00716.87
8.0.140.0040.00416.82
8.0.130.0050.00013.36
8.0.120.0040.00416.95
8.0.110.0040.00416.91
8.0.100.0050.00216.88
8.0.90.0040.00416.87
8.0.80.0090.00616.93
8.0.70.0000.00716.87
8.0.60.0040.00416.84
8.0.50.0030.00516.76
8.0.30.0090.01117.25
8.0.20.0110.00917.40
8.0.10.0040.00416.95
8.0.00.0060.01216.71
7.4.330.0000.00515.00
7.4.320.0030.00316.79
7.4.300.0000.00616.60
7.4.290.0050.00216.68
7.4.280.0040.00416.55
7.4.270.0070.00016.63
7.4.260.0080.00016.59
7.4.250.0070.00016.61
7.4.240.0020.00516.65
7.4.230.0030.00316.45
7.4.220.0100.01416.78
7.4.210.0070.01416.75
7.4.200.0040.00416.84
7.4.160.0100.00716.50
7.4.150.0050.01317.40
7.4.140.0090.00917.86
7.4.130.0120.00516.59
7.4.120.0070.01216.66
7.4.110.0120.00616.36
7.4.100.0180.00316.49
7.4.90.0030.01416.55
7.4.80.0090.00919.39
7.4.70.0000.01616.50
7.4.60.0090.00916.68
7.4.50.0020.00216.70
7.4.40.0080.00816.65
7.4.30.0180.00316.83
7.4.00.0000.01815.17
7.3.330.0020.00413.17
7.3.320.0050.00013.27
7.3.310.0070.00016.23
7.3.300.0000.00716.21
7.3.290.0120.00616.46
7.3.280.0110.00416.31
7.3.270.0150.00317.40
7.3.260.0080.01516.30
7.3.250.0120.00816.62
7.3.240.0130.00916.79
7.3.230.0150.00816.52
7.3.210.0070.01016.55
7.3.200.0060.00919.39
7.3.190.0060.01616.57
7.3.180.0030.01316.86
7.3.170.0070.01016.38
7.3.160.0030.01216.75
7.3.120.0060.00914.68
7.3.110.0030.01414.84
7.3.100.0090.00614.78
7.3.90.0170.00014.73
7.3.80.0140.00014.59
7.3.70.0060.00614.97
7.3.60.0130.00314.96
7.3.50.0030.01214.87
7.3.40.0090.00615.05
7.3.30.0060.00914.66
7.3.20.0100.00716.93
7.3.10.0100.00716.47
7.3.00.0100.00416.70
7.2.330.0060.01216.57
7.2.320.0110.01116.69
7.2.310.0060.01116.57
7.2.300.0110.00716.46
7.2.290.0120.00616.53
7.2.240.0070.00714.99
7.2.230.0110.00715.00
7.2.220.0070.01015.20
7.2.210.0090.00615.04
7.2.200.0090.00914.92
7.2.190.0120.00615.01
7.2.180.0070.01014.82
7.2.170.0040.01214.99
7.2.160.0070.01015.04
7.2.150.0000.01316.76
7.2.140.0120.00616.80
7.2.130.0140.00616.88
7.2.120.0070.00716.71
7.2.110.0110.00816.69
7.2.100.0070.01116.64
7.2.90.0110.00716.84
7.2.80.0080.00916.75
7.2.70.0050.00916.88
7.2.60.0020.01216.78
7.2.50.0070.00717.04
7.2.40.0080.00917.03
7.2.30.0090.00816.74
7.2.20.0110.00416.78
7.2.10.0140.00216.96
7.2.00.0090.00717.49
7.1.330.0060.00815.67
7.1.320.0040.01215.97
7.1.310.0070.00415.69
7.1.300.0130.00015.76
7.1.290.0000.01215.66
7.1.280.0060.00915.63
7.1.270.0030.00915.83
7.1.260.0090.00615.62
7.1.250.0080.00915.55
7.1.100.0030.00917.82
7.1.70.0030.00317.36
7.1.60.0060.00919.70
7.1.50.0070.01716.77
7.1.00.0000.08022.34
7.0.200.0070.00016.54
7.0.140.0000.07721.93
7.0.110.0070.04019.91
7.0.100.0000.04319.98
7.0.90.0000.04719.95
7.0.80.0070.07320.07
7.0.70.0100.08020.01
7.0.60.0100.07720.01
7.0.50.0100.07720.05
7.0.40.0030.07719.73
7.0.30.0270.06319.76
7.0.20.0070.07019.86
7.0.10.0170.07319.74
7.0.00.0170.07319.64
5.6.280.0100.06321.11
5.6.260.0000.05020.59
5.6.250.0000.04320.50
5.6.240.0070.04020.71
5.6.230.0070.08320.56
5.6.220.0030.07720.54
5.6.210.0030.07320.67
5.6.200.0130.08020.60
5.6.190.0030.04720.64
5.6.180.0170.07020.58
5.6.170.0170.06720.85
5.6.160.0070.08320.68
5.6.150.0130.08320.55
5.6.140.0130.07720.64
5.6.130.0100.07720.64
5.6.120.0100.08720.55
5.6.110.0100.05320.54
5.6.100.0070.08020.66
5.6.90.0230.06320.57
5.6.80.0130.07320.04
5.6.70.0000.05719.95
5.6.60.0130.07019.92
5.6.50.0070.04719.99
5.6.40.0100.07719.95
5.6.30.0130.07019.97
5.6.20.0100.07720.00
5.6.10.0200.03319.99
5.6.00.0070.08019.80
5.5.380.0030.04020.56
5.5.370.0000.05720.37
5.5.360.0030.09020.45
5.5.350.0100.05020.43
5.5.340.0030.06320.93
5.5.330.0070.08321.03
5.5.320.0170.07720.83
5.5.310.0130.07320.81
5.5.300.0100.04720.97
5.5.290.0100.08320.89
5.5.280.0230.07020.70
5.5.270.0100.08720.79
5.5.260.0170.07720.78
5.5.250.0130.06020.68
5.5.240.0130.07320.08
5.5.230.0070.07720.07
5.5.220.0070.07020.14
5.5.210.0130.07020.32
5.5.200.0030.08020.25
5.5.190.0070.04020.24
5.5.180.0070.07720.36
5.5.160.0070.05020.24
5.5.150.0070.03720.14
5.5.140.0070.07320.28
5.5.130.0070.07720.20
5.5.120.0100.07020.23
5.5.110.0170.07320.31
5.5.100.0200.06720.13
5.5.90.0200.05720.22
5.5.80.0100.07020.21
5.5.70.0100.08020.03
5.5.60.0030.08720.06
5.5.50.0030.07720.12
5.5.40.0170.05320.25
5.5.30.0070.07720.11
5.5.20.0100.06019.96
5.5.10.0100.07020.10
5.5.00.0170.06320.12
5.4.450.0070.06719.28
5.4.440.0030.08319.50
5.4.430.0130.05719.44
5.4.420.0130.07319.32
5.4.410.0070.05019.14
5.4.400.0030.05719.12
5.4.390.0070.06319.10
5.4.380.0100.07718.98
5.4.370.0100.07319.16
5.4.360.0100.07719.28
5.4.350.0070.07319.03
5.4.340.0100.07719.08
5.4.320.0100.07318.98
5.4.310.0070.07719.12
5.4.300.0130.05719.07
5.4.290.0070.07719.11
5.4.280.0100.07719.11
5.4.270.0070.07718.93
5.4.260.0070.07719.12
5.4.250.0130.07319.00
5.4.240.0130.07318.92
5.4.230.0070.07719.07
5.4.220.0070.05019.09
5.4.210.0100.06718.99
5.4.200.0100.07019.17
5.4.190.0030.08018.94
5.4.180.0030.04019.02
5.4.170.0000.08018.94
5.4.160.0100.04318.96
5.4.150.0000.08318.93
5.4.140.0000.08016.47
5.4.130.0030.07716.46
5.4.120.0100.06716.18
5.4.110.0030.07316.18
5.4.100.0130.06716.46
5.4.90.0070.06016.28
5.4.80.0100.07316.36
5.4.70.0100.07316.34
5.4.60.0030.06716.50
5.4.50.0100.06716.11
5.4.40.0030.04716.51
5.4.30.0070.07016.25
5.4.20.0100.07316.48
5.4.10.0030.07716.35
5.4.00.0100.07315.61
5.3.290.0000.08014.54
5.3.280.0030.07014.61
5.3.270.0100.07714.62
5.3.260.0070.09014.45
5.3.250.0100.04714.61
5.3.240.0170.06314.60
5.3.230.0130.06714.53
5.3.220.0070.04714.60
5.3.210.0070.07714.50
5.3.200.0130.07014.41
5.3.190.0030.08014.46
5.3.180.0130.06014.51
5.3.170.0100.06014.49
5.3.160.0030.08314.58
5.3.150.0070.07314.42
5.3.140.0030.08014.44
5.3.130.0070.04714.47
5.3.120.0030.07714.56
5.3.110.0130.07014.55
5.3.100.0100.05014.10
5.3.90.0070.07714.03
5.3.80.0070.07313.95
5.3.70.0070.07314.02
5.3.60.0070.04313.89
5.3.50.0030.07713.82
5.3.40.0130.07013.79
5.3.30.0100.05713.84
5.3.20.0070.05313.48
5.3.10.0130.06313.67
5.3.00.0100.07313.53
5.2.170.0000.06011.79
5.2.160.0000.04011.79
5.2.150.0070.05311.79
5.2.140.0030.06311.79
5.2.130.0100.06011.79
5.2.120.0070.05711.79
5.2.110.0070.06311.79
5.2.100.0030.06311.79
5.2.90.0030.06311.79
5.2.80.0100.06011.79
5.2.70.0070.06011.79
5.2.60.0100.04011.79
5.2.50.0130.05311.79
5.2.40.0070.05011.79
5.2.30.0030.06311.79
5.2.20.0030.06311.79
5.2.10.0100.04711.79
5.2.00.0100.05711.79
5.1.60.0000.05711.79
5.1.50.0030.05711.79
5.1.40.0070.05011.79
5.1.30.0030.03711.79
5.1.20.0000.05711.79
5.1.10.0030.05711.79
5.1.00.0030.05711.79
5.0.50.0030.05011.79
5.0.40.0030.02311.79
5.0.30.0000.06711.79
5.0.20.0070.04011.79
5.0.10.0070.04011.79
5.0.00.0030.06011.79
4.4.90.0070.03311.79
4.4.80.0030.03311.79
4.4.70.0070.03011.79
4.4.60.0000.04011.79
4.4.50.0000.03711.79
4.4.40.0070.04011.79
4.4.30.0000.03711.79
4.4.20.0030.03311.79
4.4.10.0070.03311.79
4.4.00.0070.04711.79
4.3.110.0070.01711.79
4.3.100.0070.03011.79
4.3.90.0130.02311.79
4.3.80.0100.04311.79
4.3.70.0070.03011.79
4.3.60.0030.03011.79
4.3.50.0000.03711.79
4.3.40.0070.03311.79
4.3.30.0030.02311.79
4.3.20.0000.03011.79
4.3.10.0070.02311.79
4.3.00.0070.03011.79

preferences:
47.39 ms | 400 KiB | 5 Q