3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<h2><span id="History"></span><span class="mw-headline" id="History">History</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Adamantina&amp;veaction=edit&amp;section=1" class="mw-editsection-visualeditor" title="Editar secção: History">editar</a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Adamantina&amp;action=edit&amp;section=1" title="Editar secção: History">editar código-fonte</a><span class="mw-editsection-bracket">]</span></span></h2>'; $d = new DOMDocument; libxml_use_internal_errors(true); $d->loadHTML($html); $domxpath = new DOMXPath($d); $paragraph = $domxpath->query('//h2/*[contains(text(), "History")]'); var_dump($paragraph->length); if ($paragraph->length > 0) { echo "Results!"; } else { echo "Not contained"; }

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.140.0140.00918.00
8.4.130.0130.00917.94
8.4.120.0140.00720.82
8.4.110.0140.00721.22
8.4.100.0130.00720.76
8.4.90.0060.01020.98
8.4.80.0090.01323.11
8.4.70.0110.00718.54
8.4.60.0100.01118.95
8.4.50.0090.00718.72
8.4.40.0060.01317.98
8.4.30.0110.00819.71
8.4.20.0130.00720.19
8.4.10.0070.01019.96
8.3.270.0150.00616.72
8.3.260.0140.00616.88
8.3.250.0130.00617.26
8.3.240.0060.00317.09
8.3.230.0130.00616.73
8.3.220.0100.00717.57
8.3.210.0130.00716.72
8.3.200.0050.00416.84
8.3.190.0100.00419.37
8.3.180.0030.00516.67
8.3.170.0180.00019.09
8.3.160.0090.01017.62
8.3.150.0110.00717.00
8.3.140.0070.01016.91
8.3.130.0050.00516.92
8.3.120.0090.00020.91
8.3.110.0060.00320.94
8.3.100.0080.00317.01
8.3.90.0160.00326.77
8.3.80.0050.01417.97
8.3.70.0040.01116.88
8.3.60.0120.00916.88
8.3.50.0070.00718.58
8.3.40.0090.00619.03
8.3.30.0110.00418.91
8.3.20.0040.00422.28
8.3.10.0090.00024.11
8.3.00.0040.00422.42
8.2.290.0070.00220.75
8.2.280.0110.00918.80
8.2.270.0130.00317.40
8.2.260.0040.00419.43
8.2.250.0090.00016.84
8.2.240.0060.00317.63
8.2.230.0070.01022.58
8.2.220.0030.00724.06
8.2.210.0030.00526.77
8.2.200.0110.00018.91
8.2.190.0190.00317.25
8.2.180.0040.01116.72
8.2.170.0120.00322.96
8.2.160.0140.00020.35
8.2.150.0050.00324.18
8.2.140.0000.00924.66
8.2.130.0000.00826.16
8.2.120.0070.00019.60
8.2.110.0030.00722.63
8.2.100.0120.00018.03
8.2.90.0040.00419.52
8.2.80.0080.00018.13
8.2.70.0000.00817.88
8.2.60.0040.00417.88
8.2.50.0050.00318.00
8.2.40.0040.00419.73
8.2.30.0000.00821.50
8.2.20.0050.00218.36
8.2.10.0040.00418.38
8.2.00.0030.00520.18
8.1.330.0140.00722.41
8.1.320.0100.01016.62
8.1.310.0030.00519.09
8.1.300.0040.01518.68
8.1.290.0070.00330.84
8.1.280.0070.01425.92
8.1.270.0050.00322.52
8.1.260.0120.00326.35
8.1.250.0030.00528.09
8.1.240.0000.00919.64
8.1.230.0040.00818.20
8.1.220.0050.00318.05
8.1.210.0080.00018.77
8.1.200.0030.00617.49
8.1.190.0030.00517.60
8.1.180.0040.00418.10
8.1.170.0040.00417.72
8.1.160.0030.00519.14
8.1.150.0030.00620.83
8.1.140.0040.00418.00
8.1.130.0080.00019.47
8.1.120.0000.00717.67
8.1.110.0040.00717.75
8.1.100.0030.00517.66
8.1.90.0060.00317.66
8.1.80.0040.00417.78
8.1.70.0040.00417.83
8.1.60.0000.00817.92
8.1.50.0080.00017.86
8.1.40.0030.00617.72
8.1.30.0080.00017.89
8.1.20.0040.00417.84
8.1.10.0050.00217.82
8.1.00.0080.00017.86
8.0.300.0000.00718.77
8.0.290.0030.00517.00
8.0.280.0030.00318.75
8.0.270.0050.00517.59
8.0.260.0040.00417.09
8.0.250.0030.00317.14
8.0.240.0000.01017.17
8.0.230.0040.00417.18
8.0.220.0000.00917.05
8.0.210.0000.00817.23
8.0.200.0040.00417.27
8.0.190.0050.00517.09
8.0.180.0040.00417.15
8.0.170.0030.00717.21
8.0.160.0040.00417.16
8.0.150.0050.00316.98
8.0.140.0000.00717.05
8.0.130.0000.00613.54
8.0.120.0030.00617.20
8.0.110.0080.00517.14
8.0.100.0040.00417.01
8.0.90.0050.00217.13
8.0.80.0070.01417.13
8.0.70.0040.00417.17
8.0.60.0000.00817.32
8.0.50.0030.00517.31
8.0.30.0080.00817.52
8.0.20.0050.01317.40
8.0.10.0050.00217.03
8.0.00.0140.00516.93
7.4.330.0000.00515.55
7.4.320.0000.00716.73
7.4.300.0060.00016.88
7.4.290.0000.00716.80
7.4.280.0060.00316.92
7.4.270.0030.00316.65
7.4.260.0030.00316.89
7.4.250.0040.00416.72
7.4.240.0050.00316.90
7.4.230.0030.00316.69
7.4.220.0040.00416.94
7.4.210.0070.00716.79
7.4.200.0070.00016.63
7.4.160.0050.01016.69
7.4.140.0130.00717.86
7.4.130.0110.00816.71
7.4.120.0080.01016.74
7.4.110.0130.00416.73
7.4.100.0130.00516.74
7.4.90.0110.01016.71
7.4.80.0180.00817.47
7.4.70.0080.01116.61
7.4.60.0160.00916.73
7.4.50.0110.00916.62
7.4.40.0120.01216.82
7.4.30.0060.01416.66
7.4.20.0180.00516.42
7.4.10.0150.00716.67
7.4.00.0090.01015.90
7.3.330.0000.00513.34
7.3.320.0060.00013.41
7.3.310.0030.00316.55
7.3.300.0040.00416.57
7.3.290.0070.00016.41
7.3.280.0110.00616.53
7.3.260.0160.00716.62
7.3.250.0130.00716.54
7.3.240.0080.00916.58
7.3.230.0120.00516.66
7.3.220.0150.00316.77
7.3.210.0040.01416.77
7.3.200.0140.01116.63
7.3.190.0180.01016.66
7.3.180.0150.00816.70
7.3.170.0100.01116.61
7.3.160.0100.01016.51
7.3.150.0090.01116.51
7.3.140.0150.00916.67
7.3.130.0130.00916.46
7.3.120.0140.00915.91
7.3.110.0120.00815.92
7.3.100.0130.00815.94
7.3.90.0100.00815.86
7.3.80.0120.00715.87
7.3.70.0130.00615.86
7.3.60.0110.00915.83
7.3.50.0060.01215.84
7.3.40.0100.00815.74
7.3.30.0110.00815.87
7.3.20.0130.00616.52
7.3.10.0090.00816.52
7.3.00.0150.00716.65
7.2.340.0130.01017.01
7.2.330.0210.00816.88
7.2.320.0120.00916.94
7.2.310.0100.01216.93
7.2.300.0140.00916.90
7.2.290.0110.01116.79
7.2.280.0150.00916.66
7.2.270.0170.01116.78
7.2.260.0170.01016.98
7.2.250.0140.00816.35
7.2.240.0140.00816.27
7.2.230.0140.00816.11
7.2.220.0160.00616.16
7.2.210.0130.00716.22
7.2.200.0150.00616.21
7.2.190.0110.01116.12
7.2.180.0100.01116.11
7.2.170.0110.00916.21
7.2.160.0160.00816.72
7.2.150.0120.00916.83
7.2.140.0150.00916.84
7.2.130.0130.01116.80
7.2.120.0150.00716.77
7.2.110.0170.01016.93
7.2.100.0150.01116.76
7.2.90.0150.01116.87
7.2.80.0100.01216.78
7.2.70.0180.00416.85
7.2.60.0110.01016.78
7.2.50.0120.01216.74
7.2.40.0070.01516.79
7.2.30.0180.00917.27
7.2.20.0150.01217.21
7.2.10.0180.00917.02
7.2.00.0180.01017.19
7.1.330.0170.00815.94
7.1.320.0160.00816.04
7.1.310.0170.00816.07
7.1.300.0170.01115.92
7.1.290.0150.00915.92
7.1.280.0150.00916.00
7.1.270.0150.00915.83
7.1.260.0130.00916.02
7.1.250.0290.00515.88
7.1.240.0240.00515.93
7.1.230.0220.00915.89
7.1.220.0350.00815.92
7.1.210.0220.00915.93
7.1.200.0200.00615.84
7.1.190.0260.00515.77
7.1.180.0180.01215.82
7.1.170.0250.01215.93
7.1.160.0260.00515.90
7.1.150.0240.01216.20
7.1.140.0210.01016.10
7.1.130.0230.00616.16
7.1.120.0220.00816.01
7.1.110.0200.00815.94
7.1.100.0210.01015.96
7.1.90.0170.01316.03
7.1.80.0180.01116.03
7.1.70.0220.00715.85
7.1.60.0240.01120.36
7.1.50.0300.01220.09
7.1.40.0390.01620.08
7.1.30.0260.00920.11
7.1.20.0260.01020.12
7.1.10.0220.00715.69
7.1.00.0210.01315.72
7.0.330.0190.01015.60
7.0.320.0240.00715.63
7.0.310.0230.00815.54
7.0.300.0200.01015.51
7.0.290.0220.01015.63
7.0.280.0250.00615.56
7.0.270.0230.00715.51
7.0.260.0200.00815.59
7.0.250.0170.01015.58
7.0.240.0250.00215.71
7.0.230.0190.00915.61
7.0.220.0200.00715.64
7.0.210.0220.00915.59
7.0.200.0270.00615.51
7.0.190.0230.00615.60
7.0.180.0200.00915.65
7.0.170.0210.01315.67
7.0.160.0160.01515.70
7.0.150.0230.00615.59
7.0.140.0280.00915.58
7.0.130.0170.01315.59
7.0.120.0260.00515.58
7.0.110.0220.00815.53
7.0.100.0210.00915.53
7.0.90.0230.00715.58
7.0.80.0210.00915.53
7.0.70.0190.01015.57
7.0.60.0280.00615.63
7.0.50.0160.01515.65
7.0.40.0190.01015.50
7.0.30.0220.00815.58
7.0.20.0190.00915.61
7.0.10.0220.01315.57
7.0.00.0220.00915.44
5.6.400.0200.01016.22
5.6.390.0200.00916.39
5.6.380.0200.01016.22
5.6.370.0170.01316.13
5.6.360.0210.01016.19
5.6.350.0220.00716.14
5.6.340.0200.01216.38
5.6.330.0250.00816.45
5.6.320.0190.01216.38
5.6.310.0170.01516.30
5.6.300.0250.00916.19
5.6.290.0210.00916.11
5.6.280.0210.01016.29
5.6.270.0200.01016.42
5.6.260.0230.00816.21
5.6.250.0230.01016.25
5.6.240.0180.01716.21
5.6.230.0210.01216.28
5.6.220.0240.01216.25
5.6.210.0200.01216.19
5.6.200.0160.01716.25
5.6.190.0260.01116.38
5.6.180.0240.01116.18
5.6.170.0180.01916.21
5.6.160.0210.01316.28
5.6.150.0200.01716.28
5.6.140.0230.01316.23
5.6.130.0220.01116.39
5.6.120.0180.01516.19
5.6.110.0190.01116.33
5.6.100.0200.01116.17
5.6.90.0230.00916.11
5.6.80.0210.00816.10
5.6.70.0150.01416.17
5.6.60.0200.01216.21
5.6.50.0220.00916.17
5.6.40.0180.01216.18
5.6.30.0180.01016.23
5.6.20.0180.01316.22
5.6.10.0180.01216.18
5.6.00.0200.01016.15

preferences:
31.1 ms | 403 KiB | 5 Q