3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = '<th class="title"> <div class="subject"> <a href="158391487256182472-1-1.html" title="Jomashop:Swarovski"></a> </div> </th> <td class="author"> <a href="profile-42357964-1.html" title="author"><span>cat</span></a> <span>2017-02-16</span> </td> <div class="link0 list-side-hd moderator-noborder obj2subject"><h3 class="fl"></h3></div><ul class="list-side-bd list-recommend list-recommend2 link1"><li><a target="_blank" href="//go.cqmmgo.com/forum-462505-thread-94061456905358538-1-1.html"><img width="120" height="160" title="#" alt="#" src="//att3.citysbs.com/120x120/chongqing/2016/03/09/09/160x120-092826_v2_11861457486906377_58b326482e2aa1f1da0f8455ac42187f.jpg"></a></li><li><a target="_blank" href="//go.cqmmgo.com/forum-462505-thread-179021457000027333-1-1.html"><img width="120" height="160" title="#" alt="#" src="//att3.citysbs.com/120x120/chongqing/2016/03/09/09/160x120-092826_v2_20771457486906773_31eb80d49e9ef06418003e577cc1453f.jpg"></a></li><li><a target="_blank" href="//go.cqmmgo.com/forum-462505-thread-93091456983256969-1-1.html"><img width="120" height="160" title="#" alt="#" src="//att3.citysbs.com/120x120/chongqing/2016/03/09/09/160x120-092827_v2_20231457486907098_05bc3d4608c961af0660722e03049e20.jpg"><span>abc</span></a></li><li><a target="_blank" href="//go.cqmmgo.com/forum-462505-thread-13801456844284137-1-1.html"><img width="120" height="160" title="#" alt="#" src="//att3.citysbs.com/120x120/chongqing/2016/03/09/09/160x120-092827_v2_14121457486907436_d49c002ba8675553c5436e80f305aca7.jpg"><span>xxxxxxxxxxxxxxxxxxxxxxxxxxxxx</span></a></li></ul></div>'; $ret = preg_match_all('/subject[\s\S]+?href="(.+?)"[\s\S]+?title="([\s\S]+?)"[\s\S]+?profile/', $content, $matches); var_dump($matches); // have array result var_dump($ret); // bug the return value is false

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.0090.01218.52
8.3.50.0070.00718.22
8.3.40.0070.00718.67
8.3.30.0110.00418.85
8.3.20.0080.00321.85
8.3.10.0070.00020.34
8.3.00.0080.00320.84
8.2.180.0120.00318.18
8.2.170.0080.00822.96
8.2.160.0100.00320.53
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00321.17
8.2.110.0060.00319.30
8.2.100.0040.00817.90
8.2.90.0000.00819.22
8.2.80.0050.00317.97
8.2.70.0040.00417.75
8.2.60.0000.00817.93
8.2.50.0070.00518.10
8.2.40.0040.00420.42
8.2.30.0000.00821.00
8.2.20.0040.00417.93
8.2.10.0040.00418.02
8.2.00.0070.00018.29
8.1.280.0110.00425.92
8.1.270.0040.00423.88
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0040.00719.22
8.1.230.0100.00619.00
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0100.00017.36
8.1.190.0080.00017.35
8.1.180.0030.00518.10
8.1.170.0080.00018.44
8.1.160.0040.00418.83
8.1.150.0030.00620.21
8.1.140.0000.00819.57
8.1.130.0030.00319.02
8.1.120.0000.00717.60
8.1.110.0030.00617.49
8.1.100.0000.00717.48
8.1.90.0000.00717.63
8.1.80.0040.00417.53
8.1.70.0080.00317.60
8.1.60.0030.00617.65
8.1.50.0030.00617.63
8.1.40.0000.00917.66
8.1.30.0060.00317.75
8.1.20.0040.00417.61
8.1.10.0000.01017.75
8.1.00.0060.00617.65
8.0.300.0040.00418.77
8.0.290.0050.00316.88
8.0.280.0040.00418.34
8.0.270.0000.00717.30
8.0.260.0000.01017.18
8.0.250.0000.00716.95
8.0.240.0000.00817.05
8.0.230.0070.00016.96
8.0.220.0070.00017.03
8.0.210.0000.00717.03
8.0.200.0070.00016.93
8.0.190.0040.00417.07
8.0.180.0020.00516.90
8.0.170.0040.00416.91
8.0.160.0030.00517.02
8.0.150.0050.00216.96
8.0.140.0040.00417.01
8.0.130.0000.00713.46
8.0.120.0050.00316.96
8.0.110.0000.00717.09
8.0.100.0060.00317.11
8.0.90.0050.00316.87
8.0.80.0040.01117.00
8.0.70.0040.00416.89
8.0.60.0050.00216.77
8.0.50.0040.00416.90
8.0.30.0120.00817.12
8.0.20.0130.01717.43
8.0.10.0060.00316.96
8.0.00.0100.01316.66
7.4.330.0030.00315.55
7.4.320.0000.00716.66
7.4.300.0030.00616.83
7.4.290.0080.00016.67
7.4.280.0040.00416.80
7.4.270.0000.00716.66
7.4.260.0070.00016.76
7.4.250.0000.00816.59
7.4.240.0000.00716.68
7.4.230.0000.00716.66
7.4.220.0070.01316.78
7.4.210.0090.01216.84
7.4.200.0030.00316.58
7.4.160.0080.01016.61
7.4.150.0090.00917.40
7.4.140.0090.00817.86
7.4.130.0100.00816.59
7.4.120.0090.01016.69
7.4.110.0120.00616.68
7.4.100.0220.00616.49
7.4.90.0090.01216.61
7.4.80.0070.01419.39
7.4.70.0140.00716.56
7.4.60.0060.01016.57
7.4.50.0040.01116.35
7.4.40.0030.01316.65
7.4.30.0080.00816.67
7.4.00.0030.00915.07
7.3.330.0030.00313.05
7.3.320.0000.00513.04
7.3.310.0070.00016.19
7.3.300.0000.00716.30
7.3.290.0070.00916.31
7.3.280.0110.00616.34
7.3.270.0100.01017.40
7.3.260.0130.00816.48
7.3.250.0080.00916.52
7.3.240.0060.01116.44
7.3.230.0070.01116.33
7.3.210.0080.00816.39
7.3.200.0030.01316.33
7.3.190.0000.01616.40
7.3.180.0100.00716.40
7.3.170.0200.02016.45
7.3.160.0190.00016.28
7.2.330.0130.00516.71
7.2.320.0080.00816.56
7.2.310.0120.00616.71
7.2.300.0090.01216.71
7.2.290.0060.01316.65
7.2.60.0060.01016.93
7.2.30.0110.01118.23
7.2.20.0140.01418.27
7.2.10.0600.01518.13
7.2.00.0120.01618.15
7.1.200.0070.00715.61
7.1.150.0100.01617.03
7.1.140.0150.01517.07
7.1.130.0110.01617.07
7.1.120.0140.01717.10
7.1.110.0120.00816.55
7.1.100.0100.01116.40
7.1.90.0110.00816.14
7.1.80.0110.01316.21
7.1.70.0070.01016.22
7.1.60.0180.00925.28
7.1.50.0270.01133.04
7.1.40.0250.01332.92
7.1.30.0250.01832.85
7.1.20.0210.05036.45
7.1.10.0070.03918.58
7.1.00.0060.03618.57
7.0.270.0120.01516.34
7.0.260.0060.01516.82
7.0.250.0130.00915.89
7.0.240.0030.01416.21
7.0.230.0120.00915.98
7.0.220.0120.01115.88
7.0.210.0140.00814.81
7.0.200.0080.00915.88
7.0.190.0130.00615.02
7.0.180.0070.01114.63
7.0.170.1950.01214.66
7.0.160.0090.04018.22
7.0.150.0180.04418.17
7.0.140.0130.03118.29
7.0.130.0100.03218.34
7.0.120.0110.04418.44
7.0.110.0120.03318.27
7.0.100.0090.03818.25
7.0.90.0160.03718.40
7.0.80.0130.03518.28
7.0.70.0080.03418.43
7.0.60.0110.02918.25
7.0.50.0110.03318.29
7.0.40.0100.03318.25
7.0.30.0170.02918.44
7.0.20.0090.03318.36
7.0.10.0050.03518.41
7.0.00.0090.03218.26

preferences:
55.69 ms | 400 KiB | 5 Q