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 = "~t=(.*?)<!--ENDBODY-->~"; $output = preg_match_all($regex, $str, $matches); print_r($matches[1]);

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.0120.00316.63
8.3.50.0100.01022.12
8.3.40.0140.00318.75
8.3.30.0110.00418.71
8.3.20.0050.00220.43
8.3.10.0030.00321.73
8.3.00.0040.00419.38
8.2.180.0060.01216.88
8.2.170.0110.00422.96
8.2.160.0100.00320.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00819.66
8.2.110.0000.00922.29
8.2.100.0080.00417.91
8.2.90.0030.00619.22
8.2.80.0050.00317.97
8.2.70.0100.00017.50
8.2.60.0030.00617.93
8.2.50.0000.00818.07
8.2.40.0000.00820.07
8.2.30.0070.00017.97
8.2.20.0050.00317.73
8.2.10.0040.00418.06
8.2.00.0040.00417.73
8.1.280.0110.00725.92
8.1.270.0080.00020.73
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0160.00618.92
8.1.230.0060.00622.11
8.1.220.0030.00517.74
8.1.210.0090.00018.77
8.1.200.0080.00317.22
8.1.190.0050.00317.35
8.1.180.0030.00518.10
8.1.170.0040.00420.42
8.1.160.0070.00021.98
8.1.150.0040.00418.93
8.1.140.0000.00717.44
8.1.130.0020.00517.76
8.1.120.0030.00517.44
8.1.110.0040.00417.51
8.1.100.0030.00517.61
8.1.90.0050.00317.58
8.1.80.0050.00217.48
8.1.70.0000.00817.53
8.1.60.0030.00517.71
8.1.50.0050.00517.62
8.1.40.0090.00017.50
8.1.30.0030.00517.74
8.1.20.0050.00317.72
8.1.10.0040.00417.67
8.1.00.0000.00817.64
8.0.300.0000.00718.77
8.0.290.0060.00316.75
8.0.280.0040.00418.35
8.0.270.0000.00817.12
8.0.260.0000.00617.21
8.0.250.0000.00717.05
8.0.240.0000.00717.07
8.0.230.0040.00416.89
8.0.220.0020.00516.96
8.0.210.0030.00516.93
8.0.200.0060.00017.05
8.0.190.0050.00317.02
8.0.180.0000.00716.98
8.0.170.0000.00816.91
8.0.160.0000.00716.88
8.0.150.0000.00816.92
8.0.140.0040.00416.92
8.0.130.0060.00013.39
8.0.120.0020.00516.94
8.0.110.0040.00417.02
8.0.100.0000.00916.79
8.0.90.0040.00416.83
8.0.80.0090.01217.02
8.0.70.0050.00516.85
8.0.60.0000.00716.89
8.0.50.0070.00016.84
8.0.30.0120.00917.01
8.0.20.0130.00517.40
8.0.10.0040.00417.04
8.0.00.0100.00817.02
7.4.330.0050.00015.05
7.4.320.0030.00316.64
7.4.300.0000.00616.61
7.4.290.0080.00016.69
7.4.280.0030.00516.65
7.4.270.0030.00316.75
7.4.260.0030.00616.68
7.4.250.0040.00416.60
7.4.240.0090.00016.64
7.4.230.0040.00416.81
7.4.220.0090.01116.78
7.4.210.0060.01316.61
7.4.200.0070.00016.64
7.4.160.0120.00316.52
7.4.150.0100.00717.40
7.4.140.0130.00917.86
7.4.130.0090.00916.60
7.4.120.0130.00816.63
7.4.110.0140.00516.56
7.4.100.0110.00716.58
7.4.90.0060.01216.82
7.4.80.0090.01219.39
7.4.70.0070.01316.65
7.4.60.0130.00316.57
7.4.50.0040.00016.64
7.4.40.0060.01216.45
7.4.30.0060.01316.65
7.4.00.0090.00814.95
7.3.330.0000.00713.10
7.3.320.0110.00813.11
7.3.310.0030.00316.18
7.3.300.0080.00016.34
7.3.290.0080.00816.32
7.3.280.0080.01016.38
7.3.270.0120.01217.40
7.3.260.0030.01316.52
7.3.250.0080.01016.36
7.3.240.0170.00316.44
7.3.230.0150.00316.50
7.3.210.0100.00716.25
7.3.200.0030.01519.39
7.3.190.0120.00416.21
7.3.180.0090.01216.41
7.3.170.0070.01016.32
7.3.160.0030.01416.57
7.3.120.0100.00714.89
7.3.110.0000.01914.71
7.3.100.0080.00814.89
7.3.90.0110.00015.06
7.3.80.0140.00015.00
7.3.70.0030.00614.97
7.3.60.0090.00314.79
7.3.50.0040.01114.95
7.3.40.0070.00314.75
7.3.30.0060.00614.41
7.3.20.0030.01416.61
7.3.10.0120.00316.51
7.3.00.0060.00616.89
7.2.330.0100.01016.49
7.2.320.0100.00616.61
7.2.310.0090.00916.53
7.2.300.0130.01016.67
7.2.290.0030.02316.70
7.2.250.0090.01215.18
7.2.240.0030.01315.19
7.2.230.0040.01515.08
7.2.220.0080.00415.21
7.2.210.0060.00615.01
7.2.200.0060.00614.94
7.2.190.0040.01114.82
7.2.180.0070.01015.08
7.2.170.0000.01015.05
7.2.00.0000.01219.21
7.1.330.0000.01416.02
7.1.320.0040.00716.13
7.1.310.0000.01315.91
7.1.300.0080.00515.79
7.1.290.0080.00415.80
7.1.280.0000.01416.04
7.1.270.0030.00915.89
7.1.260.0090.00616.16
7.1.100.0090.00918.45
7.1.70.0000.01217.33
7.1.60.0030.01619.50
7.1.50.0070.01816.59
7.1.00.0100.07022.37
7.0.200.0000.00916.80
7.0.140.0070.06722.07
7.0.60.0100.07720.07
7.0.50.0100.06317.97
7.0.40.0130.04020.22
7.0.30.0370.06720.28
7.0.20.0230.05320.20
7.0.10.0200.04320.19
7.0.00.0030.04320.11
5.6.280.0100.06721.14
5.6.210.0100.05720.54
5.6.200.0030.05718.17
5.6.190.0100.03720.41
5.6.180.0200.04320.59
5.6.170.0270.04720.44
5.6.160.0100.08320.71
5.6.150.0100.03318.14
5.6.140.0030.04018.18
5.6.130.0100.08018.18
5.6.120.0130.07720.98
5.6.110.0070.07321.02
5.6.100.0030.07320.97
5.6.90.0130.07321.08
5.6.80.0000.09320.41
5.6.70.0130.07320.34
5.5.350.0100.07020.52
5.5.340.0070.05318.07
5.5.330.0100.08020.13
5.5.320.0200.07720.32
5.5.310.0230.06720.27
5.5.300.0100.05717.95
5.5.290.0030.05317.95
5.5.280.0030.05320.64
5.5.270.0130.08020.73
5.5.260.0100.06020.65
5.5.250.0130.07320.70
5.5.240.0100.07020.12
5.4.450.0770.06719.61
5.4.440.0630.07019.55
5.4.430.0770.06019.60
5.4.420.0800.05719.61
5.4.410.0900.05319.34
5.4.400.0170.05018.57
5.4.390.0270.04718.68
5.4.380.0170.05318.48
5.4.370.0070.06318.43
5.4.360.0170.05318.79
5.4.350.0170.05718.71
5.4.340.0230.05018.80
5.4.320.0200.05318.43
5.4.310.0230.07018.66
5.4.300.0130.07718.57
5.4.290.0230.05018.76
5.4.280.0170.06318.68
5.4.270.0130.07318.68
5.4.260.0270.04718.73
5.4.250.0170.08018.70
5.4.240.0070.06718.59
5.4.230.0130.06018.77
5.4.220.0370.03718.74
5.4.210.0070.06318.41
5.4.200.0130.05316.60
5.4.190.0170.05018.55
5.4.180.0130.07018.53
5.4.170.0100.06018.74
5.4.160.0230.04718.44
5.4.150.0100.05718.75
5.4.140.0100.05716.20
5.4.130.0170.04716.29
5.4.120.0070.05316.27
5.4.110.0270.04016.27
5.4.100.0130.05316.27
5.4.90.0170.05016.28
5.4.80.0170.04716.25
5.4.70.0130.05316.20
5.4.60.0130.05016.15
5.4.50.0130.05716.39
5.4.40.0170.05316.21
5.4.30.0200.04316.16
5.4.20.0100.05716.18
5.4.10.0100.05716.36
5.4.00.0270.04715.88
5.3.290.0030.06714.75
5.3.280.0230.05314.64
5.3.270.0270.04314.88
5.3.260.0170.05314.87
5.3.250.0130.05714.59
5.3.240.0200.04714.77
5.3.230.0230.05314.69
5.3.220.0230.05014.75
5.3.210.0230.05314.60
5.3.200.0170.05014.63
5.3.190.0270.04314.61
5.3.180.0030.07014.57
5.3.170.0200.04714.82
5.3.160.0230.04314.61
5.3.150.0170.05014.71
5.3.140.0200.05014.82
5.3.130.0170.05314.54
5.3.120.0130.06314.58
5.3.110.0170.05714.69
5.3.100.0070.06314.04
5.3.90.0100.05714.17
5.3.80.0200.04713.99
5.3.70.0130.05314.05
5.3.60.0200.05714.05
5.3.50.0200.05013.99
5.3.40.0130.05314.05
5.3.30.0170.05014.05
5.3.20.0270.04013.95
5.3.10.0130.05313.75
5.3.00.0000.06313.63
5.2.170.0130.04311.23
5.2.160.0170.04311.19
5.2.150.0200.03711.23
5.2.140.0170.04311.23
5.2.130.0130.04011.19
5.2.120.0230.03011.17
5.2.110.0130.04011.14
5.2.100.0130.04011.11
5.2.90.0200.03311.09
5.2.80.0230.04711.14
5.2.70.0170.04711.18
5.2.60.0100.04711.09
5.2.50.0130.04011.13
5.2.40.0130.03311.09
5.2.30.0130.03711.03
5.2.20.0170.03011.03
5.2.10.0130.03710.88
5.2.00.0130.04010.80
5.1.60.0000.04310.11
5.1.50.0100.0379.91
5.1.40.0130.03010.03
5.1.30.0030.04310.46
5.1.20.0070.04010.39
5.1.10.0000.04710.10
5.1.00.0070.04010.06
5.0.50.0070.0308.57
5.0.40.0070.0278.46
5.0.30.0030.0478.20
5.0.20.0030.0308.20
5.0.10.0030.0308.22
5.0.00.0000.0478.18
4.4.90.0070.0205.90
4.4.80.0070.0235.96
4.4.70.0030.0235.93
4.4.60.0070.0205.81
4.4.50.0070.0205.88
4.4.40.0000.0405.91
4.4.30.0030.0235.89
4.4.20.0030.0235.91
4.4.10.0030.0236.00
4.4.00.0030.0375.94
4.3.110.0030.0235.75
4.3.100.0070.0235.73
4.3.90.0030.0235.80
4.3.80.0070.0335.83
4.3.70.0070.0235.89
4.3.60.0070.0205.78
4.3.50.0030.0235.81
4.3.40.0030.0405.83
4.3.30.0030.0234.57
4.3.20.0000.0334.52
4.3.10.0000.0274.57
4.3.00.0130.0237.19

preferences:
48.59 ms | 401 KiB | 5 Q