3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<EOT <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE test [<!ENTITY xxe SYSTEM "http://exploited.cz/robots.txt">]> <foo>&xxe;</foo> EOT; $x = simplexml_load_string($xml); // $x = simplexml_load_string($xml, null, LIBXML_NOENT); var_dump((string)$x);

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.01418.55
8.3.50.0110.00822.24
8.3.40.0110.00418.70
8.3.30.0030.01020.51
8.3.20.0000.00720.59
8.3.10.0110.00322.29
8.3.00.0060.00322.69
8.2.180.0120.00316.38
8.2.170.0110.00322.96
8.2.160.0070.00722.38
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0090.00626.16
8.2.120.0040.00419.95
8.2.110.0030.00622.52
8.2.100.0050.00517.97
8.2.90.0070.00019.40
8.2.80.0070.00019.46
8.2.70.0000.00917.63
8.2.60.0080.00018.05
8.2.50.0030.00918.07
8.2.40.0050.00318.34
8.2.30.0070.00318.16
8.2.20.0000.00717.76
8.2.10.0050.00217.80
8.2.00.0100.00017.77
8.1.280.0070.01025.92
8.1.270.0070.00024.66
8.1.260.0090.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00324.00
8.1.230.0100.00019.34
8.1.220.0030.00517.91
8.1.210.0030.00618.77
8.1.200.0070.00317.48
8.1.190.0040.00417.65
8.1.180.0080.00019.13
8.1.170.0040.00418.71
8.1.160.0000.00721.16
8.1.150.0040.00418.78
8.1.140.0000.00717.51
8.1.130.0000.00718.05
8.1.120.0000.00717.50
8.1.110.0050.00317.67
8.1.100.0040.00517.53
8.1.90.0040.00417.62
8.1.80.0040.00417.50
8.1.70.0000.00717.60
8.1.60.0060.00317.75
8.1.50.0050.00317.77
8.1.40.0060.00317.76
8.1.30.0040.00417.91
8.1.20.0040.00417.74
8.1.10.0040.00417.75
8.1.00.0040.00817.58
8.0.300.0040.00418.77
8.0.290.0040.00417.16
8.0.280.0070.00018.50
8.0.270.0030.00317.36
8.0.260.0030.00316.93
8.0.250.0030.00317.05
8.0.240.0050.00317.21
8.0.230.0000.00717.06
8.0.220.0000.00717.16
8.0.210.0070.00017.13
8.0.200.0040.00417.19
8.0.190.0080.00317.09
8.0.180.0060.00317.22
8.0.170.0000.00717.01
8.0.160.0040.00417.10
8.0.150.0050.00217.05
8.0.140.0040.00417.13
8.0.130.0000.00613.47
8.0.120.0050.00317.08
8.0.110.0000.00716.93
8.0.100.0040.00417.14
8.0.90.0040.00417.04
8.0.80.0100.01017.03
8.0.70.0050.00317.15
8.0.60.0040.00417.04
8.0.50.0050.00317.16
8.0.30.0080.01117.16
8.0.20.0100.00817.40
8.0.10.0040.00417.05
8.0.00.0080.01216.97
7.4.330.0030.00315.18
7.4.320.0000.00616.63
7.4.300.0000.00716.74
7.4.290.0040.00416.78
7.4.280.0070.00016.80
7.4.270.0000.00716.73
7.4.260.0030.00313.48
7.4.250.0040.00416.70
7.4.240.0040.00316.82
7.4.230.0000.00716.58
7.4.220.0110.00716.61
7.4.210.0030.01116.79
7.4.200.0040.00416.92
7.4.190.0040.00416.68
7.4.160.0130.00416.71
7.4.150.0040.01317.40
7.4.140.0080.01117.86
7.4.130.0090.01316.70
7.4.120.0160.00616.64
7.4.110.0040.01316.76
7.4.100.0100.00716.84
7.4.90.0100.00616.87
7.4.80.0130.00719.39
7.4.70.0090.01216.56
7.4.60.0070.01016.69
7.4.50.0000.00816.73
7.4.40.0090.00322.77
7.4.30.0060.00916.67
7.4.00.0050.01115.04
7.3.330.0030.00313.38
7.3.320.0030.00313.39
7.3.310.0020.00516.41
7.3.300.0030.00316.41
7.3.290.0090.01016.60
7.3.280.0080.00916.50
7.3.270.0150.00717.40
7.3.260.0110.00616.36
7.3.250.0100.00816.63
7.3.240.0030.01316.68
7.3.230.0100.01316.47
7.3.210.0090.00916.72
7.3.200.0170.00619.39
7.3.190.0100.01316.42
7.3.180.0090.00616.71
7.3.170.0000.01616.42
7.3.160.0120.00916.36
7.3.120.0080.00815.01
7.3.110.0110.00715.07
7.3.100.0000.01414.61
7.3.90.0090.00314.93
7.3.80.0060.00914.95
7.3.70.0030.01114.89
7.3.60.0030.01014.72
7.3.50.0070.01014.99
7.3.40.0040.01114.83
7.3.30.0030.01014.72
7.3.20.0090.00016.76
7.3.10.0070.00716.33
7.3.00.0100.00316.61
7.2.330.0100.01016.77
7.2.320.0090.00916.57
7.2.310.0110.01116.88
7.2.300.0070.01016.60
7.2.290.0130.00316.62
7.2.250.0120.00615.16
7.2.240.0080.01215.29
7.2.230.0090.00614.63
7.2.220.0120.00315.28
7.2.210.0030.00615.23
7.2.200.0110.00014.98
7.2.190.0060.00615.05
7.2.180.0000.01814.89
7.2.170.0060.01214.80
7.1.330.0100.00715.98
7.1.320.0040.01415.60
7.1.310.0060.00915.77
7.1.300.0150.00015.78
7.1.290.0030.00915.69
7.1.280.0100.00315.79
7.1.270.0000.01215.73
7.1.260.0040.01115.56
7.1.100.0090.00618.00
7.1.70.0000.01016.95
7.1.60.0040.00717.18
7.1.50.0060.01517.02
7.1.00.0000.06022.43
7.0.200.0080.00816.60
7.0.140.0030.07022.23
7.0.70.4170.04019.98
7.0.60.0100.07719.97
7.0.50.0100.05717.96
7.0.40.0130.05020.12
7.0.30.0300.04320.25
7.0.20.0670.04720.12
7.0.10.0400.06320.25
7.0.00.0330.04720.29
5.6.280.0000.07721.14
5.6.210.0070.06320.74
5.6.200.0100.07018.27
5.6.190.0070.08320.56
5.6.180.0070.04720.46
5.6.170.0430.07720.57
5.6.160.0070.05720.50
5.6.150.0000.04718.25
5.6.140.0270.06018.22
5.6.130.0100.08318.35
5.6.120.0030.05321.18
5.6.110.0170.07321.02
5.6.100.0000.08721.16
5.6.90.0100.07321.17
5.6.80.0030.04020.52
5.6.70.0070.08020.39
5.5.350.0000.04020.38
5.5.340.0000.04018.07
5.5.330.0100.04320.14
5.5.320.0000.05320.56
5.5.310.0300.07320.29
5.5.300.0000.04718.04
5.5.290.0030.07017.99
5.5.280.0170.06020.95
5.5.270.0100.07720.85
5.5.260.0100.07321.03
5.5.250.0100.08320.73
5.5.240.0030.05020.41
5.4.450.0370.06319.36
5.4.440.0230.07319.33
5.4.430.0200.06019.57
5.4.420.0330.06719.60
5.4.410.0270.06019.38
5.4.400.0270.07319.29
5.4.390.0400.05719.00
5.4.380.0330.06019.31
5.4.370.0200.08018.96
5.4.360.0300.06719.07
5.4.350.0270.04719.08
5.4.340.0300.06319.18
5.4.320.0400.03718.96
5.4.310.0270.07319.32
5.4.300.0270.07319.30
5.4.290.0200.07319.17
5.4.280.0270.07719.23
5.4.270.0200.07319.01
5.4.260.0230.06019.21
5.4.250.0230.07319.32
5.4.240.0330.06018.99
5.4.230.0170.08019.21
5.4.220.0230.06719.29
5.4.210.0230.04019.00
5.4.200.0170.06319.01
5.4.190.0300.06319.29
5.4.180.0200.07319.32
5.4.170.0230.06719.15
5.4.160.0300.04019.17
5.4.150.0370.06318.98
5.4.140.0230.05316.32
5.4.130.0170.07716.58
5.4.120.0270.06016.46
5.4.110.0200.03716.55
5.4.100.0230.03316.42
5.4.90.0070.04016.42
5.4.80.0170.03016.54
5.4.70.0130.03716.57
5.4.60.0130.03716.56
5.4.50.0200.03016.50
5.4.40.0130.03716.41
5.4.30.0200.04016.58
5.4.20.0300.04016.63
5.4.10.0200.03716.42
5.4.00.0130.03715.77
5.3.290.0230.04714.84
5.3.280.0230.06714.61
5.3.270.0170.05714.59
5.3.260.0200.05014.52
5.3.250.0130.05714.79
5.3.240.0230.04314.79
5.3.230.0270.05314.63
5.3.220.0170.04714.56
5.3.210.0200.03714.55
5.3.200.0230.03714.55
5.3.190.0170.03714.75
5.3.180.0200.07314.48
5.3.170.0130.04314.74
5.3.160.0200.03314.67
5.3.150.0130.04014.67
5.3.140.0170.03314.55
5.3.130.0070.04314.53
5.3.120.0030.04714.52
5.3.110.0200.03314.57
5.3.100.0170.03314.07
5.3.90.0200.03013.98
5.3.80.0100.04014.04
5.3.70.0170.03714.04
5.3.60.0130.04013.99
5.3.50.0130.03714.12
5.3.40.0130.04013.80
5.3.30.0230.05014.10
5.3.20.0130.04013.88
5.3.10.0100.03713.65
5.3.00.0170.03013.81
5.2.170.0170.02712.10
5.2.160.0170.02712.10
5.2.150.0070.03312.10
5.2.140.0070.03712.10
5.2.130.0130.03012.10
5.2.120.0100.03012.10
5.2.110.0130.03012.10
5.2.100.0070.03012.10
5.2.90.0100.03012.10
5.2.80.0130.05712.10
5.2.70.0100.03012.10
5.2.60.0070.03312.10
5.2.50.0070.03312.10
5.2.40.0030.03312.10
5.2.30.0070.03312.10
5.2.20.0100.03312.10
5.2.10.0100.03012.10
5.2.00.0170.02012.10
5.1.60.0130.02012.10
5.1.50.0130.05312.10
5.1.40.0200.05012.10
5.1.30.0200.05312.10
5.1.20.0270.04712.10
5.1.10.0270.04712.10
5.1.00.0230.04712.10
5.0.50.0030.05012.10
5.0.40.0070.04312.10
5.0.30.0030.03712.10
5.0.20.0070.03712.10
5.0.10.0100.02712.10
5.0.00.0170.03712.10
4.4.90.0030.01712.10
4.4.80.0070.02012.10
4.4.70.0070.01312.10
4.4.60.0100.01312.10
4.4.50.0070.01312.10
4.4.40.0030.03312.10
4.4.30.0070.03312.10
4.4.20.0030.02312.10
4.4.10.0100.03312.10
4.4.00.0170.04712.10
4.3.110.0100.02312.10
4.3.100.0100.03012.10
4.3.90.0000.02712.10
4.3.80.0100.05012.10
4.3.70.0070.03712.10
4.3.60.0100.03312.10
4.3.50.0100.02312.10
4.3.40.0170.03312.10
4.3.30.0030.02712.10
4.3.20.0030.02712.10
4.3.10.0000.03312.10
4.3.00.0030.03012.10

preferences:
47.51 ms | 401 KiB | 5 Q