3v4l.org

run code in 300+ PHP versions simultaneously
<?php $XMLtoNAP = new SimpleXMLElement("<request></request>"); $XMLtoNAP->addAttribute('newsPagePrefix', 'value goes here'); $newsIntro = $XMLtoNAP->addChild('content'); $newsIntro->addAttribute('type', 'latest'); Header('Content-type: text/xml'); echo $XMLtoNAP->asXML();

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.0070.01118.43
8.3.50.0080.01122.07
8.3.40.0080.00818.96
8.3.30.0070.00718.96
8.3.20.0070.00720.57
8.3.10.0040.00423.89
8.3.00.0090.00017.75
8.2.180.0040.01116.88
8.2.170.0130.00722.96
8.2.160.0030.01019.71
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00420.01
8.2.110.0100.00022.45
8.2.100.0080.00418.01
8.2.90.0030.00519.42
8.2.80.0000.00817.97
8.2.70.0060.00317.88
8.2.60.0050.00318.18
8.2.50.0030.00619.60
8.2.40.0040.00420.60
8.2.30.0000.00819.46
8.2.20.0000.00717.91
8.2.10.0080.00018.23
8.2.00.0050.00218.22
8.1.280.0210.00025.92
8.1.270.0080.00024.04
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0090.00021.49
8.1.230.0070.00417.70
8.1.220.0000.00817.89
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0050.00517.35
8.1.180.0060.00318.10
8.1.170.0050.00318.71
8.1.160.0050.00322.30
8.1.150.0040.00420.86
8.1.140.0000.00719.69
8.1.130.0040.00417.98
8.1.120.0000.00717.69
8.1.110.0080.00317.63
8.1.100.0040.00417.58
8.1.90.0000.00817.55
8.1.80.0070.00017.68
8.1.70.0040.00417.54
8.1.60.0040.00417.79
8.1.50.0040.00417.60
8.1.40.0000.00817.63
8.1.30.0030.00517.73
8.1.20.0040.00417.88
8.1.10.0050.00317.71
8.1.00.0000.00817.85
8.0.300.0050.00318.77
8.0.290.0060.00317.00
8.0.280.0000.00718.70
8.0.270.0040.00417.50
8.0.260.0000.00717.52
8.0.250.0030.00317.29
8.0.240.0030.00317.25
8.0.230.0040.00317.07
8.0.220.0000.00716.94
8.0.210.0040.00417.00
8.0.200.0060.00316.99
8.0.190.0000.00817.19
8.0.180.0030.00316.98
8.0.170.0040.00416.99
8.0.160.0000.00717.10
8.0.150.0000.00717.04
8.0.140.0000.00717.07
8.0.130.0030.00313.39
8.0.120.0000.00716.99
8.0.110.0050.00217.16
8.0.100.0070.00017.06
8.0.90.0030.00517.02
8.0.80.0060.01517.10
8.0.70.0100.00017.03
8.0.60.0040.00416.92
8.0.50.0030.00517.16
8.0.30.0080.01017.13
8.0.20.0100.01017.49
8.0.10.0000.00717.25
8.0.00.0140.01116.98
7.4.330.0020.00215.17
7.4.320.0060.00016.70
7.4.300.0030.00316.59
7.4.290.0000.00716.57
7.4.280.0060.00316.89
7.4.270.0030.00316.70
7.4.260.0000.00716.59
7.4.250.0070.00016.86
7.4.240.0070.00016.70
7.4.230.0070.00016.81
7.4.220.0120.01216.64
7.4.210.0060.01116.80
7.4.200.0070.00016.72
7.4.160.0060.00916.78
7.4.150.0060.01117.40
7.4.140.0080.01017.86
7.4.130.0100.00716.71
7.4.120.0090.00816.69
7.4.110.0070.01016.81
7.4.100.0070.01016.77
7.4.90.0070.01016.76
7.4.80.0090.00919.39
7.4.70.0080.00816.81
7.4.60.0140.00416.68
7.4.50.0090.00616.77
7.4.40.0080.01016.82
7.4.30.0060.01016.70
7.4.00.0100.00714.94
7.3.330.0000.00513.20
7.3.320.0050.00313.29
7.3.310.0030.00316.47
7.3.300.0000.00716.28
7.3.290.0070.00016.28
7.3.280.0060.01016.40
7.3.270.0100.00717.40
7.3.260.0120.00516.65
7.3.250.0070.01116.53
7.3.240.0120.00616.64
7.3.230.0170.00016.51
7.3.210.0140.00316.38
7.3.200.0030.01316.28
7.3.190.0100.00716.46
7.3.180.0170.00416.36
7.3.170.0040.01316.67
7.3.160.0030.01516.50
7.2.330.0060.01216.72
7.2.320.0080.00816.96
7.2.310.0060.01217.03
7.2.300.0000.02216.80
7.2.290.0070.01016.55
7.2.00.0090.01619.15
7.1.70.0000.00717.01
7.1.60.0090.00619.79
7.1.00.0000.08022.53
7.0.200.0290.00614.88
7.0.90.0670.07020.21
7.0.80.0570.07320.13
7.0.70.0570.07320.13
7.0.60.0470.09020.04
7.0.50.0200.07320.41
7.0.40.0130.05320.11
7.0.30.0030.08720.20
7.0.20.0070.08720.07
7.0.10.0170.07320.14
7.0.00.0100.04720.16
5.6.280.0100.06720.88
5.6.230.0030.08320.54
5.6.220.0130.07020.74
5.6.210.0030.08720.65
5.6.200.0130.07021.16
5.6.190.0130.06021.11
5.6.180.0130.07321.15
5.6.170.0100.08321.18
5.6.160.0100.09321.07
5.6.150.0000.09021.10
5.6.140.0170.07721.11
5.6.130.0070.07021.13
5.6.120.0300.06021.13
5.6.110.0100.06721.11
5.6.100.0130.08020.99
5.6.90.0030.09021.07
5.6.80.0030.08320.36
5.6.70.0070.07720.65
5.6.60.0030.08320.50
5.6.50.0100.07320.36
5.6.40.0270.07020.45
5.6.30.0070.07320.49
5.6.20.0130.07320.63
5.6.10.0070.08020.49
5.6.00.0030.04720.49
5.5.370.0030.08720.55
5.5.360.0100.08020.42
5.5.350.0070.08320.46
5.5.340.0100.07720.80
5.5.330.0130.05720.80
5.5.320.0070.08020.93
5.5.310.0170.07720.99
5.5.300.0270.05721.04
5.5.290.0030.09020.92
5.5.280.0070.08320.80
5.5.270.0070.08720.98
5.5.260.0100.07020.96
5.5.250.0030.09020.81
5.5.240.0100.07720.26
5.5.230.0100.08320.40
5.5.220.0100.07720.19
5.5.210.0000.08020.22
5.5.200.0070.08020.38
5.5.190.0000.07720.39
5.5.180.0100.07720.22
5.5.160.0070.06720.15
5.5.150.0100.07320.25
5.5.140.0170.06320.23
5.5.130.0130.07320.34
5.5.120.0070.07720.15
5.5.110.0100.04720.16
5.5.100.0100.05720.09
5.5.90.0130.07020.21
5.5.80.0030.08320.24
5.5.70.0100.07320.25
5.5.60.0130.07320.21
5.5.50.0030.08020.10
5.5.40.0170.05020.10
5.5.30.0000.08320.09
5.5.20.0000.04720.08
5.5.10.0130.07020.15
5.5.00.0100.07320.07

preferences:
63.2 ms | 401 KiB | 5 Q