3v4l.org

run code in 500+ PHP versions simultaneously
<?php $strings = [ "http://regex101.", "http://www.regex101.", "https://regex101.", "https://www.regex101.", "https://www.mydomain.", "https://mydomain." ]; $pattern = "~^https?://(?:www\.)?+(?!mydomain\.)\S+$~"; foreach ($strings as $s) { if (preg_match($pattern, $s)) { echo "Match: $s" . PHP_EOL; } else { echo "No match: $s" . PHP_EOL; } }

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.5.90.0130.00616.77
8.5.80.0030.00416.83
8.5.70.0080.00818.67
8.5.60.0080.01216.57
8.5.50.0130.00516.70
8.5.30.0110.00619.48
8.5.20.0110.00719.66
8.5.10.0180.00616.63
8.5.00.0130.00820.19
8.4.230.0120.00919.71
8.4.220.0130.00819.73
8.4.210.0120.01019.77
8.4.180.0150.00719.64
8.4.170.0180.01020.38
8.4.160.0130.00720.68
8.4.150.0090.00416.93
8.4.140.0100.01017.78
8.4.130.0090.00618.04
8.4.120.0110.00822.55
8.4.110.0140.00618.85
8.4.100.0110.01018.02
8.4.90.0130.00818.08
8.4.80.0130.00717.88
8.4.70.0030.00718.00
8.4.60.0110.01018.75
8.4.50.0130.00817.91
8.4.40.0140.00719.67
8.4.30.0070.01420.49
8.4.20.0120.00918.70
8.4.10.0130.00717.70
8.3.320.0100.00518.68
8.3.310.0080.00120.41
8.3.300.0100.01019.06
8.3.290.0100.01020.82
8.3.280.0110.00918.68
8.3.270.0100.00916.69
8.3.260.0110.00816.74
8.3.250.0050.00418.93
8.3.240.0150.00416.85
8.3.230.0150.00416.64
8.3.220.0130.00516.92
8.3.210.0090.00716.74
8.3.200.0050.00416.62
8.3.190.0060.00417.13
8.3.180.0110.00718.34
8.3.170.0110.00718.82
8.3.160.0080.01218.52
8.3.150.0040.01117.21
8.3.140.0070.00718.91
8.3.130.0080.00818.57
8.3.120.0070.01020.89
8.3.110.0100.00620.94
8.3.100.0050.01118.45
8.3.90.0080.00026.77
8.3.80.0090.00016.75
8.3.70.0040.01816.88
8.3.60.0190.00016.75
8.3.50.0030.01016.55
8.3.40.0120.00318.83
8.3.30.0060.00918.79
8.3.20.0050.00324.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.320.0170.00918.34
8.2.310.0090.01118.32
8.2.300.0120.00920.46
8.2.290.0100.00618.90
8.2.280.0090.01018.68
8.2.270.0150.00416.54
8.2.260.0040.00418.77
8.2.250.0040.01818.47
8.2.240.0030.00617.09
8.2.230.0090.00022.58
8.2.220.0080.00024.06
8.2.210.0110.00426.77
8.2.200.0030.00618.41
8.2.190.0140.00717.00
8.2.180.0030.01025.92
8.2.170.0150.00619.09
8.2.160.0060.01622.96
8.2.150.0030.00625.66
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0040.00421.19
8.2.110.0100.00020.58
8.2.100.0070.00417.97
8.2.90.0060.00617.75
8.2.80.0040.00419.04
8.2.70.0030.00517.93
8.2.60.0050.00518.16
8.2.50.0000.00918.10
8.2.40.0050.00320.97
8.2.30.0040.00419.16
8.2.20.0060.00318.05
8.2.10.0000.00719.24
8.2.00.0040.00419.14
8.1.340.0120.00921.96
8.1.330.0080.00416.28
8.1.320.0090.01016.36
8.1.310.0180.00018.13
8.1.300.0040.00420.16
8.1.290.0030.00730.84
8.1.280.0070.00725.92
8.1.270.0090.00023.99
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0080.00022.14
8.1.230.0090.00317.70
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0040.00817.35
8.1.190.0040.00417.48
8.1.180.0000.00818.10
8.1.170.0030.00618.64
8.1.160.0000.00718.92
8.1.150.0100.00018.84
8.1.140.0070.00018.92
8.1.130.0000.00717.53
8.1.120.0040.00417.51
8.1.110.0000.00817.63
8.1.100.0040.00617.59
8.1.90.0030.00617.63
8.1.80.0070.00417.54
8.1.70.0000.00717.48
8.1.60.0000.00817.70
8.1.50.0050.00317.66
8.1.40.0000.00817.55
8.1.30.0000.00817.76
8.1.20.0050.00317.80
8.1.10.0040.00417.68
8.1.00.0040.00417.58
8.0.300.0000.00819.99
8.0.290.0040.00416.88
8.0.280.0040.00418.48
8.0.270.0000.00717.02
8.0.260.0090.00016.90
8.0.250.0020.00517.05
8.0.240.0000.00717.04
8.0.230.0000.00717.11
8.0.220.0000.00716.91
8.0.210.0050.00217.06
8.0.200.0000.00717.06
8.0.190.0000.00817.09
8.0.180.0000.00817.08
8.0.170.0060.00317.08
8.0.160.0040.00416.94
8.0.150.0050.00316.96
8.0.140.0030.00616.89
8.0.130.0050.00013.46
8.0.120.0080.00016.97
8.0.110.0040.00417.02
8.0.100.0020.00517.15
8.0.90.0000.00817.06
8.0.80.0120.00316.99
8.0.70.0040.00416.87
8.0.60.0000.00716.84
8.0.50.0040.00416.91
8.0.30.0100.01116.99
8.0.20.0120.00617.05
8.0.10.0130.01017.14
8.0.00.0130.00517.23
7.4.330.0030.00315.55
7.4.320.0060.00016.71
7.4.300.0030.00316.83
7.4.290.0030.00316.68
7.4.280.0000.00816.74
7.4.270.0000.00716.81
7.4.260.0060.00013.48
7.4.250.0000.00716.76
7.4.240.0030.00516.81
7.4.230.0040.00416.56
7.4.220.0030.00316.72
7.4.210.0040.01116.68
7.4.200.0070.00016.89
7.4.160.0070.01016.72
7.4.150.0130.00616.84
7.4.140.0130.01016.68
7.4.130.0120.00816.74
7.4.120.0080.01116.83
7.4.110.0090.01416.77
7.4.100.0130.00316.97
7.4.90.0070.01016.77
7.4.80.0140.00016.80
7.4.70.0060.00916.85
7.4.60.0090.00616.66
7.4.50.0100.00316.62
7.4.40.0070.00716.54
7.4.30.0030.01316.68
7.4.20.0030.01816.62
7.4.10.0100.01016.55
7.4.00.0160.00316.69
7.3.330.0030.00316.41
7.3.320.0030.00313.27
7.3.310.0030.00316.28
7.3.300.0000.00616.54
7.3.290.0080.00916.51
7.3.280.0060.00916.52
7.3.270.0040.01516.47
7.3.260.0100.00616.43
7.3.250.0160.00316.46
7.3.240.0110.00816.38
7.3.230.0130.01016.55
7.3.220.0100.00316.36
7.3.210.0030.01216.45
7.3.200.0040.01116.44
7.3.190.0060.00916.34
7.3.180.0070.00716.32
7.3.170.0030.01016.36
7.3.160.0070.00716.28
7.3.150.0060.01316.35
7.3.140.0060.01316.27
7.3.130.0130.00616.29
7.3.120.0030.01016.42
7.3.110.0060.00916.29
7.3.100.0150.00316.39
7.3.90.0110.00416.70
7.3.80.0070.00716.48
7.3.70.0070.00716.57
7.3.60.0060.00916.54
7.3.50.0150.00016.50
7.3.40.0090.00616.50
7.3.30.0040.01116.46
7.3.20.0140.00316.53
7.3.10.0090.00616.55
7.3.00.0060.00916.46

preferences:
117.03 ms | 1446 KiB | 5 Q