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.3.130.0080.00018.69
8.3.120.0060.00919.44
8.3.110.0000.00820.94
8.3.100.0000.01024.06
8.3.90.0120.00326.77
8.3.80.0050.00517.97
8.3.70.0090.00618.80
8.3.60.0060.00918.82
8.3.50.0150.00522.17
8.3.40.0180.00318.96
8.3.30.0080.01119.29
8.3.20.0000.00720.46
8.3.10.0000.00822.30
8.3.00.0040.00422.87
8.2.250.0090.00017.14
8.2.240.0070.00419.11
8.2.230.0080.00022.58
8.2.220.0120.00637.54
8.2.210.0110.00726.77
8.2.200.0090.00017.00
8.2.190.0150.00318.48
8.2.180.0150.00616.73
8.2.170.0110.00722.96
8.2.160.0130.00720.77
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0050.00317.88
8.2.110.0030.00622.67
8.2.100.0060.00919.95
8.2.90.0050.00319.43
8.2.80.0040.00418.18
8.2.70.0000.00818.00
8.2.60.0080.00018.30
8.2.50.0090.00018.07
8.2.40.0040.00418.47
8.2.30.0040.00418.40
8.2.20.0050.00218.03
8.2.10.0000.00717.89
8.2.00.0040.00417.90
8.1.300.0030.00818.33
8.1.290.0030.00630.84
8.1.280.0090.00625.92
8.1.270.0060.00323.99
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0040.00424.20
8.1.230.0080.00319.41
8.1.220.0040.00417.90
8.1.210.0060.00318.77
8.1.200.0090.00317.60
8.1.190.0000.00817.78
8.1.180.0070.00318.10
8.1.170.0000.00818.89
8.1.160.0060.00322.38
8.1.150.0000.00718.97
8.1.140.0000.00717.78
8.1.130.0000.00718.20
8.1.120.0050.00217.67
8.1.110.0000.00817.75
8.1.100.0000.00717.61
8.1.90.0080.00017.78
8.1.80.0030.00317.77
8.1.70.0030.00317.66
8.1.60.0030.00617.79
8.1.50.0030.00617.83
8.1.40.0080.00017.84
8.1.30.0040.00417.82
8.1.20.0080.00017.91
8.1.10.0070.00017.94
8.1.00.0000.00717.75
8.0.300.0000.00818.77
8.0.290.0000.00817.41
8.0.280.0000.00718.68
8.0.270.0070.00017.13
8.0.260.0050.00317.25
8.0.250.0030.00317.29
8.0.240.0090.00017.15
8.0.230.0050.00317.27
8.0.220.0000.00717.10
8.0.210.0030.00317.05
8.0.200.0000.00617.21
8.0.190.0060.00317.24
8.0.180.0050.00317.23
8.0.170.0060.00317.21
8.0.160.0080.00017.13
8.0.150.0070.00017.07
8.0.140.0040.00417.16
8.0.130.0030.00313.63
8.0.120.0000.00817.14
8.0.110.0070.00017.17
8.0.100.0040.00417.06
8.0.90.0040.00417.19
8.0.80.0100.01017.11
8.0.70.0030.00517.04
8.0.60.0050.00217.07
8.0.50.0050.00217.18
8.0.30.0100.01217.36
8.0.20.0110.00817.41
8.0.10.0050.00217.16
8.0.00.0060.01217.17
7.4.330.0000.00515.26
7.4.320.0000.00616.84
7.4.300.0050.00216.87
7.4.290.0000.00716.78
7.4.280.0030.00316.72
7.4.270.0030.00316.87
7.4.260.0080.00416.67
7.4.250.0040.00416.75
7.4.240.0030.00316.71
7.4.230.0030.00316.68
7.4.220.0090.01016.78
7.4.210.0080.00916.90
7.4.200.0000.00717.02
7.4.190.0050.00216.80
7.4.160.0080.00816.91
7.4.150.0110.00617.40
7.4.140.0080.00917.86
7.4.130.0090.00816.86
7.4.120.0080.00916.71
7.4.110.0100.00716.85
7.4.100.0000.01816.93
7.4.90.0120.00916.75
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.330.0020.00213.32
7.3.320.0000.00513.29
7.3.310.0050.00316.43
7.3.300.0030.00316.55
7.3.290.0120.00316.48
7.3.280.0100.00916.44
7.3.270.0140.00317.40
7.3.260.0130.00716.50
7.3.250.0080.01016.58
7.3.240.0160.00316.92
7.3.230.0100.01416.78
7.3.210.0140.01016.80
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.330.0030.01516.90
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

preferences:
28.97 ms | 403 KiB | 5 Q