3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new XMLWriter(); $xml->openMemory(); $xml->startElement('parent'); $xml->writeElement('child'); $xml->writeAttribute('parentAttribute', 'a value'); $xml->endElement(); echo $xml->outputMemory(); $xml2 = new XMLWriter(); $xml2->openMemory(); $xml2->startElement('parent'); $xml2->writeAttribute('parentAttribute', 'a value'); $xml2->writeElement('child'); $xml2->endElement(); echo $xml2->outputMemory();

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.0170.00316.63
8.3.50.0070.00716.75
8.3.40.0120.00318.79
8.3.30.0090.00618.75
8.3.20.0050.00320.46
8.3.10.0030.00621.91
8.3.00.0050.00317.75
8.2.180.0060.01018.79
8.2.170.0070.01122.96
8.2.160.0100.00320.54
8.2.150.0140.00025.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00721.19
8.2.110.0150.00319.62
8.2.100.0080.00418.17
8.2.90.0030.00619.34
8.2.80.0030.00518.29
8.2.70.0060.00617.75
8.2.60.0000.00818.16
8.2.50.0060.00318.10
8.2.40.0030.00522.45
8.2.30.0040.00421.22
8.2.20.0020.00518.30
8.2.10.0000.00718.27
8.2.00.0050.00318.01
8.1.280.0120.00625.92
8.1.270.0050.00223.92
8.1.260.0030.00726.35
8.1.250.0040.00428.09
8.1.240.0040.00422.27
8.1.230.0080.00419.17
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0060.00317.22
8.1.190.0060.00617.35
8.1.180.0080.00018.10
8.1.170.0040.00418.59
8.1.160.0040.00419.26
8.1.150.0000.00720.73
8.1.140.0000.00719.56
8.1.130.0040.00419.00
8.1.120.0030.00417.50
8.1.110.0040.00417.63
8.1.100.0000.00717.59
8.1.90.0050.00517.48
8.1.80.0080.00017.54
8.1.70.0070.00017.51
8.1.60.0000.00717.61
8.1.50.0070.00017.55
8.1.40.0000.00817.57
8.1.30.0000.00817.80
8.1.20.0000.00817.63
8.1.10.0000.00717.68
8.1.00.0030.00617.65
8.0.300.0000.00818.77
8.0.290.0040.00416.88
8.0.280.0030.00318.46
8.0.270.0070.00017.33
8.0.260.0000.00817.11
8.0.250.0000.00717.05
8.0.240.0000.00717.14
8.0.230.0000.00816.97
8.0.220.0030.00316.96
8.0.210.0000.00717.04
8.0.200.0030.00317.00
8.0.190.0040.00417.08
8.0.180.0090.00017.04
8.0.170.0040.00417.00
8.0.160.0000.00916.96
8.0.150.0000.00816.88
8.0.140.0000.00816.99
8.0.130.0000.00613.55
8.0.120.0040.00416.92
8.0.110.0020.00516.73
8.0.100.0040.00416.88
8.0.90.0030.00317.02
8.0.80.0070.00717.00
8.0.70.0040.00417.08
8.0.60.0030.00516.96
8.0.50.0040.00416.83
8.0.30.0120.00517.28
8.0.20.0120.00717.42
8.0.10.0000.00717.25
8.0.00.0100.00716.84
7.4.330.0000.00515.55
7.4.320.0000.00616.59
7.4.300.0000.00716.63
7.4.290.0040.00416.50
7.4.280.0060.00316.63
7.4.270.0040.00416.63
7.4.260.0060.00013.49
7.4.250.0030.00616.62
7.4.240.0000.00716.69
7.4.230.0040.00416.62
7.4.220.0120.01416.60
7.4.210.0090.00616.72
7.4.200.0000.00716.49
7.4.160.0080.00816.56
7.4.150.0120.01217.40
7.4.140.0100.00717.86
7.4.130.0030.01416.70
7.4.120.0120.01016.67
7.4.110.0090.00916.75
7.4.100.0060.01016.54
7.4.90.0150.00316.70
7.4.80.0070.01719.39
7.4.70.0060.01316.59
7.4.60.0100.00616.72
7.4.50.0060.00616.69
7.4.40.0140.00916.64
7.4.30.0100.00716.69
7.4.00.0070.01014.63
7.3.330.0050.00013.09
7.3.320.0000.00513.19
7.3.310.0070.00016.27
7.3.300.0060.00016.20
7.3.290.0090.00516.31
7.3.280.0080.00816.27
7.3.270.0110.00717.40
7.3.260.0080.00816.32
7.3.250.0140.00616.52
7.3.240.0140.00416.50
7.3.230.0110.01216.23
7.3.210.0030.01416.28
7.3.200.0100.00616.61
7.3.190.0080.00816.53
7.3.180.0090.00616.59
7.3.170.0120.01016.71
7.3.160.0060.01016.40
7.3.10.0080.00016.52
7.3.00.0030.00616.70
7.2.330.0220.01016.88
7.2.320.0040.01216.56
7.2.310.0100.00716.83
7.2.300.0130.01016.76
7.2.290.0090.00916.78
7.2.130.0030.00716.79
7.2.120.0100.00716.66
7.2.110.0120.00316.77
7.2.100.0060.00317.02
7.2.90.0080.00317.10
7.2.80.0000.00916.85
7.2.70.0000.00916.71
7.2.60.0060.00416.91
7.2.50.0090.00317.00
7.2.40.0110.00317.03
7.2.30.0090.00616.80
7.2.20.0060.00616.73
7.2.10.0060.00316.73
7.2.00.0060.00918.21
7.1.250.0060.00615.89
7.1.200.0070.00715.50
7.1.100.0030.01017.89
7.1.70.1800.01315.09
7.1.60.2230.01733.33
7.1.50.2270.01032.91
7.1.40.2400.02332.42
7.1.30.3100.02032.47
7.1.20.2700.00732.72
7.1.10.2500.02314.62
7.1.00.2770.01014.75
7.0.200.2230.01314.91
7.0.190.2700.01315.11
7.0.180.2370.01314.51
7.0.170.3130.01314.48
7.0.160.2970.01714.56
7.0.150.2470.02014.21
7.0.140.2630.01314.45
7.0.130.2930.01014.79
7.0.120.2970.00314.74
7.0.110.2970.00714.57
7.0.100.2730.01714.73
7.0.90.2800.00714.55
7.0.80.2730.01714.61
7.0.70.3100.01314.54
7.0.60.3400.00714.37
7.0.50.3300.01314.51
7.0.40.3500.00714.72
7.0.30.3130.01014.64
7.0.20.3200.01714.78
7.0.10.3170.01714.75
7.0.00.3000.01714.84

preferences:
42.77 ms | 400 KiB | 5 Q