3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $referer = 'http://chameleon.online.dev/documents/orders/'; // Извлекаем имя хоста из URL //preg_match('@^(^http://[.*]/)?(.*)@i', // $referer, $matches); preg_match('@^([^/]+)@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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.80.0060.00816.68
7.2.00.0060.00919.30
7.1.200.0030.00815.97
7.1.100.0060.00618.26
7.1.70.0000.00717.34
7.1.60.0140.01119.70
7.1.50.0040.01817.09
7.1.00.0070.07322.45
7.0.200.0030.00316.96
7.0.140.0100.06322.18
7.0.60.0070.07019.92
7.0.50.0030.04017.77
7.0.40.0000.04720.42
7.0.30.0600.07020.04
7.0.20.0230.04320.09
7.0.10.0170.04020.32
7.0.00.0100.08020.02
5.6.280.0100.06721.04
5.6.210.0030.04320.55
5.6.200.0030.04318.10
5.6.190.0000.05320.61
5.6.180.3100.03020.63
5.6.170.0130.04320.33
5.6.160.0100.07720.44
5.6.150.0030.04318.18
5.6.140.0070.04318.21
5.6.130.0030.06318.21
5.6.120.0100.04720.98
5.6.110.0130.07021.08
5.6.100.0100.08320.98
5.6.90.0070.04020.93
5.6.80.0030.08020.35
5.6.70.3800.03720.39
5.5.350.0330.07020.41
5.5.340.0030.04317.92
5.5.330.0070.07020.40
5.5.320.0300.04720.21
5.5.310.0270.07020.12
5.5.300.0100.07718.00
5.5.290.0000.04718.02
5.5.280.0030.05320.84
5.5.270.0030.05320.95
5.5.260.0070.04720.78
5.5.250.0070.05020.69
5.5.240.0230.07720.00
5.4.450.0200.04735.39
5.4.440.0300.04334.29
5.4.430.0100.05032.19
5.4.420.0070.05032.19
5.4.410.0170.04032.19
5.4.400.0700.03032.19
5.4.390.0270.04032.20
5.4.380.0200.05018.60
5.4.370.0170.06018.68
5.4.360.0270.05318.57
5.4.350.0130.07318.67
5.4.340.0130.08318.61
5.4.320.0060.03612.45
5.4.310.0050.03812.45
5.4.300.0060.04312.45
5.4.290.0060.04312.45
5.4.280.0090.03812.34
5.4.270.0050.04312.35
5.4.260.0080.04012.35
5.4.250.0060.04312.34
5.4.240.0050.04812.34
5.4.230.0050.05012.34
5.4.220.0080.04712.34
5.4.210.0080.04812.34
5.4.200.0080.05212.34
5.4.190.0070.04112.33
5.4.180.0110.04612.33
5.4.170.0080.04912.35
5.4.160.0100.03612.34
5.4.150.0050.04512.34
5.4.140.0080.05012.02
5.4.130.0060.04912.01
5.4.120.0140.03711.97
5.4.110.0190.04411.96
5.4.100.0080.04411.96
5.4.90.0070.03811.96
5.4.80.0060.04311.96
5.4.70.0100.04211.96
5.4.60.0120.04011.96
5.4.50.0110.04211.96
5.4.40.0090.04211.95
5.4.30.0100.04011.94
5.4.20.0120.04111.95
5.4.10.0040.04211.95
5.4.00.0080.03911.44
5.3.290.0040.04012.80
5.3.280.0070.04612.71
5.3.270.0060.05012.72
5.3.260.0080.04412.72
5.3.250.0060.03912.72
5.3.240.0080.04112.72
5.3.230.0090.03812.71
5.3.220.0060.04012.68
5.3.210.0060.05012.68
5.3.200.0080.04312.68
5.3.190.0130.04412.68
5.3.180.0100.04812.68
5.3.170.0080.03812.67
5.3.160.0100.04812.67
5.3.150.0100.04912.67
5.3.140.0070.04112.66
5.3.130.0110.04512.66
5.3.120.0120.04612.66
5.3.110.0090.04812.66
5.3.100.0060.04212.12
5.3.90.0100.03312.08
5.3.80.0110.03612.07
5.3.70.0110.03912.07
5.3.60.0040.04412.07
5.3.50.0100.03912.00
5.3.40.0060.04212.00
5.3.30.0080.04111.94
5.3.20.0090.03911.72
5.3.10.0060.04911.69
5.3.00.0090.04711.68
5.2.170.0090.0359.18
5.2.160.0180.0509.18
5.2.150.0090.0359.18
5.2.140.0080.0399.18
5.2.130.0070.0419.13
5.2.120.0090.0339.14
5.2.110.0020.0439.14
5.2.100.0080.0339.14
5.2.90.0090.0369.14
5.2.80.0100.0659.13
5.2.70.0040.0439.13
5.2.60.0070.0409.09
5.2.50.0090.0379.06
5.2.40.0080.0369.04
5.2.30.0190.0839.01
5.2.20.0080.0459.00
5.2.10.0070.0358.91
5.2.00.0150.0548.78
5.1.60.0110.0358.06
5.1.50.0060.0508.05
5.1.40.0100.0278.04
5.1.30.0100.0298.39
5.1.20.0040.0328.41
5.1.10.0060.0278.13
5.1.00.0050.0278.14
5.0.50.0030.0216.62
5.0.40.0030.0216.47
5.0.30.0020.0336.29
5.0.20.0070.0186.25
5.0.10.0050.0196.23
5.0.00.0050.0316.23
4.4.90.0030.0164.78
4.4.80.0040.0204.75
4.4.70.0060.0144.76
4.4.60.0050.0144.75
4.4.50.0030.0174.77
4.4.40.0040.0274.70
4.4.30.0020.0214.75
4.4.20.0050.0194.85
4.4.10.0080.0134.85
4.4.00.0040.0304.76
4.3.110.0050.0154.67
4.3.100.0030.0284.67
4.3.90.0050.0184.64
4.3.80.0050.0304.58
4.3.70.0040.0204.63
4.3.60.0060.0174.63
4.3.50.0070.0174.63
4.3.40.0050.0324.54
4.3.30.0050.0173.29
4.3.20.0030.0163.25
4.3.10.0040.0193.22
4.3.00.0100.01332.19