3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = 'cualquiercosa<b>contenido</b>cualquiercosa'; //Generar el DOM $dom = new DOMDocument; $dom->loadHTML($html, LIBXML_COMPACT | LIBXML_HTML_NOIMPLIED | LIBXML_NONET); //Obtener todos los tags <B> $b_nodelist = $dom->getElementsByTagName('b'); //Bucle para cada <b> foreach ($b_nodelist as $b) { //Obtener el contenido de texto del tag $texto = $b->textContent; echo "\n\nContenido del B:\n" . $texto; // => contenido }

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.130.0120.00618.72
8.4.120.0080.00320.79
8.4.110.0130.00819.13
8.4.100.0140.00718.15
8.4.90.0120.00917.83
8.4.80.0120.00818.01
8.4.70.0110.00818.08
8.4.60.0090.01219.18
8.4.50.0070.00418.05
8.4.40.0140.00718.02
8.4.30.0150.00617.79
8.4.20.0120.00919.74
8.4.10.0060.00319.79
8.3.260.0100.00916.70
8.3.250.0080.01119.27
8.3.240.0070.00116.73
8.3.230.0100.00916.90
8.3.220.0120.00717.46
8.3.210.0160.00916.90
8.3.200.0060.00316.69
8.3.190.0100.01017.27
8.3.180.0110.00716.60
8.3.170.0130.00617.29
8.3.160.0180.00318.65
8.3.150.0120.00620.73
8.3.140.0080.00016.56
8.3.130.0030.00718.47
8.3.120.0090.00019.29
8.3.110.0050.00520.94
8.3.100.0120.00318.43
8.3.90.0070.01126.77
8.3.80.0030.00617.97
8.3.70.0040.01118.43
8.3.60.0120.00318.42
8.3.50.0080.01017.56
8.3.40.0120.00319.09
8.3.30.0090.00618.95
8.3.20.0070.00020.41
8.3.10.0080.00022.33
8.3.00.0080.00022.03
8.2.290.0130.00519.36
8.2.280.0050.00418.53
8.2.270.0110.00717.05
8.2.260.0040.01318.43
8.2.250.0040.00418.73
8.2.240.0120.00319.37
8.2.230.0030.00622.58
8.2.220.0060.00324.06
8.2.210.0090.00026.77
8.2.200.0070.00418.66
8.2.190.0070.00716.82
8.2.180.0070.01016.88
8.2.170.0000.01522.96
8.2.160.0040.01122.30
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00521.14
8.2.110.0060.00320.62
8.2.100.0070.00317.97
8.2.90.0050.00319.50
8.2.80.0000.00818.98
8.2.70.0040.00417.88
8.2.60.0030.00618.30
8.2.50.0060.00318.07
8.2.40.0030.00618.28
8.2.30.0000.00918.21
8.2.20.0030.00518.38
8.2.10.0070.00018.31
8.2.00.0050.00218.34
8.1.330.0110.00816.35
8.1.320.0100.00916.40
8.1.310.0110.00718.95
8.1.300.0050.00320.31
8.1.290.0070.00330.84
8.1.280.0040.01125.92
8.1.270.0050.00320.55
8.1.260.0000.00826.35
8.1.250.0000.00928.09
8.1.240.0090.00022.22
8.1.230.0000.01122.33
8.1.220.0040.00418.01
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0000.00817.48
8.1.180.0070.00418.10
8.1.170.0050.00318.89
8.1.160.0000.00819.15
8.1.150.0050.00320.47
8.1.140.0040.00418.08
8.1.130.0020.00819.89
8.1.120.0090.00318.19
8.1.110.0100.00319.20
8.1.100.0060.00618.27
8.1.90.0100.00418.28
8.1.80.0040.00718.32
8.1.70.0000.01118.32
8.1.60.0090.00418.36
8.1.50.0090.00419.19
8.1.40.0050.00718.35
8.1.30.0040.00818.41
8.1.20.0080.00418.48
8.1.10.0040.00918.39
8.1.00.0040.01018.30
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0030.00318.52
8.0.270.0000.00716.91
8.0.260.0020.00519.59
8.0.250.0070.00417.78
8.0.240.0090.00217.68
8.0.230.0100.00217.73
8.0.220.0060.00617.61
8.0.210.0050.00517.61
8.0.200.0020.00817.67
8.0.190.0100.00217.79
8.0.180.0060.00517.66
8.0.170.0020.01018.60
8.0.160.0090.00317.60
8.0.150.0060.00517.59
8.0.140.0000.01117.63
8.0.130.0070.00515.86
8.0.120.0070.00417.70
8.0.110.0090.00317.54
8.0.100.0060.00517.65
8.0.90.0050.00517.63
8.0.80.0060.00917.60
8.0.70.0070.00418.64
8.0.60.0040.00617.65
8.0.50.0050.00617.68
8.0.30.0090.00917.56
8.0.20.0110.00817.55
8.0.10.0060.00517.74
8.0.00.0140.00317.74
7.4.330.0060.00315.56
7.4.320.0060.00517.25
7.4.300.0080.00317.24
7.4.290.0060.00617.29
7.4.280.0100.00217.31
7.4.270.0070.00718.19
7.4.260.0060.00517.26
7.4.250.0040.00817.29
7.4.240.0090.00217.43
7.4.230.0070.00217.30
7.4.220.0060.01117.35
7.4.210.0070.00817.38
7.4.200.0080.00317.21
7.4.190.0070.00417.98
7.4.180.0100.00317.94
7.4.160.0110.00417.09
7.4.150.0070.00717.64
7.4.140.0100.00817.82
7.4.130.0100.00318.19
7.4.120.0100.00717.31
7.4.110.0050.00818.06
7.4.100.0090.00717.17
7.4.90.0090.00617.30
7.4.80.0120.00518.56
7.4.70.0110.00617.24
7.4.60.0100.00517.22
7.4.50.0090.00517.29
7.4.40.0120.00717.10
7.4.30.0080.00717.23
7.4.20.0080.00617.78
7.4.10.0110.00317.75
7.4.00.0050.01116.13
7.3.330.0100.00015.44
7.3.320.0060.00515.47
7.3.310.0040.00717.04
7.3.300.0060.00417.08
7.3.290.0100.00716.76
7.3.280.0100.00716.60
7.3.270.0060.00917.54
7.3.260.0110.00917.05
7.3.250.0100.00716.84
7.3.240.0080.00817.42
7.3.230.0100.01017.09
7.3.220.0070.00719.34
7.3.210.0080.00817.10
7.3.200.0140.00317.13
7.3.190.0070.01017.02
7.3.180.0060.01016.99
7.3.170.0080.00816.98
7.3.160.0120.00317.06
7.3.150.0110.00417.52
7.3.140.0140.00017.49
7.3.130.0140.00017.55
7.3.120.0040.01215.81
7.3.110.0100.00715.78
7.3.100.0090.00615.69
7.3.90.0090.00415.76
7.3.80.0050.01116.42
7.3.70.0070.00715.71
7.3.60.0070.00615.60
7.3.50.0050.00915.63
7.3.40.0080.00715.53
7.3.30.0080.00615.58
7.3.20.0050.01116.97
7.3.10.0070.00816.89
7.3.00.0100.00817.08
7.2.340.0150.00017.74
7.2.330.0100.00617.48
7.2.320.0100.01017.38
7.2.310.0100.00517.26
7.2.300.0090.00617.35
7.2.290.0130.00317.42
7.2.280.0110.00417.70
7.2.270.0120.00417.79
7.2.260.0100.00517.63
7.2.250.0070.01015.99
7.2.240.0110.00716.05
7.2.230.0070.00615.91
7.2.220.0070.00716.04
7.2.210.0050.00916.09
7.2.200.0070.00715.97
7.2.190.0080.00715.86
7.2.180.0070.00815.92
7.2.170.0090.00616.33
7.2.160.0080.00917.50
7.2.150.0130.00417.36
7.2.140.0110.00517.44
7.2.130.0100.00517.54
7.2.120.0100.00817.45
7.2.110.0120.00717.19
7.2.100.0110.00717.40
7.2.90.0080.00817.35
7.2.80.0120.00917.60
7.2.70.0130.00717.48
7.2.60.0100.00617.35
7.2.50.0140.00317.47
7.2.40.0170.00017.56
7.2.30.0110.00417.39
7.2.20.0120.00417.44
7.2.10.0210.00417.47
7.2.00.0160.00517.53
7.1.330.0090.00516.73
7.1.320.0070.00516.78
7.1.310.0050.00916.80
7.1.300.0100.00515.96
7.1.290.0070.00816.02
7.1.280.0070.01116.16
7.1.270.0090.00516.00
7.1.260.0090.00716.04
7.1.250.0100.00416.29
7.1.240.0100.01216.36
7.1.230.0110.01016.45
7.1.220.0480.00716.20
7.1.210.0170.00916.33
7.1.200.0120.00516.16
7.1.190.0090.00816.39
7.1.180.0110.00716.34
7.1.170.0160.00916.37
7.1.160.0120.00616.31
7.1.150.0140.00716.37
7.1.140.0160.00416.25
7.1.130.0140.00516.30
7.1.120.0170.00316.29
7.1.110.0140.00716.28
7.1.100.0270.00816.16
7.1.90.0320.00416.41
7.1.80.0330.00716.39
7.1.70.0290.00615.91
7.1.60.0320.00922.04
7.1.50.0310.00721.90
7.1.40.0320.00621.94
7.1.30.0290.00721.85
7.1.20.0260.00921.86
7.1.10.0330.00515.71
7.1.00.0360.00815.75
7.0.330.0100.00715.87
7.0.320.0150.00715.87
7.0.310.0130.00615.91
7.0.300.0160.00715.89
7.0.290.0100.00815.94
7.0.280.0150.00315.94
7.0.270.0150.00515.91
7.0.260.0160.00715.90
7.0.250.0140.00816.12
7.0.240.0430.00716.03
7.0.230.0350.00415.99
7.0.220.0460.00715.99
7.0.210.0500.00715.76
7.0.200.0300.00515.66
7.0.190.0290.00715.67
7.0.180.0210.01115.61
7.0.170.0280.00515.60
7.0.160.0270.00715.56
7.0.150.0280.00915.63
7.0.140.0330.00515.50
7.0.130.0240.01315.72
7.0.120.0310.00515.62
7.0.110.0270.00515.58
7.0.100.0300.00815.58
7.0.90.0300.00415.50
7.0.80.0300.00615.51
7.0.70.0240.00815.54
7.0.60.0290.00515.53
7.0.50.0400.00415.57
7.0.40.0280.01115.65
7.0.30.0340.00515.60
7.0.20.0300.00515.62
7.0.10.0450.00815.66
7.0.00.0330.00615.63
5.6.400.0110.00415.96
5.6.390.0120.00815.79
5.6.380.0130.00815.83
5.6.370.0090.00317.22
5.6.360.0110.00417.15
5.6.350.0070.00717.23
5.6.340.0090.00517.18
5.6.330.0100.00317.06
5.6.320.0090.00417.09
5.6.310.0040.00817.17
5.6.300.0090.00317.04
5.6.290.0070.00717.11
5.6.280.0060.00617.15
5.6.270.0130.00017.16
5.6.260.0120.00017.16
5.6.250.0090.00317.11
5.6.240.0040.00917.17
5.6.230.0120.00217.26
5.6.220.0080.00417.19
5.6.210.0090.00517.11
5.6.200.0110.00417.33
5.6.190.0080.00517.35
5.6.180.0130.00017.18
5.6.170.0090.00517.25
5.6.160.0130.00017.29
5.6.150.0130.00017.38
5.6.140.0090.00617.29
5.6.130.0110.00317.22
5.6.120.0130.00017.27
5.6.110.0060.00617.24
5.6.100.0090.00517.19
5.6.90.0080.00517.15
5.6.80.0120.00017.15
5.6.70.0140.00017.21
5.6.60.0090.00317.34
5.6.50.0090.00317.14
5.6.40.0060.00617.09
5.6.30.0100.00317.15
5.6.20.0100.00317.14
5.6.10.0040.00916.98
5.6.00.0050.00816.91

preferences:
81.25 ms | 403 KiB | 5 Q