3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<span class="ui_bubble_rating bubble_45"></span>'; $doc = new DOMDocument(); $doc->loadHTML($html); $xp = new DOMXPath($doc); $ratingsElements = $xp->query('//span[contains(concat(" ", normalize-space(@class), " "), " ui_bubble_rating ")]'); if ($ratingsElements->length > 0) { $firstRatingElement = $ratingsElements->item(0); if (preg_match('/(?<=\bbubble_)\d+/', $firstRatingElement->getAttribute('class'), $matches)) { echo $matches[0]; // 45 } }

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.20.0070.01318.24
8.4.10.0090.00919.91
8.3.150.0070.01016.98
8.3.140.0070.01117.12
8.3.130.0000.01017.13
8.3.120.0030.00619.54
8.3.110.0030.00520.94
8.3.100.0040.00424.06
8.3.90.0030.00626.77
8.3.80.0060.00317.00
8.3.70.0110.00718.80
8.3.60.0090.01318.50
8.3.50.0080.00524.69
8.3.40.0150.00619.18
8.3.30.0110.00419.34
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0100.00026.16
8.2.270.0100.00617.48
8.2.260.0070.00717.50
8.2.250.0080.00019.23
8.2.240.0040.00817.49
8.2.230.0080.00322.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0060.00317.00
8.2.190.0120.00317.25
8.2.180.0060.00925.92
8.2.170.0150.00019.45
8.2.160.0070.00722.96
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0000.00826.35
8.2.110.0090.00021.55
8.2.100.0000.01318.34
8.2.90.0030.00518.13
8.2.80.0050.00319.36
8.2.70.0000.00918.00
8.2.60.0030.00618.18
8.2.50.0000.00818.05
8.2.40.0000.00818.67
8.2.30.0030.00518.43
8.2.20.0000.00818.38
8.2.10.0030.00619.61
8.2.00.0040.00419.55
8.1.310.0060.01217.17
8.1.300.0040.00418.61
8.1.290.0000.01018.88
8.1.280.0140.00425.92
8.1.270.0040.01123.99
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0040.00421.62
8.1.230.0000.01118.20
8.1.220.0030.00518.16
8.1.210.0030.00518.77
8.1.200.0060.00317.73
8.1.190.0040.00417.85
8.1.180.0060.00318.10
8.1.170.0040.00419.00
8.1.160.0070.00019.19
8.1.150.0000.00719.13
8.1.140.0070.00019.15
8.1.130.0020.00520.43
8.1.120.0050.00517.92
8.1.110.0000.00817.93
8.1.100.0030.00517.80
8.1.90.0050.00317.92
8.1.80.0030.00517.92
8.1.70.0000.00817.90
8.1.60.0040.00417.95
8.1.50.0030.00517.98
8.1.40.0030.00617.86
8.1.30.0060.00318.02
8.1.20.0030.00518.05
8.1.10.0000.00818.04
8.1.00.0000.00818.04
8.0.300.0040.00418.77
8.0.290.0060.00317.25
8.0.280.0000.00720.55
8.0.270.0070.00018.45
8.0.260.0030.00320.44
8.0.250.0000.00817.37
8.0.240.0030.00317.42
8.0.230.0030.00317.28
8.0.220.0070.00017.33
8.0.210.0070.00017.36
8.0.200.0070.00017.28
8.0.190.0080.00017.31
8.0.180.0040.00417.28
8.0.170.0040.00417.38
8.0.160.0000.00817.22
8.0.150.0000.00817.25
8.0.140.0040.00417.29
8.0.130.0000.00613.68
8.0.120.0000.00817.32
8.0.110.0050.00217.21
8.0.100.0050.00317.45
8.0.90.0040.00417.29
8.0.80.0100.01117.21
8.0.70.0000.00817.21
8.0.60.0040.00417.39
8.0.50.0000.00717.45
8.0.30.0070.01017.71
8.0.20.0090.01017.65
8.0.10.0000.00717.27
8.0.00.0000.01917.20
7.4.330.0050.00015.55
7.4.320.0030.00317.09
7.4.300.0060.00017.07
7.4.290.0000.00717.05
7.4.280.0060.00317.03
7.4.270.0040.00317.03
7.4.260.0030.00313.73
7.4.250.0050.00317.04
7.4.240.0030.00317.06
7.4.230.0070.00016.97
7.4.220.0050.00217.13
7.4.210.0100.00717.04
7.4.200.0070.00016.89
7.4.130.0120.00916.92
7.4.120.0140.00516.98
7.4.110.0140.00317.21
7.4.100.0100.00717.00
7.4.90.0030.01516.97
7.4.80.0110.00716.76
7.4.70.0180.00016.89
7.4.60.0060.01216.91
7.4.50.0100.00617.00
7.4.40.0040.01216.89
7.4.30.0090.00916.92
7.4.20.0030.01217.01
7.4.10.0060.01116.96
7.4.00.0150.00417.12
7.3.330.0060.00316.85
7.3.320.0050.00013.63
7.3.310.0100.00016.79
7.3.300.0000.00716.77
7.3.290.0110.00616.67
7.3.260.0100.00717.04
7.3.230.0100.00716.74
7.3.210.0100.00717.14
7.3.200.0030.01316.71
7.3.190.0070.01016.75
7.3.180.0030.01316.77
7.3.170.0060.01216.76
7.3.160.0100.00716.80
7.3.150.0140.00316.86
7.3.140.0130.00316.89
7.3.130.0090.00616.79
7.3.120.0060.01017.05
7.3.110.0030.01317.05
7.3.100.0100.00716.78
7.3.90.0070.01017.04
7.3.80.0070.01016.80
7.3.70.0080.00816.95
7.3.60.0100.00716.94
7.3.50.0140.00316.63
7.3.40.0120.00916.84
7.3.30.0090.01216.86
7.3.20.0110.00716.68
7.3.10.0070.01116.88
7.3.00.0150.00416.91
7.2.330.0120.00616.97
7.2.320.0030.01616.98
7.2.310.0100.00716.87
7.2.300.0060.01017.23
7.2.290.0070.01016.99
7.2.280.0100.00716.94
7.2.270.0170.00017.06
7.2.260.0030.01617.29
7.2.250.0130.00317.14
7.2.240.0130.00317.01
7.2.230.0060.01317.04
7.2.220.0150.00616.92
7.2.210.0100.00717.19
7.2.200.0140.00317.11
7.2.190.0170.00316.88
7.2.180.0140.00417.02
7.2.170.0060.01517.09
7.2.160.0070.01617.02
7.2.150.0120.00817.06
7.2.140.0170.00317.10
7.2.130.0150.01117.11
7.2.120.0100.00717.06
7.2.110.0140.00417.09
7.2.100.0130.00417.13
7.2.90.0100.00717.22
7.2.80.0130.00717.16
7.2.70.0070.01117.06
7.2.60.0070.01117.18
7.2.50.0000.01716.95
7.2.40.0070.01117.03
7.2.30.0140.00317.16
7.2.20.0070.01016.85
7.2.10.0150.00416.95
7.2.00.0100.00717.15

preferences:
27.62 ms | 403 KiB | 5 Q