3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<T <data> <Report ID="1"> <Date>Review</Date> <vt:lpstr>2</vt:lpstr> </Report> </data> T; $xmlDoc = new DOMDocument(); $xmlDoc->loadXML( $xml ); $searchNode = $xmlDoc->getElementsByTagName( "Report" ); foreach( $searchNode as $searchNode ) { $valueID = $searchNode->getAttribute('ID'); $xmlDate = $searchNode->getElementsByTagName("Date"); $valueDate = $xmlDate->item(0)->nodeValue; $xmlvtlpstr = $searchNode->getElementsByTagName( "vt:lpstr"); $newelement = $xmlvtlpstr->createTextNode('xmlvtlpstr'); $searchNode->replaceChild($xmlvtlpstr, $newelement); $valuevtlpstr = $xmlvtlpstr->item(0)->nodeValue; echo "$valueID - $valueDate - $valuevtlpstr\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.0140.00718.64
8.3.50.0040.01116.60
8.3.40.0060.00919.23
8.3.30.0080.00818.95
8.3.20.0040.00422.16
8.3.10.0040.00423.83
8.3.00.0080.00019.30
8.2.180.0120.00917.00
8.2.170.0040.01122.96
8.2.160.0070.00720.60
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00818.34
8.2.120.0040.00426.35
8.2.110.0060.00321.14
8.2.100.0060.00618.09
8.2.90.0050.00318.19
8.2.80.0080.00019.65
8.2.70.0040.00418.29
8.2.60.0040.00417.88
8.2.50.0060.00618.10
8.2.40.0080.00020.80
8.2.30.0040.00419.63
8.2.20.0090.00318.29
8.2.10.0040.00418.43
8.2.00.0030.00620.07
8.1.280.0110.00425.92
8.1.270.0090.00020.60
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0080.00420.94
8.1.230.0090.00322.79
8.1.220.0000.00818.02
8.1.210.0060.00318.85
8.1.200.0040.00417.60
8.1.190.0030.00617.48
8.1.180.0070.00418.10
8.1.170.0040.00419.05
8.1.160.0040.00419.23
8.1.150.0040.00419.29
8.1.140.0070.00018.09
8.1.130.0080.00020.46
8.1.120.0040.00417.71
8.1.110.0080.00017.73
8.1.100.0030.00517.57
8.1.90.0000.00817.69
8.1.80.0040.00417.75
8.1.70.0030.00317.75
8.1.60.0090.00317.84
8.1.50.0000.00917.66
8.1.40.0050.00217.80
8.1.30.0050.00317.73
8.1.20.0040.00417.82
8.1.10.0070.00017.72
8.1.00.0000.00917.59
8.0.300.0060.00320.12
8.0.290.0070.00017.00
8.0.280.0000.00718.67
8.0.270.0000.00817.46
8.0.260.0030.00317.08
8.0.250.0000.00717.31
8.0.240.0070.00017.21
8.0.230.0000.00817.13
8.0.220.0000.00817.25
8.0.210.0070.00017.26
8.0.200.0030.00317.19
8.0.190.0050.00317.29
8.0.180.0000.00717.27
8.0.170.0030.00617.30
8.0.160.0000.00717.14
8.0.150.0040.00417.10
8.0.140.0040.00417.09
8.0.130.0000.00613.76
8.0.120.0080.00017.20
8.0.110.0050.00317.07
8.0.100.0000.00817.20
8.0.90.0040.00417.14
8.0.80.0070.01117.13
8.0.70.0040.00417.05
8.0.60.0030.00617.13
8.0.50.0000.00717.16
8.0.30.0130.00717.29
8.0.20.0100.00917.40
8.0.10.0060.00317.25
8.0.00.0090.00917.27
7.4.330.0000.00515.55
7.4.320.0060.00016.79
7.4.300.0060.00016.61
7.4.290.0000.00716.78
7.4.280.0000.00816.84
7.4.270.0050.00516.64
7.4.260.0000.00816.86
7.4.250.0030.00316.70
7.4.240.0000.00716.66
7.4.230.0000.00816.90
7.4.220.0000.00716.56
7.4.210.0050.01316.88
7.4.200.0040.00416.84
7.4.160.0080.00816.84
7.4.140.0130.00817.86
7.4.130.0070.01016.74
7.4.120.0100.00916.81
7.4.110.0070.01016.79
7.4.100.0090.00916.76
7.4.90.0000.01916.64
7.4.80.0160.00319.39
7.4.70.0130.00416.77
7.4.60.0030.01716.85
7.4.50.0070.00716.77
7.4.40.0080.00916.67
7.4.00.0100.00515.04
7.3.330.0000.00513.47
7.3.320.0000.00613.48
7.3.310.0000.00716.41
7.3.300.0040.00416.53
7.3.290.0000.00716.54
7.3.280.0120.00716.59
7.3.260.0130.00916.73
7.3.240.0110.01016.63
7.3.230.0090.01116.68
7.3.210.0060.01216.63
7.3.200.0160.00316.78
7.3.190.0160.00616.64
7.3.180.0070.01016.60
7.3.170.0100.00716.69
7.3.160.0060.01016.77
7.3.120.0100.00714.96
7.3.110.0090.00915.14
7.3.100.0030.01314.98
7.3.90.0080.00815.13
7.3.80.0130.00315.05
7.3.70.0110.00015.15
7.3.60.0030.01014.84
7.3.50.0040.00414.99
7.3.40.0040.01114.97
7.3.30.0060.00814.84
7.3.20.0070.00716.63
7.3.10.0080.00316.87
7.3.00.0000.01316.73
7.2.330.0110.00717.09
7.2.320.0100.00716.61
7.2.310.0120.00616.79
7.2.300.0100.00716.77
7.2.290.0110.01216.89
7.2.250.0080.01114.99
7.2.240.0000.01915.05
7.2.230.0040.01114.90
7.2.220.0070.01015.25
7.2.210.0110.00415.33
7.2.200.0030.01015.32
7.2.190.0100.01015.29
7.2.180.0030.00615.21
7.2.170.0070.01015.28
7.2.160.0140.00015.07
7.2.150.0000.01017.18
7.2.140.0000.01717.05
7.2.130.0040.01516.87
7.2.120.0070.01016.82
7.2.110.0050.00816.84
7.2.100.0040.01216.97
7.2.90.0000.00917.19
7.2.80.0060.00917.11
7.2.70.0030.00917.03
7.2.60.0070.00816.88
7.2.50.0050.01016.85
7.2.40.0070.00317.06
7.2.30.0150.01117.48
7.2.20.0120.01317.61
7.2.10.1800.00917.73
7.2.00.0200.01017.62
7.1.330.0040.01115.73
7.1.320.0040.00815.77
7.1.310.0040.00715.77
7.1.300.0060.00915.90
7.1.290.0060.00615.72
7.1.280.0060.00715.74
7.1.270.0110.00015.63
7.1.260.0100.00315.83
7.1.250.0000.00915.77
7.1.240.0080.00415.97
7.1.230.0000.01015.89
7.1.220.0030.01315.92
7.1.210.0100.00315.89
7.1.200.0060.00615.96
7.1.190.0030.00915.95
7.1.180.0080.00015.86
7.1.170.0030.01015.66
7.1.160.0040.00416.16
7.1.150.0170.01016.40
7.1.140.0110.01016.46
7.1.130.0140.00816.51
7.1.120.0180.00916.43
7.1.110.0130.01315.96
7.1.100.0180.00816.10
7.1.90.0170.01115.99
7.1.80.0210.00715.88
7.1.70.0140.00815.62
7.1.60.0250.00724.65
7.1.50.0250.00824.42
7.1.40.0290.01124.39
7.1.30.0250.01424.30
7.1.20.0250.00924.33
7.1.10.0140.00915.38
7.1.00.0190.00915.38
7.0.330.0040.00815.68
7.0.320.0030.01015.55
7.0.310.0040.01115.17
7.0.300.0070.00715.32
7.0.290.0000.00815.47
7.0.280.0120.00615.51
7.0.270.0070.00715.57
7.0.260.0030.00615.71
7.0.250.0090.00615.52
7.0.240.0070.00315.55
7.0.230.0070.00715.52
7.0.220.0060.00915.39
7.0.210.0030.01215.45
7.0.200.0070.01015.36
7.0.190.0090.00015.45
7.0.180.0030.00915.70
7.0.170.0000.01415.54
7.0.160.0070.00715.45
7.0.150.0030.01015.74
7.0.140.0000.01015.29
7.0.130.0070.00315.45
7.0.120.0090.00615.50
7.0.110.0100.00715.46
7.0.100.0090.00015.67
7.0.90.0070.00715.63
7.0.80.0030.01015.38
7.0.70.0130.00315.65
7.0.60.0100.00615.73
7.0.50.0030.01015.52
7.0.40.0030.01014.84
7.0.30.0050.00514.84
7.0.20.0000.01114.84
7.0.10.0060.00914.84
7.0.00.0060.00614.84
5.6.400.0090.00614.84
5.6.390.0030.01014.84
5.6.380.0060.01014.84
5.6.370.0080.00314.84
5.6.360.0030.01214.84
5.6.350.0040.01214.84
5.6.340.0060.00914.84
5.6.330.0090.00014.84
5.6.320.0120.00314.84
5.6.310.0070.01014.84
5.6.300.0030.00614.84
5.6.290.0000.01214.84
5.6.280.0070.00714.84
5.6.270.0090.00914.84
5.6.260.0060.00914.84
5.6.250.0030.01014.84
5.6.240.0040.01114.84
5.6.230.0040.01114.84
5.6.220.0030.01014.84
5.6.210.0090.00614.84
5.6.200.0040.01114.84
5.6.190.0120.00314.84
5.6.180.0070.00414.84
5.6.170.0070.00714.84
5.6.160.0040.01214.84
5.6.150.0040.01114.84
5.6.140.0060.00614.84
5.6.130.0090.00314.84
5.6.120.0060.00614.84
5.6.110.0100.00614.84
5.6.100.0060.00914.84
5.6.90.0090.00914.84
5.6.80.0090.00614.84
5.6.70.0040.00814.84
5.6.60.0070.00414.84
5.6.50.0030.01014.84
5.6.40.0100.00014.84
5.6.30.0070.00714.84
5.6.20.0030.01014.84
5.6.10.0040.00814.84
5.6.00.0060.00914.84

preferences:
64.31 ms | 401 KiB | 5 Q