3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '<div> <div id="priceRangeWrapper"> <div id="priceSlider" min="110" max="650"></div> </div> </div>'; $doc = new DOMDocument(); $doc->loadHTML( $str); // Load the HTML string from your post $xpath = new DOMXPath( $doc); $node = $xpath->query( '//div[@id="priceSlider"]')->item(0); // Get the <div> echo $node->getAttribute('min') . " " . $node->getAttribute('max');

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.0060.00318.79
8.3.120.0130.00321.12
8.3.110.0090.00016.86
8.3.100.0100.00717.16
8.3.90.0040.01116.88
8.3.80.0040.00418.36
8.3.70.0120.00417.00
8.3.60.0090.01217.13
8.3.50.0160.00821.18
8.3.40.0090.00619.25
8.3.30.0110.00419.01
8.3.20.0040.00420.63
8.3.10.0030.00624.04
8.3.00.0040.00423.94
8.2.250.0030.00517.56
8.2.240.0130.00618.96
8.2.230.0000.00920.94
8.2.220.0030.01324.06
8.2.210.0080.00026.77
8.2.200.0080.00017.25
8.2.190.0160.00317.00
8.2.180.0110.01117.25
8.2.170.0150.00022.96
8.2.160.0070.00720.72
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.01121.40
8.2.110.0000.01021.45
8.2.100.0070.00418.28
8.2.90.0050.00318.00
8.2.80.0040.00418.98
8.2.70.0040.00417.88
8.2.60.0000.00917.88
8.2.50.0090.00017.88
8.2.40.0050.00321.02
8.2.30.0000.00819.73
8.2.20.0000.00817.89
8.2.10.0050.00318.34
8.2.00.0040.00418.46
8.1.300.0070.00317.91
8.1.290.0040.00418.88
8.1.280.0040.01125.92
8.1.270.0080.00020.68
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0030.00621.68
8.1.230.0040.00721.12
8.1.220.0050.00318.04
8.1.210.0070.00318.77
8.1.200.0050.00317.60
8.1.190.0080.00017.60
8.1.180.0040.00418.10
8.1.170.0030.00718.88
8.1.160.0000.00821.18
8.1.150.0050.00319.04
8.1.140.0030.00519.86
8.1.130.0000.00717.66
8.1.120.0000.00717.86
8.1.110.0040.00417.84
8.1.100.0070.00017.78
8.1.90.0050.00217.67
8.1.80.0040.00417.80
8.1.70.0000.00817.85
8.1.60.0060.00317.96
8.1.50.0060.00317.82
8.1.40.0000.00817.74
8.1.30.0040.00417.82
8.1.20.0040.00417.82
8.1.10.0030.00517.94
8.1.00.0070.00017.81
8.0.300.0040.00420.02
8.0.290.0050.00317.13
8.0.280.0070.00018.77
8.0.270.0000.00717.68
8.0.260.0000.00717.04
8.0.250.0070.00017.31
8.0.240.0030.00517.30
8.0.230.0000.00717.31
8.0.220.0000.00717.21
8.0.210.0000.00717.25
8.0.200.0030.00317.30
8.0.190.0030.00717.33
8.0.180.0000.00717.06
8.0.170.0050.00317.20
8.0.160.0070.00017.20
8.0.150.0040.00417.04
8.0.140.0000.00917.09
8.0.130.0040.00413.57
8.0.120.0060.00317.21
8.0.110.0050.00217.21
8.0.100.0040.00417.24
8.0.90.0000.00717.06
8.0.80.0070.00817.24
8.0.70.0030.00517.16
8.0.60.0070.00017.11
8.0.50.0000.00817.14
8.0.30.0080.00917.23
8.0.20.0080.01217.54
8.0.10.0050.00317.38
8.0.00.0080.00917.06
7.4.330.0000.00617.09
7.4.320.0050.00216.88
7.4.300.0070.00016.91
7.4.290.0000.00716.93
7.4.280.0030.00616.81
7.4.270.0070.00016.88
7.4.260.0040.00216.89
7.4.250.0040.00416.79
7.4.240.0020.00516.94
7.4.230.0030.00316.87
7.4.220.0060.01316.91
7.4.210.0100.01016.92
7.4.200.0030.00316.86
7.4.160.0080.00816.62
7.4.150.0100.01117.40
7.4.140.0100.00817.86
7.4.130.0090.01216.73
7.4.120.0120.00616.87
7.4.110.0100.00716.89
7.4.100.0100.01316.83
7.4.90.0120.01216.65
7.4.80.0130.00919.39
7.4.70.0160.00016.82
7.4.60.0070.01116.85
7.4.50.0080.00816.98
7.4.40.0080.01216.64
7.4.30.0070.01016.76
7.4.00.0030.00615.12
7.3.330.0060.00013.39
7.3.320.0050.00013.44
7.3.310.0070.00016.63
7.3.300.0070.00016.55
7.3.290.0060.01416.55
7.3.280.0110.00516.54
7.3.270.0100.00717.40
7.3.260.0090.01516.83
7.3.240.0060.01216.70
7.3.230.0060.01216.58
7.3.210.0110.00616.81
7.3.200.0100.01319.39
7.3.190.0000.01916.83
7.3.180.0050.01216.75
7.3.170.0100.00716.74
7.3.160.0070.01016.58
7.2.330.0110.00717.13
7.2.320.0100.00617.09
7.2.310.0040.01216.78
7.2.300.0090.01016.63
7.2.290.0110.01216.97
7.2.60.0040.01116.95
7.2.00.0070.00719.68
7.1.200.0060.00915.94
7.1.100.0060.00918.26
7.1.70.0060.00317.00
7.1.60.0100.01619.27
7.1.50.0100.01416.74
7.1.00.0070.07322.42
7.0.200.0000.00717.05
7.0.60.0070.07021.90
7.0.50.0000.09017.89
7.0.40.0100.08020.27
7.0.30.0370.07720.28
7.0.20.0370.04720.48
7.0.10.0130.08020.35
7.0.00.0070.04020.27
5.6.280.0030.03721.03
5.6.210.0030.05020.76
5.6.200.0070.06718.38
5.6.190.0000.09720.49
5.6.180.0300.05720.92
5.6.170.0200.04020.66
5.6.160.0100.04320.86
5.6.150.0130.07318.27
5.6.140.0130.07318.26
5.6.130.0000.07318.30
5.6.120.0030.05721.11
5.6.110.0100.06321.11
5.6.100.0100.04721.14
5.6.90.0070.07321.12
5.6.80.0030.03720.55
5.5.350.0100.07720.48
5.5.340.0070.03718.08
5.5.330.0100.03720.73
5.5.320.0700.06320.33
5.5.310.0370.06720.49
5.5.300.0030.04018.14
5.5.290.0130.06318.18
5.5.280.0070.07320.93
5.5.270.0130.08321.09
5.5.260.0100.07721.01
5.5.250.0170.05320.90
5.5.240.0070.08320.28

preferences:
26.16 ms | 403 KiB | 5 Q