3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<HTML <li class="item" xx-href-xx="http://xx.xx/s/randomtext/randomtext?NOTradnomtext" yy-href-gg="http://xx.xx/X/RANDOMTEXTWHATIWANT/STILLRADNOMTEXTWHATIWANT?NOTradnomtext" data="212123134" data-title="TITLE"> <a class="front" href="#" xx-href="http://xx.xx/s/randomtext/randomtext?NOTradnomtext"> <img src="http://photo.jpg" alt=""> <div class="cock"> <div class="action"></div> </div> </a> <div class="label"> <div> <h3 class="title">Example</h3> <p>2013-10-25 : 03:35</p> </div> </div> </li> HTML; preg_match_all( '# [a-z]{2}-href-[a-z]{2}="https?://[^/"?]+/[^/"?]+/\K[^/"?]+/[^/"?]+#i', $html, $matches ); var_export($matches[0]);

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.4.140.0130.00917.59
8.4.130.0110.00717.98
8.4.120.0060.00322.32
8.4.110.0080.00624.16
8.4.100.0120.00917.75
8.4.90.0100.01018.86
8.4.80.0030.00618.23
8.4.70.0070.00318.04
8.4.60.0120.00818.69
8.4.50.0050.00317.71
8.4.40.0160.00320.63
8.4.30.0130.00620.82
8.4.20.0060.00318.01
8.4.10.0080.00822.10
8.3.270.0110.00816.47
8.3.260.0110.00916.93
8.3.250.0100.00720.72
8.3.240.0120.00816.51
8.3.230.0090.00716.54
8.3.220.0060.00219.03
8.3.210.0120.00716.85
8.3.200.0070.00216.56
8.3.190.0090.01018.79
8.3.180.0080.01216.43
8.3.170.0140.00018.79
8.3.160.0090.00616.64
8.3.150.0090.00917.01
8.3.140.0030.00617.13
8.3.130.0070.01318.29
8.3.120.0030.00620.79
8.3.110.0080.00020.94
8.3.100.0040.00418.46
8.3.90.0000.00816.63
8.3.80.0030.00618.55
8.3.70.0150.00616.63
8.3.60.0070.01418.07
8.3.50.0120.00318.46
8.3.40.0110.00421.87
8.3.30.0030.01218.84
8.3.20.0090.00924.18
8.3.10.0050.00524.66
8.3.00.0040.00426.16
8.2.290.0110.00820.49
8.2.280.0140.00518.27
8.2.270.0090.00617.22
8.2.260.0080.00018.82
8.2.250.0030.00620.55
8.2.240.0040.00818.89
8.2.230.0030.00622.58
8.2.220.0070.00337.54
8.2.210.0080.00026.77
8.2.200.0060.00618.54
8.2.190.0040.01116.88
8.2.180.0100.01016.75
8.2.170.0120.00318.89
8.2.160.0080.00622.96
8.2.150.0000.00825.66
8.2.140.0050.00224.66
8.2.130.0080.00026.16
8.2.120.0040.00419.61
8.2.110.0090.00022.33
8.2.100.0080.00317.84
8.2.90.0060.00317.88
8.2.80.0080.00018.91
8.2.70.0000.00917.75
8.2.60.0060.00317.93
8.2.50.0120.00017.60
8.2.40.0090.00317.75
8.2.30.0110.00017.49
8.2.20.0060.00617.34
8.2.10.0070.00317.50
8.2.00.0060.00617.50
8.1.330.0100.00922.26
8.1.320.0070.01216.55
8.1.310.0080.01116.46
8.1.300.0080.00018.41
8.1.290.0040.00718.88
8.1.280.0030.01425.92
8.1.270.0000.00824.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0120.00923.82
8.1.230.0100.00322.67
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0050.00317.35
8.1.190.0030.00717.25
8.1.180.0050.00517.25
8.1.170.0070.00217.00
8.1.160.0090.00617.00
8.1.150.0060.00617.25
8.1.140.0030.00717.35
8.1.130.0090.00317.38
8.1.120.0120.00017.25
8.1.110.0080.00517.13
8.1.100.0090.00317.25
8.1.90.0070.00417.38
8.1.80.0060.00617.47
8.1.70.0100.00317.25
8.1.60.0000.01017.38
8.1.50.0100.00317.47
8.1.40.0030.00617.60
8.1.30.0120.00017.38
8.1.20.0000.01217.50
8.1.10.0040.00817.25
8.1.00.0030.00817.25
8.0.300.0000.00718.77
8.0.290.0040.00417.00
8.0.280.0030.00916.75
8.0.270.0060.00616.42
8.0.260.0070.00316.75
8.0.250.0060.00516.74
8.0.240.0000.00816.75
8.0.230.0040.00716.75
8.0.220.0060.00316.75
8.0.210.0040.00716.75
8.0.200.0050.00316.88
8.0.190.0000.01116.88
8.0.180.0060.00316.63
8.0.170.0050.00316.75
8.0.160.0080.00516.50
8.0.150.0040.01216.42
8.0.140.0090.00616.75
8.0.130.0120.00416.42
8.0.120.0070.00716.42
8.0.110.0160.00016.42
8.0.100.0000.01416.59
8.0.90.0090.00216.50
8.0.80.0130.00316.42
8.0.70.0100.00316.59
8.0.60.0110.00416.42
8.0.50.0070.00916.50
8.0.30.0130.00316.42
8.0.20.0090.00616.48
8.0.10.0040.00816.73

preferences:
16.8 ms | 403 KiB | 5 Q