3v4l.org

run code in 300+ PHP versions simultaneously
<?php $buffer = <<<XML <?xml version="1.0"?> <!DOCTYPE foo [ <!ELEMENT foo ANY > <!ENTITY xxe SYSTEM "data://text/html,aaaa" >]><foo>&xxe;</foo> XML; //libxml_disable_entity_loader(false); $xml = simplexml_load_string($buffer); var_dump($xml); echo "trying New SimpleXMLElement($xml)"; $xml = new SimpleXMLElement($buffer); var_dump($xml); echo 'Enabling LIBXML_NOENT for test reasons'; $xml = simplexml_load_string($buffer, 'SimpleXMLElement', LIBXML_NOENT); var_dump($xml);

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.4.20.0000.00917.84
8.4.10.0030.00717.84
8.3.150.0000.00819.16
8.3.140.0030.00616.92
8.3.130.0070.01016.91
8.3.120.0060.00319.02
8.3.110.0120.00620.94
8.3.100.0040.00416.56
8.3.90.0060.00318.59
8.3.80.0060.00318.68
8.3.70.0120.00318.80
8.3.60.0150.00018.80
8.3.50.0130.00922.12
8.3.40.0140.00319.09
8.3.30.0120.00319.02
8.3.20.0000.00821.39
8.3.10.0000.00822.24
8.3.00.0070.00419.20
8.2.270.0100.01017.55
8.2.260.0170.00319.39
8.2.250.0040.00418.79
8.2.240.0050.00317.32
8.2.230.0040.00422.58
8.2.220.0050.00524.06
8.2.210.0110.00726.77
8.2.200.0030.00618.66
8.2.190.0150.00316.75
8.2.180.0040.01218.66
8.2.170.0090.00622.96
8.2.160.0140.00320.72
8.2.150.0060.00924.18
8.2.140.0050.00324.66
8.2.130.0030.00620.20
8.2.120.0080.00026.35
8.2.110.0050.00520.77
8.2.100.0040.00818.28
8.2.90.0080.00019.61
8.2.80.0030.00617.97
8.2.70.0050.00317.88
8.2.60.0090.00018.17
8.2.50.0000.00918.10
8.2.40.0050.00322.57
8.2.30.0000.00720.64
8.2.20.0030.00617.98
8.2.10.0000.00718.37
8.2.00.0070.00018.39
8.1.310.0080.00018.86
8.1.300.0060.01020.46
8.1.290.0060.00318.88
8.1.280.0110.01125.92
8.1.270.0030.00624.09
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0070.00424.28
8.1.230.0130.00024.10
8.1.220.0040.00417.91
8.1.210.0030.00618.77
8.1.200.0030.00717.60
8.1.190.0060.00317.48
8.1.180.0040.00418.10
8.1.170.0080.00019.16
8.1.160.0000.00719.20
8.1.150.0020.00519.07
8.1.140.0000.00819.80
8.1.130.0000.00717.95
8.1.120.0000.00717.58
8.1.110.0000.00817.80
8.1.100.0040.00417.70
8.1.90.0050.00317.56
8.1.80.0030.00517.53
8.1.70.0030.00317.72
8.1.60.0040.00417.93
8.1.50.0040.00417.71
8.1.40.0060.00317.66
8.1.30.0040.00417.94
8.1.20.0000.00817.97
8.1.10.0040.00417.86
8.1.00.0040.00417.89
8.0.300.0040.00418.77
8.0.290.0040.00417.13
8.0.280.0070.00018.72
8.0.270.0000.00717.50
8.0.260.0000.00617.49
8.0.250.0070.00017.25
8.0.240.0000.00717.38
8.0.230.0000.01017.16
8.0.220.0030.00517.09
8.0.210.0000.00717.21
8.0.200.0000.00717.27
8.0.190.0000.00917.31
8.0.180.0040.00817.36
8.0.170.0000.00817.26
8.0.160.0040.00417.13
8.0.150.0000.00717.23
8.0.140.0040.00417.21
8.0.130.0000.00613.61
8.0.120.0040.00417.22
8.0.110.0030.00617.11
8.0.100.0000.00717.23
8.0.90.0000.00817.26
8.0.80.0000.01617.12
8.0.70.0030.00517.05
8.0.60.0000.00717.23
8.0.50.0050.00317.08
8.0.30.0080.00817.39
8.0.20.0150.00617.41
8.0.10.0050.00317.22
8.0.00.0100.00716.98
7.4.330.0030.00317.06
7.4.320.0030.00316.70
7.4.300.0030.00316.72
7.4.290.0080.00416.72
7.4.280.0030.00616.73
7.4.270.0080.00016.81
7.4.260.0040.00416.76
7.4.250.0030.00616.60
7.4.240.0040.00316.76
7.4.230.0030.00316.82
7.4.220.0070.01316.84
7.4.210.0080.01016.82
7.4.200.0040.00416.86
7.4.160.0030.01816.84
7.4.150.0130.01317.40
7.4.140.0090.00917.86
7.4.130.0090.01116.84
7.4.120.0130.00516.87
7.4.110.0110.00716.76
7.4.100.0070.01116.86
7.4.90.0130.00316.86
7.4.80.0090.01419.39
7.4.70.0100.00616.81
7.4.60.0070.01016.94
7.4.50.0030.01016.58
7.4.40.0080.01316.79
7.4.30.0070.01016.67
7.4.00.0100.00715.11
7.3.330.0030.00313.45
7.3.320.0000.00513.40
7.3.310.0070.00016.36
7.3.300.0040.00416.55
7.3.290.0040.00416.48
7.3.280.0100.00916.51
7.3.270.0070.01817.40
7.3.260.0100.00916.51
7.3.250.0100.01116.61
7.3.240.0120.00816.53
7.3.230.0150.00316.73
7.3.210.0120.00616.63
7.3.200.0090.00916.59
7.3.190.0100.00616.74
7.3.180.0110.00616.60
7.3.170.0070.01316.69
7.3.160.0120.00416.71
7.2.330.0140.00516.99
7.2.320.0030.01816.91
7.2.310.0150.01016.89
7.2.300.0090.00916.91
7.2.290.0100.01316.67
7.2.60.0200.01017.01
7.1.200.0030.00515.96
7.1.100.0070.01018.45
7.1.70.0040.00417.39
7.1.60.0000.01517.41
7.1.50.0040.01417.14
7.1.40.0070.00717.14
7.1.30.0070.01117.14
7.1.20.0000.01617.14
7.1.10.0060.00317.14
7.1.00.0000.00817.14
7.0.200.0000.00917.14
7.0.190.0030.00617.14
7.0.180.0030.00917.14
7.0.170.0040.00717.14
7.0.160.0080.00017.14
7.0.150.0000.00817.14
7.0.140.0030.00617.14
7.0.130.0000.00817.14
7.0.120.0090.00317.14
7.0.110.0000.01717.14
7.0.100.0030.01317.14
7.0.90.0040.00717.14
7.0.80.0070.01017.14
7.0.70.0090.00617.14
7.0.60.0000.01617.14
7.0.50.0050.00517.14
7.0.40.0110.00817.14
7.0.30.0000.00917.14
7.0.20.0060.00817.14
7.0.10.0040.01417.14
7.0.00.0100.00017.14
5.6.300.0070.04220.82
5.6.290.0030.04520.67
5.6.280.0060.03821.09
5.6.270.0070.07721.27
5.6.260.0030.07521.05
5.6.250.0070.06421.17
5.6.240.0070.05721.10
5.6.230.0070.07721.28
5.6.220.0030.09521.04
5.6.210.0070.04321.14
5.6.200.0030.04321.10
5.6.190.0000.04721.00
5.6.180.0030.07121.10
5.6.170.0070.07220.96
5.6.160.0030.04421.07
5.6.150.0030.04621.13
5.6.140.0030.04620.96
5.6.130.0030.08721.12
5.6.120.0100.07020.99
5.6.110.0030.04321.14
5.6.100.0000.05020.82
5.6.90.0100.08020.98
5.6.80.0190.04520.47
5.6.70.0000.04720.41
5.6.60.0060.03920.34
5.6.50.0030.04020.44
5.6.40.0000.04120.36
5.6.30.0030.06520.46
5.6.20.0030.04720.41
5.6.10.0290.02920.44
5.6.00.0160.03920.37
5.5.380.0000.07417.70
5.5.370.0000.07617.59
5.5.360.0100.08417.86
5.5.350.0060.03817.71
5.5.340.0000.04418.23
5.5.330.0030.04817.98
5.5.320.0070.05217.95
5.5.310.0100.07717.94
5.5.300.0030.07517.91
5.5.290.0070.07718.18
5.5.280.0100.04518.17
5.5.270.0060.03917.99
5.5.260.0000.05718.18
5.5.250.0030.08217.95
5.5.240.0030.04217.65
5.5.230.0030.04817.54
5.5.220.0100.03517.59
5.5.210.0030.04117.48
5.5.200.0000.05017.61
5.5.190.0030.07917.61
5.5.180.0030.04317.61
5.5.160.0030.04517.25
5.5.150.0030.06717.35
5.5.140.0000.04017.51
5.5.130.0060.03817.61
5.5.120.0070.06517.29
5.5.110.0030.06817.52
5.5.100.0030.06017.33
5.5.90.0000.04917.42
5.5.80.0140.03417.46
5.5.70.0130.03717.47
5.5.60.0130.04817.41
5.5.50.0030.07517.41
5.5.40.0000.05717.50
5.5.30.0060.04117.14
5.5.20.0100.03317.49
5.5.10.0090.03117.31
5.5.00.0030.07517.40
5.4.450.0030.07519.50
5.4.440.0000.06119.50
5.4.430.0070.03619.47
5.4.420.0030.06919.52
5.4.410.0030.08119.36
5.4.400.0070.04019.06
5.4.390.0060.04919.16
5.4.380.0000.04119.11
5.4.370.0030.04119.03
5.4.360.0030.07919.32
5.4.350.0000.06119.28
5.4.340.0030.04019.01
5.4.320.0030.04419.03
5.4.310.0000.04619.31
5.4.300.0030.05119.20
5.4.290.0030.03719.31
5.4.280.0070.06919.18
5.4.270.0070.06819.27
5.4.260.0000.05019.30
5.4.250.0070.03319.07
5.4.240.0030.03919.27
5.4.230.0030.03719.14
5.4.220.0030.04119.28
5.4.210.0100.07519.17
5.4.200.0030.04419.19
5.4.190.0040.03919.09
5.4.180.0030.03819.02
5.4.170.0070.03319.29
5.4.160.0070.06919.03
5.4.150.0070.03419.27
5.4.140.0000.04017.14
5.4.130.0000.05917.14
5.4.120.0040.03617.14
5.4.110.0030.03817.14
5.4.100.0070.03317.14
5.4.90.0030.03817.14
5.4.80.0030.03317.14
5.4.70.0000.03717.14
5.4.60.0000.03617.14
5.4.50.0040.03517.14
5.4.40.0060.03117.14
5.4.30.0060.03217.14
5.4.20.0070.03017.14
5.4.10.0030.07017.14
5.4.00.0000.06317.14
5.3.290.0070.03917.14
5.3.280.0060.03517.14
5.3.270.0030.03717.14
5.3.260.0100.03717.14
5.3.250.0060.03517.14
5.3.240.0100.02917.14
5.3.230.0000.04617.14
5.3.220.0160.03917.14
5.3.210.0100.03717.14
5.3.200.0000.04117.14
5.3.190.0000.04017.14
5.3.180.0030.03517.14
5.3.170.0070.03317.14
5.3.160.0030.04017.14
5.3.150.0030.03717.14
5.3.140.0030.03717.14
5.3.130.0000.05817.14
5.3.120.0030.06417.14
5.3.110.0030.07717.14
5.3.100.0030.07617.14
5.3.90.0030.03917.14
5.3.80.0000.04017.14
5.3.70.0000.03817.14
5.3.60.0090.03217.14
5.3.50.0070.03017.14
5.3.40.0000.03917.14
5.3.30.0060.03117.14
5.3.20.0070.03017.14
5.3.10.0070.04917.14
5.3.00.0000.04917.14
5.2.170.0030.02817.14
5.2.160.0040.02817.14
5.2.150.0040.02817.14
5.2.140.0000.03117.14
5.2.130.0000.03017.14
5.2.120.0000.03817.14
5.2.110.0000.03317.14
5.2.100.0030.05117.14
5.2.90.0000.05717.14
5.2.80.0000.03217.14
5.2.70.0030.04217.14
5.2.60.0100.05917.14
5.2.50.0000.05017.14
5.2.40.0030.03817.14
5.2.30.0000.06617.14
5.2.20.0000.04817.14
5.2.10.0030.06317.14
5.2.00.0070.04017.14
5.1.60.0030.03817.14
5.1.50.0000.02817.14
5.1.40.0030.02417.14
5.1.30.0000.02817.14
5.1.20.0030.05017.14
5.1.10.0040.02517.14
5.1.00.0070.04017.14
5.0.50.0000.02817.14
5.0.40.0000.02217.14
5.0.30.0030.03017.14
5.0.20.0030.01917.14
5.0.10.0000.02117.14
5.0.00.0000.03517.14
4.4.90.0000.01717.14
4.4.80.0000.02417.14
4.4.70.0060.02517.14
4.4.60.0060.01817.14
4.4.50.0030.01317.14
4.4.40.0030.02317.14
4.4.30.0000.01617.14
4.4.20.0000.01817.14
4.4.10.0000.01717.14
4.4.00.0000.05017.14
4.3.110.0000.02717.14
4.3.100.0000.01617.14
4.3.90.0000.02917.14
4.3.80.0030.04417.14
4.3.70.0030.02017.14
4.3.60.0030.02617.14
4.3.50.0070.02617.14
4.3.40.0030.04617.14
4.3.30.0000.02717.14
4.3.20.0000.02317.14
4.3.10.0040.01417.14
4.3.00.0030.01717.14

preferences:
61.39 ms | 403 KiB | 5 Q