3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text='<p class="users_attr" style=""></p> <h3 class="show_user_h3" style=""><a href="/ru/tutors/violin/" class="link_users_attr">Игра на скрипке, виолончели</a></h3> , <h3 class="show_user_h3" style=""><a href="/ru/tutors/hrafika-1/" class="link_users_attr">Искусствоведение</a></h3> , <h3 class="show_user_h3" style=""><a href="/ru/tutors/uroki-vokala/" class="link_users_attr">Уроки вокала</a></h3> , <h3 class="show_user_h3" style=""><a href="/ru/tutors/hra-na-fortepano/" class="link_users_attr">Игра на фортепиано</a></h3> , <h3 class="show_user_h3" style=""><a href="/ru/tutors/sopilka/" class="link_users_attr">Игра на флейте</a></h3> , <h3 class="show_user_h3" style=""><a href="/ru/tutors/muzika/" class="link_users_attr">Музыка</a></h3> , <h3 class="show_user_h3" style=""><a href="/ru/tutors/psykholohiia/" class="link_users_attr">Психология</a></h3> <p style=""></p>'; $dom=new DOMDocument; $dom->loadHTML('<?xml encoding="utf-8" ?>' . $text); // https://stackoverflow.com/a/8218649/2943403 $xpath = new DOMXPath($dom); $data['cats'] = []; foreach ($xpath->query("//a") as $node) { $data['cats'][] = $node->nodeValue; } echo implode('; ', $data['cats']);

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.70.0130.00317.00
8.3.60.0090.00618.86
8.3.50.0180.00018.67
8.3.40.0090.00619.07
8.3.30.0080.00819.03
8.3.20.0040.00419.48
8.3.10.0040.00422.08
8.3.00.0060.00321.14
8.2.190.0120.00617.23
8.2.180.0110.01117.00
8.2.170.0000.01522.96
8.2.160.0130.00022.63
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00018.59
8.2.120.0030.00526.35
8.2.110.0060.00320.91
8.2.100.0090.00318.22
8.2.90.0000.00818.34
8.2.80.0040.00418.30
8.2.70.0060.00318.30
8.2.60.0000.00818.59
8.2.50.0000.00918.10
8.2.40.0080.00019.85
8.2.30.0040.00419.61
8.2.20.0050.00318.46
8.2.10.0080.00018.41
8.2.00.0000.00918.41
8.1.280.0090.00625.92
8.1.270.0070.00022.69
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00622.92
8.1.230.0040.00821.38
8.1.220.0040.00418.14
8.1.210.0040.00419.16
8.1.200.0000.00917.85
8.1.190.0070.00717.50
8.1.180.0050.00318.10
8.1.170.0090.00018.87
8.1.160.0000.00819.20
8.1.150.0000.00719.39
8.1.140.0040.00422.64
8.1.130.0000.00720.52
8.1.120.0000.00817.88
8.1.110.0040.00417.81
8.1.100.0040.00417.92
8.1.90.0000.00817.88
8.1.80.0090.00017.88
8.1.70.0040.00717.78
8.1.60.0080.00018.01
8.1.50.0040.00417.96
8.1.40.0030.00717.98
8.1.30.0000.00818.10
8.1.20.0040.00418.06
8.1.10.0000.00817.88
8.1.00.0000.00817.93
8.0.300.0070.00020.37
8.0.290.0080.00017.00
8.0.280.0030.00318.71
8.0.270.0040.00417.30
8.0.260.0030.00618.80
8.0.250.0080.00017.33
8.0.240.0030.00617.39
8.0.230.0030.00617.21
8.0.220.0060.00317.31
8.0.210.0030.00317.32
8.0.200.0030.00317.22
8.0.190.0040.00417.39
8.0.180.0030.00617.31
8.0.170.0060.00317.29
8.0.160.0050.00317.19
8.0.150.0000.00817.03
8.0.140.0040.00417.16
8.0.130.0060.00013.71
8.0.120.0070.00317.25
8.0.110.0000.00817.35
8.0.100.0070.00017.28
8.0.90.0030.00617.07
8.0.80.0060.01117.25
8.0.70.0040.00417.20
8.0.60.0070.00017.26
8.0.50.0040.00417.34
8.0.30.0120.00617.75
8.0.20.0190.00617.50
8.0.10.0080.00017.18
8.0.00.0080.01017.13
7.4.330.0050.00015.55
7.4.320.0060.00016.84
7.4.300.0040.00416.83
7.4.290.0000.00716.91
7.4.280.0060.00316.95
7.4.270.0000.00817.04
7.4.260.0040.00416.91
7.4.250.0000.00716.79
7.4.240.0000.00716.83
7.4.230.0030.00317.13
7.4.220.0090.00016.91
7.4.210.0110.00316.83
7.4.200.0030.00316.65
7.4.160.0130.00516.86
7.4.140.0070.01017.86
7.4.130.0120.00916.67
7.4.120.0080.00916.88
7.4.110.0070.01616.86
7.4.100.0130.01016.85
7.4.90.0070.01017.02
7.4.80.0090.00919.39
7.4.70.0080.00816.95
7.4.60.0170.00316.96
7.4.50.0030.01316.67
7.4.40.0080.00816.97
7.4.00.0110.00715.20
7.3.330.0030.00313.47
7.3.320.0030.00313.59
7.3.310.0000.01016.68
7.3.300.0030.00316.68
7.3.290.0000.00716.67
7.3.280.0140.00716.81
7.3.260.0110.00716.76
7.3.240.0060.01316.80
7.3.230.0100.01316.84
7.3.210.0110.00716.97
7.3.200.0060.01717.05
7.3.190.0060.01216.93
7.3.180.0160.00016.74
7.3.170.0080.00816.81
7.3.160.0130.00316.66
7.2.330.0070.01117.17
7.2.320.0090.00917.10
7.2.310.0060.01616.84
7.2.300.0100.00716.84
7.2.290.0080.00816.75
7.2.120.0080.00616.65
7.2.110.0130.00316.94
7.2.100.0100.00716.83
7.2.90.0090.00916.54
7.2.80.0090.00616.82
7.2.70.0060.00817.09
7.2.60.0030.01417.14
7.2.50.0030.01317.07
7.2.40.0070.01017.23
7.2.30.0070.01017.04
7.2.20.0110.00617.18
7.2.10.0060.01217.22
7.2.00.0110.00417.20
7.1.240.0090.00615.85
7.1.230.0000.01516.06
7.1.220.0100.00715.91
7.1.210.0030.01315.97
7.1.200.0110.00315.96
7.1.190.0120.00415.99
7.1.180.0070.00715.69
7.1.170.0040.01115.91
7.1.160.0060.01015.75
7.1.150.0070.00715.96
7.1.140.0040.01216.03
7.1.130.0090.00616.10
7.1.120.0090.00615.99
7.1.110.0060.01116.11
7.1.100.0090.00715.90
7.1.90.0070.00716.00
7.1.80.0070.00716.13
7.1.70.0140.00016.06
7.1.60.0070.00716.06
7.1.50.0090.00615.92
7.1.40.0060.01015.84
7.1.30.0100.00616.07
7.1.20.0060.01015.78
7.1.10.0000.01315.78
7.1.00.0080.00815.87
5.6.380.0060.00914.47

preferences:
62.48 ms | 401 KiB | 5 Q