3v4l.org

run code in 300+ PHP versions simultaneously
<?php $host = 'htp://www.casino.vbet.com'; preg_match("/[^\.\/]+\.[^\.\/]+$/", $host, $matches); echo "domain name is: {$matches[0]}\n";

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.0070.01118.43
8.3.50.0070.00921.27
8.3.40.0070.00718.92
8.3.30.0070.00720.39
8.3.20.0040.00420.37
8.3.10.0040.00421.92
8.3.00.0040.00422.51
8.2.180.0070.00718.53
8.2.170.0100.01022.96
8.2.160.0120.00920.34
8.2.150.0080.00024.18
8.2.140.0110.00724.66
8.2.130.0050.00226.16
8.2.120.0050.00319.67
8.2.110.0080.00322.25
8.2.100.0060.00619.38
8.2.90.0000.00719.25
8.2.80.0000.00719.26
8.2.70.0000.00817.88
8.2.60.0080.00018.03
8.2.50.0000.00818.07
8.2.40.0000.00818.28
8.2.30.0000.00718.02
8.2.20.0030.00617.85
8.2.10.0080.00017.82
8.2.00.0050.00217.80
8.1.280.0120.00625.92
8.1.270.0140.00024.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.95
8.1.230.0060.00619.05
8.1.220.0000.00817.76
8.1.210.0090.00318.77
8.1.200.0060.00617.36
8.1.190.0060.00317.39
8.1.180.0040.00420.11
8.1.170.0040.00418.61
8.1.160.0030.00322.20
8.1.150.0000.00718.68
8.1.140.0000.00717.53
8.1.130.0030.00317.89
8.1.120.0080.00017.57
8.1.110.0000.00817.58
8.1.100.0000.00717.57
8.1.90.0070.00017.44
8.1.80.0040.00417.44
8.1.70.0000.00717.55
8.1.60.0000.00817.65
8.1.50.0070.00017.58
8.1.40.0040.00417.63
8.1.30.0020.00517.54
8.1.20.0040.00417.66
8.1.10.0000.00717.75
8.1.00.0030.00617.53
8.0.300.0040.00418.77
8.0.290.0040.00417.04
8.0.280.0000.00718.41
8.0.270.0000.00717.22
8.0.260.0060.00016.94
8.0.250.0070.00016.99
8.0.240.0050.00317.00
8.0.230.0000.00716.96
8.0.220.0000.00817.02
8.0.210.0000.00716.95
8.0.200.0000.00817.01
8.0.190.0030.00517.00
8.0.180.0000.00716.93
8.0.170.0000.00817.03
8.0.160.0040.00416.96
8.0.150.0000.00717.03
8.0.140.0040.00417.02
8.0.130.0000.00513.45
8.0.120.0030.00616.84
8.0.110.0050.00316.96
8.0.100.0040.00417.01
8.0.90.0080.00016.86
8.0.80.0030.01216.99
8.0.70.0040.00417.02
8.0.60.0080.00017.00
8.0.50.0000.00716.93
8.0.30.0120.00717.29
8.0.20.0120.00617.40
8.0.10.0080.00016.95
8.0.00.0140.00316.94
7.4.330.0050.00015.00
7.4.320.0030.00316.65
7.4.300.0030.00316.76
7.4.290.0030.00416.73
7.4.280.0000.00816.63
7.4.270.0070.00016.57
7.4.260.0030.00316.52
7.4.250.0070.00016.61
7.4.240.0070.00016.64
7.4.230.0000.00716.84
7.4.220.0080.00816.70
7.4.210.0070.00716.74
7.4.200.0000.00716.82
7.4.190.0000.00816.82
7.4.160.0110.00716.69
7.4.150.0150.00317.40
7.4.140.0120.00617.86
7.4.130.0090.00916.57
7.4.120.0100.00616.66
7.4.110.0130.01016.69
7.4.100.0060.01116.71
7.4.90.0160.00616.77
7.4.80.0130.00319.39
7.4.70.0060.00916.62
7.4.60.0100.00616.65
7.4.50.0060.00316.62
7.4.40.0030.01022.77
7.4.30.0110.00616.61
7.4.00.0090.00815.14
7.3.330.0050.00013.18
7.3.320.0000.00513.18
7.3.310.0070.00016.18
7.3.300.0030.00316.39
7.3.290.0080.00916.38
7.3.280.0060.00916.31
7.3.270.0030.01317.40
7.3.260.0170.00016.36
7.3.250.0110.00916.70
7.3.240.0050.01116.74
7.3.230.0130.00416.47
7.3.210.0070.01416.60
7.3.200.0040.01419.39
7.3.190.0120.00916.46
7.3.180.0140.00416.41
7.3.170.0000.01616.58
7.3.160.0110.00616.59
7.3.120.0070.00814.76
7.3.110.0100.00714.89
7.3.100.0100.00415.16
7.3.90.0040.00815.16
7.3.80.0080.00614.87
7.3.70.0030.01114.72
7.3.60.0080.00814.97
7.3.50.0080.00514.85
7.3.40.0050.00814.77
7.3.30.0030.01114.96
7.3.20.0080.00816.75
7.3.10.0070.00816.75
7.3.00.0050.00516.67
7.2.330.0160.01116.65
7.2.320.0100.00716.72
7.2.310.0120.00916.94
7.2.300.0140.00816.71
7.2.290.0030.01316.86
7.2.250.0030.01615.14
7.2.240.0030.01614.98
7.2.230.0040.01215.13
7.2.220.0090.00514.99
7.2.210.0020.01215.23
7.2.200.0020.00915.30
7.2.190.0120.00315.27
7.2.180.0050.01015.11
7.2.170.0020.01115.05
7.2.00.0030.01219.67
7.1.330.0060.00716.07
7.1.320.0100.00215.98
7.1.310.0060.00815.94
7.1.300.0020.01015.99
7.1.290.0020.01115.91
7.1.280.0030.00815.85
7.1.270.0030.00915.94
7.1.260.0050.01115.84
7.1.100.0040.00418.50
7.1.70.0050.00217.52
7.1.60.0110.01419.21
7.1.50.0070.00716.91
7.1.00.0000.06322.36
7.0.200.0250.00314.88
7.0.140.0070.07322.12
7.0.60.0030.05320.04
7.0.50.0030.04717.90
7.0.40.0100.06319.93
7.0.30.0330.04720.11
7.0.20.0300.07020.19
7.0.10.0200.05320.20
7.0.00.0070.09020.01
5.6.280.0100.06720.89
5.6.210.0070.08320.63
5.6.200.0100.08318.12
5.6.190.0100.06020.61
5.6.180.0200.04020.24
5.6.170.0230.04320.38
5.6.160.0030.04720.33
5.6.150.0100.05018.11
5.6.140.0130.03018.15
5.6.130.0100.05018.21
5.6.120.0130.06320.98
5.6.110.0130.07020.99
5.6.100.0100.07721.08
5.6.90.0130.08020.88
5.6.80.0130.07320.50
5.6.70.0370.06020.51
5.5.350.0370.06020.46
5.5.340.0130.06717.88
5.5.330.0130.07320.21
5.5.320.0330.07320.21
5.5.310.0200.05020.27
5.5.300.0030.05717.91
5.5.290.0070.06317.95
5.5.280.0070.08720.73
5.5.270.0170.06320.67
5.5.260.0300.06720.86
5.5.250.0100.07720.52
5.5.240.0030.06320.25
5.4.450.0370.06319.61
5.4.440.0900.06019.39
5.4.430.0770.07319.26
5.4.420.0930.05319.48
5.4.410.0130.05718.93
5.4.400.0270.06318.50
5.4.390.0370.07318.50
5.4.380.0370.04018.46
5.4.370.0170.05018.70
5.4.360.0130.05318.57
5.4.350.0050.03511.98
5.4.340.0090.03411.98
5.4.320.0070.03612.45
5.4.310.0100.04212.45
5.4.300.0060.04812.46
5.4.290.0070.03612.46
5.4.280.0080.04512.33
5.4.270.0070.04512.33
5.4.260.0070.03712.33
5.4.250.0060.03812.33
5.4.240.0080.03412.33
5.4.230.0060.03812.32
5.4.220.0080.03812.32
5.4.210.0080.03912.32
5.4.200.0080.04912.32
5.4.190.0040.04712.32
5.4.180.0050.03812.32
5.4.170.0070.03512.33
5.4.160.0040.04412.33
5.4.150.0070.03612.32
5.4.140.0060.04812.01
5.4.130.0120.04511.99
5.4.120.0130.04411.95
5.4.110.0120.04711.95
5.4.100.0110.04511.95
5.4.90.0060.04711.95
5.4.80.0080.04611.94
5.4.70.0090.03911.94
5.4.60.0050.03911.94
5.4.50.0070.04111.94
5.4.40.0060.03911.93
5.4.30.0080.03611.93
5.4.20.0080.03411.93
5.4.10.0080.03611.92
5.4.00.0070.03611.41
5.3.290.0060.05112.80
5.3.280.0070.04112.71
5.3.270.0070.03812.73
5.3.260.0110.03712.72
5.3.250.0040.04012.71
5.3.240.0060.04612.72
5.3.230.0070.05012.71
5.3.220.0130.04412.68
5.3.210.0110.04312.68
5.3.200.0130.04612.68
5.3.190.0090.04412.67
5.3.180.0040.04412.67
5.3.170.0090.03412.67
5.3.160.0060.04812.68
5.3.150.0030.04212.67
5.3.140.0070.03612.66
5.3.130.0080.04012.66
5.3.120.0060.03912.66
5.3.110.0040.04112.65
5.3.100.0080.03512.12
5.3.90.0070.03712.08
5.3.80.0110.03512.07
5.3.70.0070.04112.07
5.3.60.0080.03912.06
5.3.50.0050.03912.00
5.3.40.0080.03812.00
5.3.30.0030.03711.94
5.3.20.0060.03511.71
5.3.10.0080.03311.68
5.3.00.0110.03911.66
5.2.170.0030.0339.16
5.2.160.0050.0309.16
5.2.150.0100.0319.16
5.2.140.0070.0389.16
5.2.130.0060.0339.12
5.2.120.0060.0289.12
5.2.110.0070.0289.13
5.2.100.0050.0349.13
5.2.90.0020.0329.12
5.2.80.0060.0309.12
5.2.70.0000.0389.11
5.2.60.0040.0329.07
5.2.50.0080.0279.04
5.2.40.0060.0279.02
5.2.30.0060.0339.00
5.2.20.0040.0308.98
5.2.10.0060.0268.90
5.2.00.0040.0308.76
5.1.60.0060.0228.05
5.1.50.0040.0278.05
5.1.40.0060.0248.03
5.1.30.0070.0248.38
5.1.20.0090.0238.40
5.1.10.0060.0318.13
5.1.00.0070.0248.13
5.0.50.0060.0216.60
5.0.40.0050.0206.46
5.0.30.0020.0336.27
5.0.20.0030.0206.25
5.0.10.0020.0226.22
5.0.00.0030.0316.21
4.4.90.0040.0144.78
4.4.80.0030.0154.76
4.4.70.0070.0124.75
4.4.60.0030.0154.75
4.4.50.0040.0144.77
4.4.40.0030.0254.71
4.4.30.0010.0174.76
4.4.20.0020.0164.84
4.4.10.0080.0134.84
4.4.00.0030.0264.76
4.3.110.0040.0154.67
4.3.100.0040.0144.67
4.3.90.0050.0134.64
4.3.80.0020.0274.58
4.3.70.0030.0194.63
4.3.60.0040.0164.63
4.3.50.0020.0164.63
4.3.40.0050.0234.53
4.3.30.0030.0193.27
4.3.20.0010.0183.25
4.3.10.0020.0173.22
4.3.00.0130.0236.88

preferences:
47.18 ms | 401 KiB | 5 Q