3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html=<<<END <font size="3" color="blue">target</font> <font size="3" color="gree">false</font> END; $doc = new \DOMDocument(); $doc->loadHTML($html); $xpath = new \DOMXPath($doc); $fonts = $xpath->query('font[@size="3" ][ @color="blue"]'); foreach($fonts as $font){ echo $font->textContent. "\n"; } ?>

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.0110.00418.93
8.3.50.0170.00321.39
8.3.40.0100.00319.13
8.3.30.0030.01020.67
8.3.20.0000.00720.54
8.3.10.0040.00421.29
8.3.00.0080.00022.76
8.2.180.0090.00917.00
8.2.170.0150.00022.96
8.2.160.0100.00322.55
8.2.150.0000.00924.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0000.00821.30
8.2.110.0060.00322.68
8.2.100.0030.01020.95
8.2.90.0080.00019.52
8.2.80.0050.00317.97
8.2.70.0030.00717.75
8.2.60.0080.00018.05
8.2.50.0040.00418.07
8.2.40.0000.00818.59
8.2.30.0030.00519.84
8.2.20.0000.00718.04
8.2.10.0000.00717.99
8.2.00.0000.00718.20
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00622.36
8.1.230.0080.00319.41
8.1.220.0080.00018.16
8.1.210.0090.00018.77
8.1.200.0040.00817.60
8.1.190.0000.00817.48
8.1.180.0040.00418.10
8.1.170.0090.00018.87
8.1.160.0070.00019.27
8.1.150.0030.00518.92
8.1.140.0060.00317.72
8.1.130.0030.00318.16
8.1.120.0000.00717.86
8.1.110.0040.00417.82
8.1.100.0040.00417.84
8.1.90.0000.00717.76
8.1.80.0040.00317.77
8.1.70.0000.00717.83
8.1.60.0060.00317.96
8.1.50.0000.00817.92
8.1.40.0060.00317.91
8.1.30.0030.00617.87
8.1.20.0040.00418.05
8.1.10.0040.00417.80
8.1.00.0030.00517.77
8.0.300.0000.00818.77
8.0.290.0070.00017.00
8.0.280.0040.00418.76
8.0.270.0070.00018.39
8.0.260.0040.00417.24
8.0.250.0070.00317.32
8.0.240.0040.00417.22
8.0.230.0030.00317.29
8.0.220.0000.00717.30
8.0.210.0080.00017.33
8.0.200.0030.00317.40
8.0.190.0000.00717.34
8.0.180.0070.00017.21
8.0.170.0000.00817.31
8.0.160.0040.00417.25
8.0.150.0070.00017.34
8.0.140.0000.01017.32
8.0.130.0060.00013.74
8.0.120.0000.00817.16
8.0.110.0000.00717.29
8.0.100.0040.00417.32
8.0.90.0000.00717.17
8.0.80.0120.00317.39
8.0.70.0020.00517.32
8.0.60.0040.00417.17
8.0.50.0050.00317.23
8.0.30.0090.00817.58
8.0.20.0110.00717.47
8.0.10.0040.00417.27
8.0.00.0090.01417.06
7.4.330.0000.00517.02
7.4.320.0050.00316.93
7.4.300.0000.00616.83
7.4.290.0030.00316.96
7.4.280.0030.00316.79
7.4.270.0030.00316.89
7.4.260.0030.00313.60
7.4.250.0030.00616.91
7.4.240.0060.00216.91
7.4.230.0000.00716.93
7.4.220.0110.00716.96
7.4.210.0110.00516.96
7.4.200.0070.00016.89
7.4.190.0000.00716.95
7.4.160.0120.01216.73
7.4.150.0150.00517.40
7.4.140.0100.00817.86
7.4.130.0120.00516.81
7.4.120.0090.00916.74
7.4.110.0150.00316.83
7.4.100.0040.01316.80
7.4.90.0100.00716.93
7.4.80.0040.01719.39
7.4.70.0030.01517.03
7.4.60.0090.00916.68
7.4.50.0000.00916.74
7.4.40.0000.01622.77
7.4.30.0110.01016.90
7.4.00.0000.01114.92
7.3.330.0050.00013.48
7.3.320.0020.00513.45
7.3.310.0030.00316.49
7.3.300.0070.00016.47
7.3.290.0090.00616.60
7.3.280.0130.00416.58
7.3.270.0110.00617.40
7.3.260.0120.01318.24
7.3.250.0100.00716.71
7.3.240.0100.00716.62
7.3.230.0060.01116.79
7.3.210.0100.00616.51
7.3.200.0150.00319.39
7.3.190.0080.00816.63
7.3.180.0130.00916.70
7.3.170.0070.01416.74
7.3.160.0140.00916.77
7.3.120.0090.00614.89
7.2.330.0120.00617.00
7.2.320.0140.00316.93
7.2.310.0060.01816.95
7.2.300.0120.00616.70
7.2.290.0040.01217.03
7.1.200.0050.00215.71
7.1.70.0040.00417.02
7.1.60.0070.01819.17
7.1.50.0150.00716.73
7.1.00.0100.07022.55
7.0.200.0050.00217.01
7.0.140.0030.07322.16
7.0.90.0600.07320.18
7.0.80.0430.05720.03
7.0.70.0530.05020.11
7.0.60.0370.07020.17
7.0.50.0530.04320.38
7.0.40.0070.03320.24
7.0.30.0070.04020.06
7.0.20.0000.05020.14
7.0.10.0030.06020.17
7.0.00.0030.05720.05
5.6.280.0000.07721.02
5.6.230.0170.07320.79
5.6.220.0070.07720.68
5.6.210.0130.05020.66
5.6.200.0070.04321.20
5.6.190.0100.06321.23
5.6.180.0000.04321.22
5.6.170.0000.03721.14
5.6.160.0070.04021.21
5.6.150.0030.09021.25
5.6.140.0100.05321.23
5.6.130.0070.04021.16
5.6.120.0030.04721.15
5.6.110.0030.04321.22
5.6.100.0030.06321.23
5.6.90.0000.04721.16
5.6.80.0070.03720.44
5.6.70.0000.04720.52
5.6.60.0030.04020.56
5.6.50.0000.03720.59
5.6.40.0100.03320.61
5.6.30.0030.04020.60
5.6.20.0030.03320.46
5.6.10.0070.03720.53
5.6.00.0070.04020.50
5.5.370.0130.07720.61
5.5.360.0130.08020.51
5.5.350.0100.08320.59
5.5.340.0100.03721.05
5.5.330.0000.04320.90
5.5.320.0100.03721.02
5.5.310.0100.04320.99
5.5.300.0030.04720.75
5.5.290.0170.03321.04
5.5.280.0130.04321.02
5.5.270.0130.05020.93
5.5.260.0030.03721.00
5.5.250.0000.04320.83
5.5.240.0030.04320.42
5.5.230.0070.05020.40
5.5.220.0030.04020.38
5.5.210.0030.03320.13
5.5.200.0030.04020.30
5.5.190.0000.04320.27
5.5.180.0070.03720.25
5.5.160.0000.04320.36
5.5.150.0070.03320.25
5.5.140.0030.04020.25
5.5.130.0070.07320.32
5.5.120.0030.04320.23
5.5.110.0030.03320.09
5.5.100.0100.05320.15
5.5.90.0030.03320.22
5.5.80.0070.04720.23
5.5.70.0100.07320.23
5.5.60.0100.07720.24
5.5.50.0070.05720.04
5.5.40.0130.06720.18
5.5.30.0070.05020.03
5.5.20.0170.07020.17
5.5.10.0030.08320.16
5.5.00.0070.06020.06
5.4.450.0030.04719.52
5.4.440.0030.04019.61
5.4.430.0030.07719.36
5.4.420.0030.03319.50
5.4.410.0030.03719.36
5.4.400.0070.03319.18
5.4.390.0030.03319.23
5.4.380.0000.04019.26
5.4.370.0000.04018.98
5.4.360.0070.03719.01
5.4.350.0030.03719.07
5.4.340.0070.03019.08
5.4.320.0030.03318.98
5.4.310.0030.03319.28
5.4.300.0030.03719.27
5.4.290.0000.04019.22
5.4.280.0000.04018.98
5.4.270.0000.03319.18
5.4.260.0030.03319.16
5.4.250.0130.02719.36
5.4.240.0170.06719.35
5.4.230.0170.06719.16
5.4.220.0100.08019.07
5.4.210.0030.06319.18
5.4.200.0170.07019.15
5.4.190.0130.05319.22
5.4.180.0070.07319.03
5.4.170.0030.08319.00
5.4.160.0070.08019.34
5.4.150.0030.05719.19
5.4.140.0030.08016.46
5.4.130.0000.04716.54
5.4.120.0000.08316.34
5.4.110.0030.04316.43
5.4.100.0070.07716.62
5.4.90.0070.06016.43
5.4.80.0130.04316.48
5.4.70.0070.08016.63
5.4.60.0100.06716.50
5.4.50.0230.06016.47
5.4.40.0070.07016.44
5.4.30.0130.06016.43
5.4.20.0000.07316.52
5.4.10.0030.05716.48
5.4.00.0100.06015.98
5.3.290.0000.04314.81
5.3.280.0070.06314.73
5.3.270.0070.08314.73
5.3.260.0200.06014.73
5.3.250.0070.05014.75
5.3.240.0070.05014.76
5.3.230.0200.03014.72
5.3.220.0200.07014.71
5.3.210.0070.04314.58
5.3.200.0030.05714.71
5.3.190.0030.05314.70
5.3.180.0000.04714.71
5.3.170.0200.07014.60
5.3.160.0070.08314.71
5.3.150.0030.06714.74
5.3.140.0100.07014.55
5.3.130.0100.08014.68
5.3.120.0030.06014.64
5.3.110.0100.07314.68
5.3.100.0130.07314.15
5.3.90.0030.05314.03
5.3.80.0070.07714.00
5.3.70.0000.04314.15
5.3.60.0170.06314.14
5.3.50.0170.06014.04
5.3.40.0200.06314.07
5.3.30.0070.05014.04
5.3.20.0030.07713.86
5.3.10.0070.05013.65
5.3.00.0030.05013.76
5.2.170.0030.04713.64
5.2.160.0100.06013.64
5.2.150.0100.04013.64
5.2.140.0030.06313.64
5.2.130.0070.05013.64
5.2.120.0030.06313.64
5.2.110.0030.06313.64
5.2.100.0000.06713.64
5.2.90.0070.05713.64
5.2.80.0100.04713.64
5.2.70.0070.06313.64
5.2.60.0070.05713.64
5.2.50.0070.06013.64
5.2.40.0030.06313.64
5.2.30.0100.05313.64
5.2.20.0100.02713.64
5.2.10.0030.03713.64
5.2.00.0130.02313.64
5.1.60.0070.05013.64
5.1.50.0070.05013.64
5.1.40.0070.05013.64
5.1.30.0070.04313.64
5.1.20.0070.05713.64
5.1.10.0000.06013.64
5.1.00.0100.05313.64
5.0.50.0030.05013.64
5.0.40.0070.04013.64
5.0.30.0030.06713.64
5.0.20.0000.04713.64
5.0.10.0000.03313.64
5.0.00.0100.05713.64
4.4.90.0030.03313.64
4.4.80.0100.02313.64
4.4.70.0070.03313.64
4.4.60.0030.01313.64
4.4.50.0030.03313.64
4.4.40.0000.05013.64
4.4.30.0030.03713.64
4.4.20.0030.02013.64
4.4.10.0030.03313.64
4.4.00.0000.05013.64
4.3.110.0030.03013.64
4.3.100.0030.02713.64
4.3.90.0030.02313.64
4.3.80.0030.05713.64
4.3.70.0030.03313.64
4.3.60.0030.03313.64
4.3.50.0000.03013.64
4.3.40.0030.05013.64
4.3.30.0000.03713.64
4.3.20.0070.03013.64
4.3.10.0000.03713.64
4.3.00.0030.03713.64

preferences:
57.72 ms | 400 KiB | 5 Q