3v4l.org

run code in 500+ 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.5.80.0070.00116.99
8.5.70.0060.00218.69
8.5.60.0070.01017.21
8.5.50.0060.00216.91
8.5.30.0110.00619.61
8.5.20.0100.00819.54
8.5.10.0130.00517.07
8.5.00.0130.01020.36
8.4.230.0070.00519.99
8.4.220.0140.00719.93
8.4.210.0100.01119.92
8.4.180.0120.00923.75
8.4.170.0140.00823.79
8.4.160.0110.01122.29
8.4.150.0070.00617.92
8.4.140.0090.01317.92
8.4.130.0050.00419.66
8.4.120.0140.00720.48
8.4.110.0130.01018.71
8.4.100.0140.00718.07
8.4.90.0140.00818.73
8.4.80.0110.00818.20
8.4.70.0050.00418.06
8.4.60.0170.00318.64
8.4.50.0110.00918.11
8.4.40.0200.00019.62
8.4.30.0130.00618.81
8.4.20.0080.00820.77
8.4.10.0120.00618.63
8.3.320.0070.01318.84
8.3.310.0140.00718.79
8.3.300.0120.00822.89
8.3.290.0100.01120.92
8.3.280.0100.01118.84
8.3.270.0130.00816.51
8.3.260.0090.00816.73
8.3.250.0100.00719.05
8.3.240.0130.00716.39
8.3.230.0110.01016.71
8.3.220.0040.00317.22
8.3.210.0110.01016.97
8.3.200.0050.00316.92
8.3.190.0110.00517.28
8.3.180.0110.00816.95
8.3.170.0090.00919.00
8.3.160.0090.01218.66
8.3.150.0110.00720.59
8.3.140.0070.01017.04
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.320.0140.00618.41
8.2.310.0090.00918.25
8.2.300.0040.00522.32
8.2.290.0060.00320.49
8.2.280.0160.00718.72
8.2.270.0110.00816.99
8.2.260.0110.00718.60
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.340.0160.00518.00
8.1.330.0120.00822.21
8.1.320.0130.00616.35
8.1.310.0140.00016.97
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:
54.85 ms | 911 KiB | 5 Q