3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = 'https://flash---art.com/2021/05/kw-digital-with-the-last-museum-a-website-specific-exhibition/#'; $regex = '_^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:localhost)|(?:(?:[a-z\x{00a1}-\x{ffff}0-9]+-?)*[a-z\x{00a1}-\x{ffff}0-9]+)(?:\.(?:[a-z\x{00a1}-\x{ffff}0-9]+-?)*[a-z\x{00a1}-\x{ffff}0-9]+)*(?:\.(?:[a-z\x{00a1}-\x{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$_iu'; echo preg_match($regex, $value ?? '') ? 'correct' : 'nope';

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.0160.00618.56
8.3.50.0150.00920.14
8.3.40.0140.01019.18
8.3.30.0070.01019.27
8.3.20.0090.00024.18
8.3.10.0030.00624.66
8.3.00.0090.00026.16
8.2.180.0130.01025.92
8.2.170.0130.00719.14
8.2.160.0190.00622.96
8.2.150.0060.00325.66
8.2.140.0000.00924.66
8.2.130.0090.00026.16
8.2.120.0000.00920.07
8.2.110.0030.00720.46
8.2.100.0030.01017.88
8.2.90.0030.00719.53
8.2.80.0030.00618.00
8.2.70.0070.00318.00
8.2.60.0060.00618.05
8.2.50.0030.00918.07
8.2.40.0030.00718.34
8.2.30.0030.00618.27
8.2.20.0030.00620.46
8.2.10.0090.00018.11
8.2.00.0060.00619.50
8.1.280.0070.01025.92
8.1.270.0000.01022.00
8.1.260.0060.00626.35
8.1.250.0060.00328.09
8.1.240.0070.00424.09
8.1.230.0070.00717.83
8.1.220.0030.00617.79
8.1.210.0030.00618.77
8.1.200.0070.00317.61
8.1.190.0070.00417.38
8.1.180.0040.00718.10
8.1.170.0100.00018.54
8.1.160.0070.00320.71
8.1.150.0000.00918.91
8.1.140.0030.00717.55
8.1.130.0030.00617.61
8.1.120.0030.00617.63
8.1.110.0000.00917.63
8.1.100.0060.00317.63
8.1.90.0060.00317.52
8.1.80.0090.00017.59
8.1.70.0000.00917.66
8.1.60.0030.00717.75
8.1.50.0250.00317.68
8.1.40.0150.00517.55
8.1.30.0150.01217.80
8.1.20.0170.01017.80
8.1.10.0220.00717.74
8.1.00.0190.00817.64
8.0.300.0100.00018.77
8.0.290.0000.00917.13
8.0.280.0090.00018.60
8.0.270.0030.00617.07
8.0.260.0000.00917.20
8.0.250.0030.00617.32
8.0.240.0030.00617.40
8.0.230.0030.00617.18
8.0.220.0000.00817.14
8.0.210.0040.00816.85
8.0.200.0000.00917.21
8.0.190.0090.00017.16
8.0.180.0140.01017.17
8.0.170.0130.01017.23
8.0.160.0190.00317.17
8.0.150.0150.00717.13
8.0.140.0150.00917.00
8.0.130.0200.00617.09
8.0.120.0140.00917.13
8.0.110.0170.00617.17
8.0.100.0140.01017.14
8.0.90.0140.00716.99
8.0.80.0150.00617.09
8.0.70.0140.00717.17
8.0.60.0200.00016.97
8.0.50.0160.00717.00
8.0.30.0180.00417.19
8.0.20.0190.00317.27
8.0.10.0090.00917.04
7.4.330.0000.00915.55
7.4.320.0040.00416.86
7.4.300.0050.00316.81
7.4.290.0080.01216.80
7.4.280.0120.00916.75
7.4.270.0130.00816.74
7.4.260.0160.01216.76
7.4.250.0260.00616.75
7.4.240.0190.00616.81
7.4.230.0210.00716.75
7.4.220.0100.01316.79
7.4.210.0180.00316.79
7.4.200.0140.00716.78
7.4.190.0180.00416.78
7.4.180.0140.00716.87
7.4.160.0170.00316.80
7.4.150.0160.00616.77
7.4.140.0120.01216.75
7.4.130.0170.00616.60
7.4.120.0090.01316.56
7.4.110.0110.00716.72
7.4.100.0100.00516.80
7.4.90.0150.00016.71
7.4.80.0070.00716.74
7.4.70.0040.01116.57
7.4.60.0050.01016.64
7.4.50.0060.00916.55
7.4.40.0110.00416.52
7.4.30.0100.00516.57
7.4.20.0170.00316.85
7.4.10.0150.00716.74
7.4.00.0180.00416.78

preferences:
80.16 ms | 401 KiB | 5 Q