3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '<!--BODY-->Thank you for enrolling for Invoice Gateway with Harry Cooper Supply Company<br /> <br /> To activate your Invoice Gateway account, please click the below link.<br /> <br /> If you cannot click this link, you should copy and paste this entire link into your browser or AOL address box and press enter.<br /> <br /> https://secure.billtrust.local/harrycooper/ig/signup/activate?t=12345BYCKCBJTVHPKU<!--ENDBODY-->'; $regex = "~https://(.*?)<!--ENDBODY-->~"; $output = preg_match_all($regex, $str, $matches); print_r($matches);

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.0110.00416.75
8.3.50.0080.01022.00
8.3.40.0070.00718.64
8.3.30.0000.01518.70
8.3.20.0040.00420.35
8.3.10.0040.00421.73
8.3.00.0000.00819.25
8.2.180.0090.01216.63
8.2.170.0070.00722.96
8.2.160.0140.00020.21
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0060.00326.16
8.2.120.0040.00419.76
8.2.110.0110.00020.56
8.2.100.0050.00518.03
8.2.90.0030.00519.09
8.2.80.0030.00517.97
8.2.70.0040.00417.75
8.2.60.0040.00417.55
8.2.50.0000.00918.07
8.2.40.0040.00420.00
8.2.30.0040.00418.01
8.2.20.0000.00817.68
8.2.10.0030.00617.96
8.2.00.0020.00517.81
8.1.280.0170.00325.92
8.1.270.0080.00020.51
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.91
8.1.230.0080.00419.61
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0050.00317.22
8.1.180.0040.00418.10
8.1.170.0030.00520.41
8.1.160.0000.00821.97
8.1.150.0030.00518.77
8.1.140.0070.00017.58
8.1.130.0000.00717.84
8.1.120.0030.00317.55
8.1.110.0050.00317.53
8.1.100.0080.00017.57
8.1.90.0040.00417.55
8.1.80.0030.00617.53
8.1.70.0070.00017.48
8.1.60.0040.00417.73
8.1.50.0040.00417.57
8.1.40.0040.00417.69
8.1.30.0030.00517.77
8.1.20.0000.00817.70
8.1.10.0040.00417.68
8.1.00.0030.00517.62
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0030.00318.45
8.0.270.0000.00717.14
8.0.260.0020.00517.19
8.0.250.0000.00717.01
8.0.240.0040.00417.03
8.0.230.0000.00717.05
8.0.220.0030.00316.95
8.0.210.0030.00316.99
8.0.200.0000.00616.93
8.0.190.0040.00416.92
8.0.180.0000.00716.88
8.0.170.0050.00316.88
8.0.160.0080.00016.89
8.0.150.0000.00716.96
8.0.140.0040.00416.98
8.0.130.0000.00513.38
8.0.120.0040.00416.95
8.0.110.0000.00816.87
8.0.100.0040.00417.01
8.0.90.0030.00516.99
8.0.80.0100.00616.91
8.0.70.0040.00516.77
8.0.60.0050.00217.00
8.0.50.0040.00416.83
8.0.30.0090.01117.25
8.0.20.0110.00817.40
8.0.10.0000.00716.96
8.0.00.0060.01116.74
7.4.330.0030.00315.05
7.4.320.0000.00716.72
7.4.300.0030.00316.64
7.4.290.0000.00716.59
7.4.280.0040.00416.62
7.4.270.0040.00416.69
7.4.260.0070.00016.75
7.4.250.0060.00316.71
7.4.240.0030.00516.69
7.4.230.0030.00416.65
7.4.220.0070.01716.79
7.4.210.0070.00916.70
7.4.200.0000.00816.63
7.4.160.0070.00716.45
7.4.150.0120.00617.40
7.4.140.0130.00417.86
7.4.130.0080.00916.64
7.4.120.0020.01616.61
7.4.110.0100.01316.59
7.4.100.0170.00616.65
7.4.90.0100.00716.67
7.4.80.0120.00919.39
7.4.70.0080.00816.57
7.4.60.0070.00916.84
7.4.50.0040.00016.77
7.4.40.0080.01416.70
7.4.30.0030.01316.55
7.4.00.0080.00815.07
7.3.330.0050.00013.13
7.3.320.0140.00013.02
7.3.310.0050.00316.34
7.3.300.0000.00716.18
7.3.290.0070.00016.30
7.3.280.0060.00916.31
7.3.270.0130.01317.40
7.3.260.0170.00016.68
7.3.250.0090.01016.39
7.3.240.0100.00716.29
7.3.230.0120.00916.39
7.3.210.0130.00316.29
7.3.200.0100.00719.39
7.3.190.0060.01516.65
7.3.180.0080.00816.33
7.3.170.0070.01016.58
7.3.160.0130.00316.28
7.2.330.0160.00316.73
7.2.320.0060.01616.51
7.2.310.0120.01316.72
7.2.300.0070.01416.68
7.2.290.0090.01516.70
7.2.80.0060.00316.87
7.2.60.0030.00617.10
7.2.00.0180.00918.96
7.1.200.0060.00315.95
7.1.100.0030.01318.03
7.1.70.0080.00017.00
7.1.60.0160.00919.50
7.1.50.0170.00716.66
7.1.00.0100.07022.46
7.0.200.0030.00616.80
7.0.140.0130.04721.95
7.0.60.0030.04319.97
7.0.50.0070.05717.93
7.0.40.0030.06020.28
7.0.30.0200.05320.27
7.0.20.0200.08720.25
7.0.10.0300.07720.22
7.0.00.0070.04020.14
5.6.280.0030.07021.12
5.6.210.0000.09320.71
5.6.200.0130.07318.29
5.6.190.0030.04320.63
5.6.180.0200.05020.75
5.6.170.0270.07320.71
5.6.160.0030.06020.54
5.6.150.0030.05318.18
5.6.140.0030.08318.23
5.6.130.0100.07718.11
5.6.120.0000.06721.13
5.6.110.0170.07320.95
5.6.100.0030.08721.13
5.6.90.0170.07721.11
5.6.80.0100.05720.38
5.6.70.0030.07020.52
5.5.350.0130.08320.41
5.5.340.0070.07017.95
5.5.330.0070.06020.37
5.5.320.0070.05720.47
5.5.310.0300.07720.34
5.5.300.0030.08318.07
5.5.290.0070.07717.99
5.5.280.0130.07720.79
5.5.270.0070.08720.67
5.5.260.0100.07720.75
5.5.250.0100.06020.45
5.5.240.0130.07020.18
5.4.450.0870.06319.32
5.4.440.0870.05719.44
5.4.430.1030.05719.44
5.4.420.0930.05019.16
5.4.410.0770.05019.29
5.4.400.0030.06718.87
5.4.390.0200.05018.68
5.4.380.0230.04718.80
5.4.370.0230.04718.80
5.4.360.0230.04718.44
5.4.350.0230.05018.76
5.4.340.0230.04318.69
5.4.320.0130.05718.65
5.4.310.0100.05718.54
5.4.300.0200.07318.68
5.4.290.0200.05018.57
5.4.280.0170.05318.71
5.4.270.0270.04718.75
5.4.260.0170.06018.55
5.4.250.0200.07318.66
5.4.240.0170.06018.52
5.4.230.0130.06318.41
5.4.220.0170.06018.40
5.4.210.0200.06018.54
5.4.200.0270.05016.78
5.4.190.0100.06318.53
5.4.180.0270.05718.53
5.4.170.0170.05718.64
5.4.160.0230.04718.69
5.4.150.0100.06318.46
5.4.140.0200.05016.25
5.4.130.0170.06316.15
5.4.120.0230.04316.23
5.4.110.0130.05316.16
5.4.100.0270.04316.39
5.4.90.0170.05016.26
5.4.80.0200.04316.27
5.4.70.0200.04716.26
5.4.60.0200.04316.26
5.4.50.0200.04716.25
5.4.40.0170.05316.21
5.4.30.0200.06716.36
5.4.20.0100.05716.09
5.4.10.0170.04716.25
5.4.00.0270.04015.74
5.3.290.0230.04714.70
5.3.280.0170.05314.78
5.3.270.0200.05014.76
5.3.260.0130.05714.80
5.3.250.0100.06714.79
5.3.240.0270.04314.67
5.3.230.0300.04014.75
5.3.220.0130.05314.57
5.3.210.0200.05714.60
5.3.200.0130.05714.57
5.3.190.0230.04714.65
5.3.180.0170.05714.54
5.3.170.0200.05014.71
5.3.160.0200.05014.61
5.3.150.0200.05714.65
5.3.140.0300.05314.74
5.3.130.0130.06014.57
5.3.120.0130.06014.57
5.3.110.0130.05714.59
5.3.100.0070.06714.20
5.3.90.0170.05014.09
5.3.80.0170.05014.06
5.3.70.0170.05014.02
5.3.60.0100.06014.04
5.3.50.0170.05014.05
5.3.40.0100.06313.94
5.3.30.0200.04713.95
5.3.20.0070.06013.71
5.3.10.0230.04713.75
5.3.00.0230.04013.70
5.2.170.0100.04711.23
5.2.160.0100.04311.24
5.2.150.0230.05011.24
5.2.140.0070.05311.21
5.2.130.0170.03711.36
5.2.120.0070.05311.17
5.2.110.0130.04011.09
5.2.100.0200.03311.20
5.2.90.0100.04711.19
5.2.80.0130.04311.16
5.2.70.0070.04711.19
5.2.60.0070.04711.09
5.2.50.0200.03311.06
5.2.40.0070.04311.00
5.2.30.0130.04711.07
5.2.20.0070.04711.13
5.2.10.0170.03711.04
5.2.00.0100.04310.91
5.1.60.0200.0239.91
5.1.50.0170.03010.05
5.1.40.0130.0409.98
5.1.30.0070.04010.27
5.1.20.0070.04010.34
5.1.10.0130.03010.17
5.1.00.0070.04010.16
5.0.50.0130.0238.57
5.0.40.0030.0308.43
5.0.30.0070.0438.16
5.0.20.0130.0208.38
5.0.10.0100.0238.18
5.0.00.0100.0408.16
4.4.90.0030.0275.89
4.4.80.0070.0205.90
4.4.70.0030.0235.97
4.4.60.0070.0205.90
4.4.50.0070.0205.90
4.4.40.0030.0405.91
4.4.30.0030.0235.87
4.4.20.0000.0275.96
4.4.10.0100.0175.93
4.4.00.0100.0375.91
4.3.110.0130.0135.86
4.3.100.0100.0175.82
4.3.90.0030.0235.78
4.3.80.0100.0305.82
4.3.70.0030.0235.82
4.3.60.0100.0205.80
4.3.50.0130.0175.88
4.3.40.0030.0375.74
4.3.30.0030.0234.59
4.3.20.0070.0204.52
4.3.10.0070.0274.52
4.3.00.0100.0237.19

preferences:
41.84 ms | 401 KiB | 5 Q