3v4l.org

run code in 200+ PHP versions simultaneously
<?php $html = '<div class="h1">2008 Honda Accord Coupe<small> — Wuse II</small></div>'; $dom = new DomDocument(); $dom->loadHtml($html); $xpath = new DomXPath($dom); print $xpath->evaluate("string(//div[@class='h1']/text())");

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)
7.4.00.0100.00715.11
7.3.120.0090.00614.99
7.3.10.0030.01216.58
7.3.00.0070.00716.41
7.2.130.0000.01117.09
7.2.120.0120.00317.20
7.2.110.0090.00616.83
7.2.100.0040.01116.93
7.2.90.0000.01216.91
7.2.80.0110.00416.82
7.2.70.0030.00617.01
7.2.60.0020.01116.90
7.2.50.0040.00717.07
7.2.40.0000.01117.09
7.2.30.0030.00817.07
7.2.20.0000.01016.87
7.2.10.0000.00917.11
7.2.00.0030.00916.63
7.1.250.0080.00515.64
7.1.200.0060.00916.05
7.1.70.0030.01017.04
7.1.60.0190.00719.40
7.1.50.0150.00616.96
7.1.00.0070.06022.56
7.0.200.0030.00617.04
7.0.140.0200.05722.09
7.0.60.0100.07319.96
7.0.50.0170.06017.80
7.0.40.0100.08020.23
7.0.30.0370.07020.35
7.0.20.0200.06020.44
7.0.10.0100.06720.48
7.0.00.0070.04020.30
5.6.210.0130.06720.87
5.6.200.0030.05718.25
5.6.190.0030.07720.75
5.6.180.2570.04020.48
5.6.170.0300.06320.47
5.6.160.0200.06320.61
5.6.150.0070.08018.35
5.6.140.0030.05018.25
5.6.130.0100.05718.24
5.6.120.0100.07321.16
5.6.110.0070.06321.15
5.6.100.0130.08021.24
5.6.90.0170.07720.99
5.6.80.0100.07020.62
5.6.70.4530.04020.52
5.5.350.0370.06720.47
5.5.340.0070.05018.12
5.5.330.0030.04320.44
5.5.320.0300.07320.48
5.5.310.0370.07020.31
5.5.300.0130.07018.15
5.5.290.0100.04318.16
5.5.280.0100.07320.76
5.5.270.0070.05720.75
5.5.260.0070.04021.08
5.5.250.0130.07320.71
5.5.240.0400.06320.29
5.4.450.0130.07719.60
5.4.440.0100.04019.63
5.4.430.0130.04319.65
5.4.420.0070.04719.47
5.4.410.0030.06319.39
5.4.400.0070.04319.24
5.4.390.0100.03319.15
5.4.380.0070.07319.23
5.4.370.0100.07319.28
5.4.360.0130.06019.33
5.4.350.0170.05019.30
5.4.340.0130.04018.96
5.4.320.0070.06019.33
5.4.310.0100.08019.30
5.4.300.0100.06319.27
5.4.290.0100.07719.32
5.4.280.0000.07019.26
5.4.270.0030.05319.32
5.4.260.0030.07319.08
5.4.250.0030.03719.29
5.4.240.0000.04019.22
5.4.230.0030.04018.93
5.4.220.0030.03718.93
5.4.210.0030.03719.29
5.4.200.0100.03019.41
5.4.190.0070.03318.95
5.4.180.0000.04019.14
5.4.170.0070.03319.26
5.4.160.0070.03319.37
5.4.150.0070.03319.00
5.4.140.0030.03316.48
5.4.130.0030.03316.51
5.4.120.0070.03016.54
5.4.110.0000.03716.60
5.4.100.0130.03016.54
5.4.90.0000.03716.49
5.4.80.0000.04016.48
5.4.70.0070.03716.53
5.4.60.0000.04316.54
5.4.50.0030.03316.49
5.4.40.0100.02716.49
5.4.30.0000.03716.57
5.4.20.0030.03316.77
5.4.10.0030.03316.47
5.4.00.0000.03716.00
5.3.290.0030.07014.67
5.3.280.0000.04014.73
5.3.270.0030.03714.84
5.3.260.0100.03014.75
5.3.250.0030.03714.71
5.3.240.0100.03014.85
5.3.230.0000.04014.69
5.3.220.0070.03714.70
5.3.210.0000.04014.62
5.3.200.0030.03714.81
5.3.190.0100.03014.67
5.3.180.0030.03714.80
5.3.170.0000.03714.57
5.3.160.0070.03314.68
5.3.150.0070.03314.71
5.3.140.0000.03714.65
5.3.130.0030.03714.69
5.3.120.0030.03714.61
5.3.110.0030.03714.69
5.3.100.0030.03714.20
5.3.90.0070.03314.10
5.3.80.0100.03014.13
5.3.70.0000.03714.02
5.3.60.0070.03014.11
5.3.50.0070.03314.05
5.3.40.0070.05014.09
5.3.30.0000.05314.06
5.3.20.0070.07313.81
5.3.10.0130.06013.89
5.3.00.0030.05313.78
5.2.170.0000.04311.22
5.2.160.0100.02311.24
5.2.150.0000.03311.17
5.2.140.0070.06011.18
5.2.130.0130.04011.13
5.2.120.0100.06011.16
5.2.110.0100.05711.15
5.2.100.0000.05711.20
5.2.90.0000.06711.23
5.2.80.0130.05311.26
5.2.70.0000.03311.05
5.2.60.0100.05711.26
5.2.50.0100.05711.30
5.2.40.0030.05711.07
5.2.30.0070.05310.93
5.2.20.0030.06311.04
5.2.10.0130.02711.07
5.2.00.0030.03310.88
5.1.60.0000.02710.16
5.1.50.0030.04710.03
5.1.40.0030.02710.13
5.1.30.0070.05310.35
5.1.20.0000.05310.54
5.1.10.0070.05710.11
5.1.00.0070.04710.23
5.0.50.0100.0438.76
5.0.40.0070.0238.64
5.0.30.0030.0638.64
5.0.20.0000.0308.64
5.0.10.0000.0438.64
5.0.00.0030.0478.64
4.4.90.0070.0338.64
4.4.80.0030.0338.64
4.4.70.0000.0178.64
4.4.60.0000.0178.64
4.4.50.0000.0308.64
4.4.40.0030.0538.64
4.4.30.0070.0308.64
4.4.20.0000.0338.64
4.4.10.0030.0308.64
4.4.00.0000.0478.64
4.3.110.0000.0308.64
4.3.100.0070.0238.64
4.3.90.0030.0338.64
4.3.80.0030.0408.64
4.3.70.0030.0208.64
4.3.60.0100.0278.64
4.3.50.0000.0238.64
4.3.40.0000.0538.64
4.3.30.0000.0178.64
4.3.20.0030.0378.64
4.3.10.0000.0378.64
4.3.00.0000.0208.64