3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<HTML <a name="file_type_definition"></a>file_type_definition ::= <font color=#a08000><strong>FILE<strong>other stuff</strong></strong></font> <font color=#a08000><strong>OF</strong></font> <a href="#type_mark">type_mark</a> HTML; $dom = new DOMDocument(); $dom->loadHTML($html); $xpath = new DOMXPath($dom); foreach($xpath->query('//strong') as $strong) { $strong->parentNode->replaceChild(new DOMText(sprintf("'%s'", $strong->textContent)),$strong); } var_dump($dom->textContent);

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.60.0060.01316.87
8.3.50.0040.01118.50
8.3.40.0170.00019.26
8.3.30.0040.01119.09
8.3.20.0000.00819.71
8.3.10.0040.00422.27
8.3.00.0060.00320.17
8.2.180.0080.01116.88
8.2.170.0090.00622.96
8.2.160.0060.00920.70
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00320.20
8.2.120.0080.00026.35
8.2.110.0030.00719.58
8.2.100.0110.00018.30
8.2.90.0080.00019.55
8.2.80.0000.00817.97
8.2.70.0060.00317.88
8.2.60.0100.00018.18
8.2.50.0000.00818.10
8.2.40.0080.00022.81
8.2.30.0040.00419.75
8.2.20.0050.00218.00
8.2.10.0040.00418.63
8.2.00.0000.00818.52
8.1.280.0040.01125.92
8.1.270.0080.00024.16
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0040.00822.98
8.1.230.0000.01217.89
8.1.220.0050.00318.16
8.1.210.0030.00618.77
8.1.200.0040.00417.72
8.1.190.0040.00417.85
8.1.180.0030.00518.10
8.1.170.0080.00019.09
8.1.160.0040.00419.40
8.1.150.0030.00619.24
8.1.140.0040.00419.96
8.1.130.0080.00018.02
8.1.120.0000.01017.89
8.1.110.0040.00417.78
8.1.100.0040.00417.87
8.1.90.0060.00317.88
8.1.80.0050.00517.86
8.1.70.0000.00717.79
8.1.60.0050.00317.93
8.1.50.0040.00417.92
8.1.40.0050.00317.96
8.1.30.0030.00617.91
8.1.20.0000.00817.94
8.1.10.0040.00417.79
8.1.00.0090.00217.80
8.0.300.0000.00718.77
8.0.290.0040.00417.13
8.0.280.0030.00618.83
8.0.270.0030.00317.60
8.0.260.0080.00017.67
8.0.250.0080.00017.44
8.0.240.0040.00417.40
8.0.230.0050.00317.30
8.0.220.0040.00417.40
8.0.210.0060.00317.27
8.0.200.0060.00017.23
8.0.190.0000.00817.41
8.0.180.0000.00817.39
8.0.170.0000.00817.25
8.0.160.0040.00417.37
8.0.150.0040.00417.24
8.0.140.0040.00417.15
8.0.130.0000.00513.79
8.0.120.0000.00817.34
8.0.110.0070.00017.32
8.0.100.0050.00317.37
8.0.90.0040.00417.32
8.0.80.0000.01517.37
8.0.70.0080.00017.28
8.0.60.0030.00517.18
8.0.50.0000.00717.17
8.0.30.0110.00717.65
8.0.20.0100.00917.49
8.0.10.0000.00717.43
8.0.00.0070.01017.21
7.4.330.0000.00715.08
7.4.320.0000.00616.98
7.4.300.0000.00616.70
7.4.290.0030.00317.00
7.4.280.0000.00716.98
7.4.270.0040.00416.93
7.4.260.0000.00716.69
7.4.250.0070.00016.84
7.4.240.0040.00416.88
7.4.230.0070.00016.75
7.4.220.0090.00916.84
7.4.210.0060.00817.03
7.4.200.0000.00816.84
7.4.160.0100.00716.79
7.4.150.0100.00717.40
7.4.140.0070.01017.86
7.4.130.0100.00816.88
7.4.120.0080.00916.79
7.4.110.0090.00916.68
7.4.100.0120.01216.68
7.4.90.0080.00816.99
7.4.80.0060.01619.39
7.4.70.0100.00716.86
7.4.60.0070.01016.86
7.4.50.0070.01116.47
7.4.40.0120.00917.15
7.4.30.0060.01016.88
7.4.10.0090.00615.41
7.4.00.0050.01215.16
7.3.330.0000.00613.48
7.3.320.0050.00013.37
7.3.310.0000.00716.52
7.3.300.0000.00616.63
7.3.290.0000.00716.55
7.3.280.0070.01116.67
7.3.270.0070.01117.40
7.3.260.0130.01016.73
7.3.250.0140.01516.81
7.3.240.0110.01016.79
7.3.230.0090.00916.88
7.3.210.0120.00616.75
7.3.200.0060.01216.55
7.3.190.0100.00616.70
7.3.180.0130.00716.68
7.3.170.0170.01016.82
7.3.160.0130.01016.68
7.3.130.0000.01115.13
7.3.120.0090.00914.89
7.3.110.0070.01214.88
7.3.100.0030.01415.17
7.3.90.0050.00915.08
7.3.80.0060.00614.89
7.3.70.0030.00814.89
7.3.60.0030.00815.01
7.3.50.0100.00615.04
7.3.40.0010.00914.96
7.3.30.0050.00714.95
7.3.20.0030.01016.92
7.3.10.0050.01116.63
7.3.00.0050.00816.83
7.2.330.0090.00917.01
7.2.320.0080.01616.83
7.2.310.0070.01017.17
7.2.300.0070.01017.09
7.2.290.0200.01916.91
7.2.260.0160.00315.43
7.2.250.0100.00615.30
7.2.240.0100.00715.26
7.2.230.0090.00515.38
7.2.220.0070.01015.17
7.2.210.0080.00515.09
7.2.200.0060.00415.12
7.2.190.0080.00515.31
7.2.180.0050.01015.09
7.2.170.0060.00815.19
7.2.160.0050.00915.20
7.2.150.0080.00816.96
7.2.140.0080.00817.17
7.2.130.0020.01217.02
7.2.120.0070.00916.96
7.2.110.0000.01616.95
7.2.100.0090.00617.06
7.2.90.0070.00617.06
7.2.80.0050.01317.05
7.2.70.0040.01217.23
7.2.60.0030.01017.06
7.2.50.0050.00917.10
7.2.40.0090.00616.99
7.2.30.0060.00817.22
7.2.20.0040.01217.16
7.2.10.0030.01117.16
7.2.00.0090.00617.81
7.1.330.0060.01116.06
7.1.320.0060.01015.95
7.1.310.0000.01116.16
7.1.300.0020.01016.12
7.1.290.0030.00715.85
7.1.280.0070.00715.90
7.1.270.0030.01315.79
7.1.260.0050.00615.92
7.1.250.0070.00515.95
7.1.240.0070.00915.88
7.1.230.0070.00715.90
7.1.220.0070.00415.89
7.1.210.0040.01116.00
7.1.200.0060.00616.04
7.1.190.0110.00215.93
7.1.180.0040.01115.86
7.1.170.0060.00816.06
7.1.160.0070.00715.99
7.1.150.0050.01015.94
7.1.140.0020.01215.85
7.1.130.0040.00616.05
7.1.120.0060.00915.86
7.1.110.0030.00715.84
7.1.100.0050.00916.72
7.1.90.0030.00716.03
7.1.80.0020.00915.96
7.1.70.0040.00516.43
7.1.60.0060.00517.06
7.1.50.0080.00216.00
7.1.40.0000.01015.93
7.1.30.0050.00715.79
7.1.20.0050.01116.06
7.1.10.0050.00815.97
7.1.00.0030.03018.09
7.0.330.0090.00515.48
7.0.320.0060.00415.47
7.0.310.0070.00615.62
7.0.300.0020.01215.60
7.0.290.0060.00615.42
7.0.280.0090.00515.58
7.0.270.0050.00515.54
7.0.260.0020.00815.49
7.0.250.0050.00615.59
7.0.240.0040.00915.69
7.0.230.0050.00615.68
7.0.220.0040.00615.58
7.0.210.0090.00515.60
7.0.200.0130.00715.32
7.0.190.0030.00915.57
7.0.180.0030.01115.63
7.0.170.0040.00715.69
7.0.160.0070.00515.54
7.0.150.0030.01115.65
7.0.140.0060.00515.54
7.0.130.0030.00915.75
7.0.120.0050.01015.46
7.0.110.0070.00615.52
7.0.100.0050.00715.60
7.0.90.0020.01115.44
7.0.80.0030.00915.69
7.0.70.0040.00815.53
7.0.60.0270.00517.12
7.0.50.0300.00717.33
7.0.40.0350.00415.95
7.0.30.0290.00415.93
7.0.20.0300.00515.93
7.0.10.0310.00615.99
7.0.00.0360.00515.86
5.6.400.0020.01214.59
5.6.390.0080.00414.61
5.6.380.0040.01114.47
5.6.370.0020.01314.69
5.6.360.0060.00814.44
5.6.350.0100.00614.42
5.6.340.0060.00814.39
5.6.330.0040.00614.40
5.6.320.0070.00514.43
5.6.310.0060.00814.59
5.6.300.0040.00814.70
5.6.290.0060.00614.61
5.6.280.0080.02716.68
5.6.270.0040.00814.66
5.6.260.0050.01014.40
5.6.250.0020.01314.31
5.6.240.0050.01014.61
5.6.230.0070.00614.63
5.6.220.0050.00514.42
5.6.210.0260.00616.63
5.6.200.0320.00316.75
5.6.190.0280.00616.86
5.6.180.0300.00216.75
5.6.170.0330.00616.64
5.6.160.0290.00416.93
5.6.150.0300.00216.76
5.6.140.0230.00816.86
5.6.130.0320.00316.79
5.6.120.0280.00616.67
5.6.110.0330.00516.81
5.6.100.0300.00716.70
5.6.90.0340.00116.76
5.6.80.0320.00416.52
5.6.70.0290.00616.53
5.6.60.0260.00816.37
5.6.50.0370.00616.59
5.6.40.0300.00516.44
5.6.30.0320.00516.58
5.6.20.0340.00616.42
5.6.10.0240.00716.43
5.6.00.0290.00516.43
5.5.380.0070.00814.49
5.5.370.0100.00314.32
5.5.360.0080.00614.25
5.5.350.0290.00816.38
5.5.340.0370.00516.60
5.5.330.0280.00516.57
5.5.320.0250.00516.63
5.5.310.0280.00816.67
5.5.300.0280.00516.61
5.5.290.0350.00516.74
5.5.280.0320.00516.62
5.5.270.0390.00116.65
5.5.260.0340.00616.77
5.5.250.0360.00516.35
5.5.240.0260.00916.48
5.5.230.0290.00916.46
5.5.220.0280.00716.22
5.5.210.0390.00516.36
5.5.200.0300.00316.29
5.5.190.0400.00416.36
5.5.180.0280.00616.45
5.5.170.0020.01414.43
5.5.160.0300.00416.38
5.5.150.0280.00216.23
5.5.140.0320.00516.34
5.5.130.0340.00616.44
5.5.120.0290.00616.51
5.5.110.0300.00516.36
5.5.100.0280.00916.33
5.5.90.0310.00616.22
5.5.80.0280.00516.25
5.5.70.0320.00516.20
5.5.60.0320.00416.40
5.5.50.0310.00616.21
5.5.40.0300.00616.35
5.5.30.0310.00416.34
5.5.20.0270.00516.36
5.5.10.0360.00216.22
5.5.00.0330.00216.35

preferences:
60.95 ms | 401 KiB | 5 Q