3v4l.org

run code in 300+ PHP versions simultaneously
<?php $doc = new DOMDocument; $doc->loadHTML( '<div id="wrapper_left">Some text</div>'); $xpath = new DOMXPath( $doc); $div = $xpath->query( '//div[@id="wrapper_left"]')->item(0); echo $div->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.0.0beta10.0110.00816.86
8.0.0alpha30.0070.01416.84
8.0.0alpha20.0090.00916.88
8.0.0alpha10.0000.01716.92
7.4.80.0070.01019.39
7.4.70.0000.01716.85
7.4.60.0110.00716.87
7.4.50.0030.00316.75
7.4.40.0070.01122.77
7.4.30.0120.00616.64
7.4.00.0120.00315.03
7.3.200.0090.01219.39
7.3.190.0080.00816.50
7.3.180.0060.00916.52
7.3.170.0100.00616.70
7.3.160.0100.00716.78
7.3.120.0100.00314.60
7.2.320.0070.01116.97
7.2.310.0070.01517.07
7.2.300.0000.01616.87
7.2.290.0070.01117.02
7.2.60.0080.00416.95
7.1.200.0030.00915.96
7.1.70.0080.00817.07
7.1.60.0060.01819.82
7.1.50.0030.00716.85
7.1.00.0070.07022.52
7.0.200.0080.00016.71
7.0.140.0070.07022.14
7.0.60.0070.08020.15
7.0.50.0000.04317.98
7.0.40.0170.07720.13
7.0.30.0370.07720.17
7.0.20.0270.07720.31
7.0.10.0400.06720.48
7.0.00.0170.05720.15
5.6.280.0070.07021.18
5.6.210.0130.08020.74
5.6.200.0070.06718.26
5.6.190.0000.09320.64
5.6.180.4070.05020.55
5.6.170.0270.08020.63
5.6.160.0170.07320.56
5.6.150.0100.04018.32
5.6.140.0030.08718.36
5.6.130.0100.06718.26
5.6.120.0070.05321.21
5.6.110.0000.08721.18
5.6.100.0070.08721.16
5.6.90.0130.07721.15
5.6.80.0100.07720.56
5.6.70.2030.03720.50
5.5.350.0070.07020.58
5.5.340.0070.05318.22
5.5.330.0000.09020.39
5.5.320.0230.08720.49
5.5.310.0230.05020.51
5.5.300.0070.07718.16
5.5.290.0070.05318.12
5.5.280.0030.04021.03
5.5.270.0130.06720.91
5.5.260.0070.06020.90
5.5.250.0100.07320.83
5.5.240.0070.06320.44
5.4.450.1770.04719.57
5.4.440.1500.04319.59
5.4.430.1500.04019.56
5.4.420.0870.04319.64
5.4.410.0070.04719.60
5.4.400.0030.03719.38
5.4.390.0070.04319.19
5.4.380.1430.04319.09
5.4.370.1700.04319.13
5.4.360.1630.04019.41
5.4.350.1600.03019.08
5.4.340.0030.06719.46
5.4.320.0070.05719.00
5.4.310.0700.03719.32
5.4.300.1600.03719.17
5.4.290.1630.04019.24
5.4.280.1730.03719.46
5.4.270.1800.04319.30
5.4.260.1500.03719.15
5.4.250.2030.04019.17
5.4.240.1730.05319.04
5.4.230.1770.04319.21
5.4.220.1770.04319.46
5.4.210.1700.06718.99
5.4.200.1800.04319.29
5.4.190.1800.04319.25
5.4.180.1730.04719.15
5.4.170.1730.04019.31
5.4.160.1730.03319.20
5.4.150.1700.04719.36
5.4.140.1770.04016.46
5.4.130.1770.03716.63
5.4.120.1530.03316.38
5.4.110.1830.03016.63
5.4.100.1730.04016.41
5.4.90.1570.04016.59
5.4.80.1270.04316.49
5.4.70.0000.06316.57
5.4.60.0100.03316.58
5.4.50.0600.04016.54
5.4.40.1730.04316.39
5.4.30.1730.03316.57
5.4.20.1830.04716.58
5.4.10.1830.04016.41
5.4.00.1630.02716.03
5.3.290.1830.04314.75
5.3.280.2000.03314.85
5.3.270.1900.04714.72
5.3.260.1870.05014.68
5.3.250.1730.03714.69
5.3.240.0030.03714.71
5.3.230.0070.04014.71
5.3.220.0570.03314.56
5.3.210.1600.03314.64
5.3.200.1670.03014.72
5.3.190.1670.06314.65
5.3.180.1700.04014.57
5.3.170.1770.03714.63
5.3.160.1530.04014.56
5.3.150.1530.03714.72
5.3.140.1730.04014.76
5.3.130.1430.03314.58
5.3.120.1570.04014.65
5.3.110.1830.05014.61
5.3.100.1600.03714.04
5.3.90.1530.04014.05
5.3.80.1530.04014.07
5.3.70.1600.03314.13
5.3.60.1600.03314.02
5.3.50.1900.04313.96
5.3.40.1730.03713.96
5.3.30.2030.04313.97
5.3.20.1800.04713.95
5.3.10.1700.04313.76
5.3.00.1600.02713.67
5.2.170.1430.02311.23
5.2.160.1470.04011.34
5.2.150.1500.03711.25
5.2.140.1270.03011.30
5.2.130.1770.02311.19
5.2.120.1430.03011.14
5.2.110.1400.03311.42
5.2.100.1370.03011.17
5.2.90.1330.03711.27
5.2.80.1270.03011.43
5.2.70.1270.03011.25
5.2.60.1500.03711.09
5.2.50.1530.03711.10
5.2.40.1170.03711.15
5.2.30.1070.03011.02
5.2.20.0970.03310.96
5.2.10.1270.03011.04
5.2.00.1270.03710.78
5.1.60.1130.03010.75
5.1.50.1030.02310.75
5.1.40.1230.02710.75
5.1.30.1170.02710.75
5.1.20.1270.03010.75
5.1.10.1230.03310.75
5.1.00.1000.02710.75
5.0.50.0700.03310.75
5.0.40.0630.03010.75
5.0.30.0600.04310.75
5.0.20.0770.03310.75
5.0.10.0670.03710.75
5.0.00.0670.02710.75
4.4.90.0530.01310.75
4.4.80.0500.01310.75
4.4.70.0700.02010.75
4.4.60.0630.03010.75
4.4.50.0600.01710.75
4.4.40.0600.03710.75
4.4.30.0600.01710.75
4.4.20.0530.01010.75
4.4.10.0670.02010.75
4.4.00.0600.03010.75
4.3.110.0600.02010.75
4.3.100.0600.01010.75
4.3.90.0670.02310.75
4.3.80.0730.03310.75
4.3.70.0600.02310.75
4.3.60.0700.02010.75
4.3.50.0700.02010.75
4.3.40.0630.03310.75
4.3.30.0330.03010.75
4.3.20.0270.02010.75
4.3.10.0330.03010.75
4.3.00.0330.01710.75