3v4l.org

run code in 300+ PHP versions simultaneously
<?php $haystack3 = '<span class=\'descr\'>test, test2, test3</span> <span class=\'descr\'>test</span> <span class=\'descr\'>test4 test5</span>'; preg_match_all('#^<span class=\'descr\'>(.*?)</span>$#m', $haystack3, $matches3); $data3 = explode(',', $matches3[1]); $data3 = array_filter(array_unique(array_map('trim', $data3))); natsort($data3); echo '<b>' . join(', ' , $data3 ) . '</b>'; echo "<br>\n"; echo '<font color="blue">' . '<b>' . count( $data3 ) . '</b>' . '</font>' . " tags were found." . '<br>'; ?>

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.130.0070.01018.59
8.3.120.0030.00720.59
8.3.110.0000.00816.76
8.3.100.0090.00918.63
8.3.90.0030.00616.74
8.3.80.0070.00318.68
8.3.70.0090.00918.56
8.3.60.0130.00617.00
8.3.50.0140.00418.55
8.3.40.0030.01319.05
8.3.30.0040.01118.92
8.3.20.0050.00324.18
8.3.10.0060.00324.66
8.3.00.0000.00826.16
8.2.250.0040.00416.84
8.2.240.0100.01017.16
8.2.230.0030.00620.94
8.2.220.0060.00324.06
8.2.210.0040.01126.77
8.2.200.0030.00616.75
8.2.190.0070.01117.00
8.2.180.0060.00925.92
8.2.170.0190.00319.09
8.2.160.0100.00322.96
8.2.150.0050.00225.66
8.2.140.0080.00024.66
8.2.130.0030.00626.16
8.2.120.0080.00026.16
8.2.110.0030.00622.03
8.2.100.0030.00618.79
8.1.300.0000.01620.37
8.1.290.0120.00018.88
8.1.280.0090.00625.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.00918.99
8.1.230.0060.00318.78
5.6.00.0050.00315.69

preferences:
25.39 ms | 403 KiB | 5 Q