3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <?xml version="1.0"?> <rootElem> XML; //libxml_use_internal_errors(true); $reader = new XMLReader(); //$reader->xml($xml, null, LIBXML_NOERROR | LIBXML_NOWARNING); $reader->xml($xml); $reader->read();

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.70.0140.00716.86
8.3.60.0190.00017.00
8.3.50.0240.01016.65
8.3.40.0110.00419.04
8.3.30.0140.00018.95
8.3.20.0100.00619.20
8.3.10.0080.01120.77
8.3.00.0080.00019.63
8.2.180.0120.00317.00
8.2.170.0060.00922.96
8.2.160.0080.01121.45
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00619.86
8.2.110.0030.00720.81
8.2.100.0050.00517.97
8.2.90.0080.00019.65
8.2.80.0040.00417.97
8.2.70.0090.00017.75
8.2.60.0000.00818.05
8.2.50.0090.00418.07
8.2.40.0040.00418.41
8.2.30.0070.00218.26
8.2.20.0000.00717.84
8.2.10.0030.00617.96
8.2.00.0030.00617.96
8.1.280.0100.01025.92
8.1.270.0050.00224.66
8.1.260.0100.00626.35
8.1.250.0040.00428.09
8.1.240.0060.00322.38
8.1.230.0040.00722.89
8.1.220.0000.00817.93
8.1.210.0000.00818.77
8.1.200.0030.00617.47
8.1.190.0060.00317.60
8.1.180.0040.00418.10
8.1.170.0040.00418.93
8.1.160.0000.00719.10
8.1.150.0030.00518.98
8.1.140.0040.00417.68
8.1.130.0030.00318.17
8.1.120.0040.00417.72
8.1.110.0000.00717.76
8.1.100.0040.00417.66
8.1.90.0040.00417.59
8.1.80.0070.00017.57
8.1.70.0040.00417.57
8.1.60.0060.00317.69
8.1.50.0000.00817.61
8.1.40.0030.00517.85
8.1.30.0030.00517.89
8.1.20.0040.00417.97
8.1.10.0000.00717.89
8.1.00.0000.00817.82
8.0.300.0050.00318.77
8.0.290.0000.00717.00
8.0.280.0000.00718.69
8.0.270.0030.00317.46
8.0.260.0070.00017.02
8.0.250.0080.00017.27
8.0.240.0070.00017.09
8.0.230.0040.00417.36
8.0.220.0000.00817.18
8.0.210.0000.00717.05
8.0.200.0030.00317.32
8.0.190.0030.00517.15
8.0.180.0000.00717.18
8.0.170.0000.00817.13
8.0.160.0030.00317.08
8.0.150.0000.00717.18
8.0.140.0060.00317.21
8.0.130.0000.00613.66
8.0.120.0050.00317.11
8.0.110.0000.00717.29
8.0.100.0000.00717.24
8.0.90.0000.00717.21
8.0.80.0120.00317.14
8.0.70.0040.00417.20
8.0.60.0000.00717.16
8.0.50.0070.00017.26
8.0.30.0080.01317.24
8.0.20.0170.00217.41
8.0.10.0080.00017.30
8.0.00.0120.00717.00
7.4.330.0030.00313.38
7.4.320.0050.00516.78
7.4.300.0060.00016.70
7.4.290.0070.00016.84
7.4.280.0030.00616.82
7.4.270.0030.00516.77
7.4.260.0000.00513.48
7.4.250.0030.00616.75
7.4.240.0070.00016.83
7.4.230.0030.00316.82
7.4.220.0100.01716.86
7.4.210.0080.00916.75
7.4.200.0000.00716.91
7.4.190.0040.00416.88
7.4.160.0070.01016.70
7.4.150.0000.01716.72
7.4.140.0080.01116.86
7.4.130.0060.01016.76
7.4.120.0100.01016.86
7.4.110.0110.00616.56
7.4.100.0100.00716.85
7.4.90.0090.00916.78
7.4.80.0030.02119.39
7.4.70.0110.00916.71
7.4.60.0230.00016.85
7.4.50.0030.00616.63
7.4.40.0060.00616.76
7.4.30.0080.00816.71
7.4.00.0100.00614.98
7.3.330.0050.00013.40
7.3.320.0030.00413.50
7.3.310.0000.00716.39
7.3.300.0040.00416.50
7.3.290.0090.00616.65
7.3.280.0060.01116.54
7.3.270.0060.01316.69
7.3.260.0090.00916.65
7.3.250.0140.00716.63
7.3.240.0060.01116.63
7.3.230.0090.00616.48
7.3.210.0090.01316.44
7.3.200.0030.01416.45
7.3.190.0030.01716.44
7.3.180.0080.01016.52
7.3.170.0070.01016.47
7.3.160.0090.00616.56
7.3.120.0070.01114.73
7.3.10.0040.01016.28
7.3.00.0090.00616.59
7.2.330.0080.01016.80
7.2.320.0110.00716.59
7.2.310.0180.00416.66
7.2.300.0070.01316.73
7.2.290.0120.00416.79
7.2.130.0070.01016.89
7.2.120.0080.00816.83
7.2.110.0060.01016.90
7.2.100.0090.00816.82
7.2.90.0040.01016.82
7.2.80.0080.00716.98
7.2.70.0100.00616.93
7.2.60.0060.00816.90
7.2.50.0110.00416.77
7.2.40.0040.00916.84
7.2.30.0060.01016.84
7.2.20.0080.00716.81
7.2.10.0100.00316.75
7.2.00.0070.00616.96
7.1.250.0070.00715.81
7.1.240.0000.01415.86
7.1.230.0070.00415.99
7.1.220.0000.01215.74
7.1.210.0060.00815.98
7.1.200.0010.00915.83
7.1.190.0030.00915.98
7.1.180.0100.00315.94
7.1.170.0030.01015.86
7.1.160.0040.00415.67
7.1.150.0050.00315.49
7.1.140.0080.00416.06
7.1.130.0040.01215.92
7.1.120.0030.00915.56
7.1.110.0070.00015.73
7.1.100.0030.00315.65
7.1.90.0070.00315.60
7.1.80.0030.01215.85
7.1.70.0050.00416.61
7.1.60.0040.01417.68
7.1.50.0050.01516.37
7.1.40.0030.00915.93
7.1.30.0070.01015.66
7.1.20.0070.00715.58
7.1.10.0060.00615.80
7.1.00.0120.03819.12
7.0.330.0040.00815.39
7.0.320.0060.00915.35
7.0.310.0000.01015.39
7.0.300.0090.00015.26
7.0.290.0000.01215.18
7.0.280.0000.01115.13
7.0.270.0030.00915.38
7.0.260.0030.00915.51
7.0.250.0030.00615.52
7.0.240.0040.00715.28
7.0.230.0030.00615.54
7.0.220.0030.00915.55
7.0.210.0030.00615.46
7.0.200.0160.00714.96
7.0.190.0080.00315.48
7.0.180.0030.00615.14
7.0.170.0070.00015.65
7.0.160.0090.00615.18
7.0.150.0080.00815.66
7.0.140.0050.04018.88
7.0.130.0060.00615.36
7.0.120.0050.03918.78
7.0.110.0000.01515.57
7.0.100.0000.00915.46
7.0.90.0090.00615.32
7.0.80.0100.00315.50
7.0.70.0040.01115.56
7.0.60.0050.04817.89
7.0.50.0110.02616.62
7.0.40.0050.03516.88
7.0.30.0250.02016.96
7.0.20.0170.03717.01
7.0.10.0070.02816.80
7.0.00.0050.04016.86
5.6.380.0030.01114.20
5.6.370.0040.00714.27
5.6.360.0030.00914.47
5.6.350.0040.00414.30
5.6.340.0030.00614.70
5.6.330.0090.00314.23
5.6.320.0000.01414.15
5.6.310.0140.00014.43
5.6.300.0100.00314.63
5.6.290.0080.00814.18
5.6.280.0090.03817.86
5.6.270.0000.01514.30
5.6.260.0130.00414.61
5.6.250.0050.00814.58
5.6.240.0100.00514.51
5.6.230.0040.01114.48
5.6.220.0040.00414.34
5.6.210.0110.03917.58
5.6.200.0110.04316.45
5.6.190.0030.03617.51
5.6.180.0130.02317.54
5.6.170.0230.01817.74
5.6.160.0120.04017.47
5.6.150.0020.05016.25
5.6.140.0020.02716.33
5.6.130.0100.03516.28
5.6.120.0080.04317.79
5.6.110.0050.04017.70
5.6.100.0080.04317.80
5.6.90.0110.03817.75
5.6.80.0050.03817.51
5.6.70.0070.00714.40
5.6.60.0100.00714.45
5.6.50.0090.00614.24
5.6.40.0080.00814.29
5.6.30.0070.00714.64
5.6.20.0060.00614.25
5.6.10.0000.01414.27
5.6.00.0070.00714.41
5.5.380.0030.00611.18
5.5.370.0030.00311.18
5.5.360.0030.00611.18
5.5.350.0070.02715.98
5.5.340.0070.04314.68
5.5.330.0080.02815.86
5.5.320.2000.02115.79
5.5.310.0200.03315.77
5.5.300.0070.04014.65
5.5.290.0050.04214.64
5.5.280.0030.02316.11
5.5.270.0090.03415.99
5.5.260.0120.03716.07
5.5.250.0110.03615.90
5.5.240.0070.01715.75
5.5.230.0040.00711.18
5.5.220.0070.00711.18
5.5.210.0000.01211.18
5.5.200.0080.00411.18
5.5.190.0110.00011.18
5.5.180.0070.00711.18
5.5.170.0030.00711.31
5.5.160.0110.00011.18
5.5.150.0080.00311.18
5.5.140.0060.00611.18
5.5.130.0020.00511.25
5.5.120.0000.01111.18
5.5.110.0070.00011.28
5.5.100.0070.00311.18
5.5.90.0050.00511.18
5.5.80.0090.00311.18
5.5.70.0060.00611.18
5.5.60.0030.01011.33
5.5.50.0090.00311.41
5.5.40.0090.00311.35
5.5.30.0060.00611.18
5.5.20.0080.00011.18
5.5.10.0000.00711.18
5.5.00.0030.01011.18
5.4.450.2200.01915.37
5.4.440.1800.02015.35
5.4.430.2060.01815.43
5.4.420.2000.02615.36
5.4.410.2000.01815.28
5.4.400.1940.02215.28
5.4.390.1970.02015.20
5.4.380.2040.01915.26
5.4.370.1820.01915.19
5.4.360.1990.02115.27
5.4.350.2300.01715.22
5.4.340.2250.02015.24
5.4.330.0000.01011.18
5.4.320.2180.01815.22
5.4.310.2170.02415.27
5.4.300.2180.02015.18
5.4.290.2330.02015.12
5.4.280.2010.02015.18
5.4.270.2280.01815.13
5.4.260.2270.02315.18
5.4.250.2360.01815.27
5.4.240.2310.01815.33
5.4.230.2310.02415.20
5.4.220.2360.02015.22
5.4.210.2120.02115.27
5.4.200.2320.02515.13
5.4.190.2280.01815.27
5.4.180.1920.02415.19
5.4.170.1860.02515.26
5.4.160.1650.01915.21
5.4.150.2100.02815.18
5.4.140.1800.01813.86
5.4.130.1830.02213.86
5.4.120.1850.01913.89
5.4.110.2010.01613.93
5.4.100.1960.01713.89
5.4.90.2020.02513.97
5.4.80.2110.02113.88
5.4.70.2280.02213.94
5.4.60.1050.02513.90
5.4.50.0070.03713.88
5.4.40.1900.02013.95
5.4.30.1760.02013.89
5.4.20.2050.02213.95
5.4.10.1960.02113.91
5.4.00.1880.01813.61
5.3.290.2000.02212.97
5.3.280.2320.02212.96
5.3.270.1820.01812.94
5.3.260.1540.02212.88
5.3.250.1800.02012.98
5.3.240.1830.01612.99
5.3.230.1830.01712.94
5.3.220.1800.02012.97
5.3.210.1750.02312.95
5.3.200.1960.02012.96
5.3.190.2730.01712.96
5.3.180.2300.01812.92
5.3.170.2120.02212.95
5.3.160.0030.03112.97
5.3.150.0070.03612.98
5.3.140.2270.02212.86
5.3.130.2000.02412.93
5.3.120.2130.02212.94
5.3.110.1960.02312.95
5.3.100.1930.02312.65
5.3.90.1920.02512.68
5.3.80.1810.02112.70
5.3.70.2050.01812.69
5.3.60.2000.01312.68
5.3.50.1950.01812.66
5.3.40.2200.02312.61
5.3.30.1370.02212.63
5.3.20.0050.04312.46
5.3.10.2350.01812.51
5.3.00.1880.01812.47
5.2.170.1730.01911.27
5.2.160.1850.01911.18
5.2.150.1750.01611.20
5.2.140.0050.02211.23
5.2.130.0030.01811.16
5.2.120.0880.01811.23
5.2.110.1660.01711.25
5.2.100.1880.01511.25
5.2.90.2020.01511.22
5.2.80.1850.01811.24
5.2.70.1780.01811.13
5.2.60.1580.01811.21
5.2.50.1650.01611.19
5.2.40.1290.01711.17
5.2.30.1420.01811.07
5.2.20.1530.01511.16
5.2.10.1270.01511.09
5.2.00.1460.01810.94
5.1.60.1360.01510.66
5.1.50.1300.01610.68
5.1.40.1220.01410.65
5.1.30.1330.01510.87
5.1.20.1250.01810.87
5.1.10.1620.01310.62
5.1.00.1670.01310.59
5.0.50.0810.0149.86
5.0.40.0800.0129.82
5.0.30.0830.0189.68
5.0.20.0870.0119.72
5.0.10.0730.0109.69
5.0.00.0820.0179.65
4.4.90.0850.0118.52
4.4.80.0760.0108.53
4.4.70.0860.0108.52
4.4.60.0860.0088.53
4.4.50.0860.0088.52
4.4.40.0790.0128.52
4.4.30.0820.0078.52
4.4.20.0820.0088.55
4.4.10.0890.0128.52
4.4.00.0650.0158.55
4.3.110.0720.0108.52
4.3.100.0800.0108.52
4.3.90.0630.0088.52
4.3.80.0620.0128.52
4.3.70.0570.0118.52
4.3.60.0750.0128.52
4.3.50.0790.0088.52
4.3.40.0770.0168.52
4.3.30.0410.0128.52
4.3.20.0450.0148.52
4.3.10.0510.0118.52
4.3.00.0450.0138.52

preferences:
43.19 ms | 401 KiB | 5 Q