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); 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.40.0140.00018.96
8.3.30.0090.00620.31
8.3.20.0040.00420.34
8.3.10.0080.00022.29
8.3.00.0040.00422.46
8.2.170.0160.00622.96
8.2.160.0070.00722.37
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0110.00426.16
8.2.120.0060.00320.07
8.2.110.0090.00022.52
8.2.100.0040.00817.78
8.2.90.0000.00819.09
8.2.80.0040.00419.46
8.2.70.0040.00417.75
8.2.60.0060.00318.18
8.2.50.0000.00918.07
8.2.40.0000.00718.34
8.2.30.0030.00718.16
8.2.20.0040.00417.68
8.2.10.0030.00617.78
8.2.00.0070.00317.79
8.1.270.0040.00424.66
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0130.00323.95
8.1.230.0070.00719.30
8.1.220.0030.00617.75
8.1.210.0080.00018.77
8.1.200.0090.00017.36
8.1.190.0030.00617.53
8.1.180.0040.00419.13
8.1.170.0080.00018.76
8.1.160.0000.00721.02
8.1.150.0000.00718.74
8.1.140.0030.00517.59
8.1.130.0030.00317.99
8.1.120.0040.00417.66
8.1.110.0080.00017.66
8.1.100.0040.00417.60
8.1.90.0000.00817.64
8.1.80.0030.00717.66
8.1.70.0000.00717.65
8.1.60.0090.00017.68
8.1.50.0000.00717.76
8.1.40.0030.00517.66
8.1.30.0060.00317.72
8.1.20.0000.00817.93
8.1.10.0000.00717.74
8.1.00.0030.00717.45
8.0.300.0000.00718.77
8.0.290.0080.00017.30
8.0.280.0070.00018.57
8.0.270.0070.00017.38
8.0.260.0000.00717.05
8.0.250.0000.00717.04
8.0.240.0000.00717.19
8.0.230.0000.00717.22
8.0.220.0000.00617.09
8.0.210.0000.00717.18
8.0.200.0060.00017.15
8.0.190.0050.00517.04
8.0.180.0050.00217.05
8.0.170.0040.00417.01
8.0.160.0040.00417.18
8.0.150.0000.00716.94
8.0.140.0000.00717.12
8.0.130.0030.00313.45
8.0.120.0050.00317.03
8.0.110.0000.00717.08
8.0.100.0030.00616.98
8.0.90.0050.00316.93
8.0.80.0140.00717.07
8.0.70.0040.00417.13
8.0.60.0000.00717.09
8.0.50.0040.00417.13
8.0.30.0150.00517.13
8.0.20.0120.00617.40
8.0.10.0000.00717.23
8.0.00.0050.01417.07
7.4.330.0000.00515.37
7.4.320.0000.00716.64
7.4.300.0000.00716.73
7.4.290.0050.00316.85
7.4.280.0030.00316.77
7.4.270.0050.00216.64
7.4.260.0050.00013.48
7.4.250.0040.00416.70
7.4.240.0010.00716.79
7.4.230.0070.00016.91
7.4.220.0080.01216.61
7.4.210.0070.00916.75
7.4.200.0040.00416.79
7.4.190.0000.00916.71
7.4.160.0060.01016.51
7.4.150.0150.00317.40
7.4.140.0140.00317.86
7.4.130.0170.00316.69
7.4.120.0080.00916.75
7.4.110.0120.00616.67
7.4.100.0060.01016.71
7.4.90.0120.00616.64
7.4.80.0170.00319.39
7.4.70.0060.01016.69
7.4.60.0140.00716.63
7.4.50.0030.00616.52
7.4.40.0080.00522.77
7.4.30.0120.00616.77
7.4.00.0000.01615.22
7.3.330.0000.00513.12
7.3.320.0020.00213.12
7.3.310.0050.00216.50
7.3.300.0070.00016.48
7.3.290.0100.01016.52
7.3.280.0060.01316.49
7.3.270.0140.00517.40
7.3.260.0040.01216.74
7.3.250.0110.00616.46
7.3.240.0140.00716.69
7.3.230.0060.01216.52
7.3.210.0050.01116.45
7.3.200.0030.01719.39
7.3.190.0170.00616.46
7.3.180.0070.01016.40
7.3.170.0150.00016.77
7.3.160.0060.00916.38
7.3.120.0030.01415.12
7.2.330.0130.00316.84
7.2.320.0130.00316.75
7.2.310.0120.00916.73
7.2.300.0060.01216.59
7.2.290.0120.00316.85
7.2.00.0080.00419.55
7.1.100.0100.00318.10
7.1.70.0000.00817.42
7.1.60.0070.01419.43
7.1.50.0070.01416.82
7.1.00.0000.04722.57
7.0.200.0000.00816.58
7.0.140.0030.07322.19
7.0.100.0300.05720.07
7.0.90.0430.07720.00
7.0.80.0400.08020.04
7.0.70.0430.08020.00
7.0.60.0200.07020.01
7.0.50.0000.07720.36
7.0.40.0100.08020.18
7.0.30.0100.08320.13
7.0.20.0200.04020.20
7.0.10.0070.07020.24
7.0.00.0000.08320.15
5.6.280.0070.07021.14
5.6.250.0130.07720.74
5.6.240.0100.08020.93
5.6.230.0170.06020.88
5.6.220.0070.07720.66
5.6.210.0130.06020.66
5.6.200.0100.07721.10
5.6.190.0070.08321.26
5.6.180.0030.05021.18
5.6.170.0130.04321.07
5.6.160.0170.07021.29
5.6.150.0100.07321.05
5.6.140.0070.05721.10
5.6.130.0030.07021.05
5.6.120.0100.03721.13
5.6.110.0100.03721.12
5.6.100.0100.04021.07
5.6.90.0000.05320.96
5.6.80.0070.03720.45
5.6.70.0030.04320.66
5.6.60.0130.02720.48
5.6.50.0030.04020.66
5.6.40.0070.04020.59
5.6.30.0130.03020.50
5.6.20.0100.03320.61
5.6.10.0130.04020.42
5.6.00.0030.04020.49
5.5.380.0100.05320.46
5.5.370.0070.08320.62
5.5.360.0030.05020.46
5.5.350.0100.07320.53
5.5.340.0170.06020.76
5.5.330.0130.07720.89
5.5.320.0030.08020.95
5.5.310.0170.05721.00
5.5.300.0130.07721.00
5.5.290.0100.09320.91
5.5.280.0070.06320.97
5.5.270.0070.06720.92
5.5.260.0130.04020.80
5.5.250.0030.04320.66
5.5.240.0070.03720.16
5.5.230.0100.03320.18
5.5.220.0000.05020.31
5.5.210.0070.03320.22
5.5.200.0030.04020.24
5.5.190.0000.06320.36
5.5.180.0130.05720.19
5.5.160.0070.03720.36
5.5.150.0030.04020.10
5.5.140.0030.07320.38
5.5.130.0030.04720.38
5.5.120.0030.08320.32
5.5.110.0070.05320.13
5.5.100.0100.04720.13
5.5.90.0030.04720.25
5.5.80.0130.03320.20
5.5.70.0100.04020.17
5.5.60.0030.03720.10
5.5.50.0030.03720.19
5.5.40.0030.04020.00
5.5.30.0070.04320.20
5.5.20.0100.03320.12
5.5.10.0030.04020.02
5.5.00.0000.04320.16
5.4.450.0000.05319.50
5.4.440.0030.05319.19
5.4.430.0170.02719.55
5.4.420.0030.04019.52
5.4.410.0070.03319.09
5.4.400.0070.03718.87
5.4.390.0030.04319.06
5.4.380.0070.03319.20
5.4.370.0100.02719.21
5.4.360.0000.05019.20
5.4.350.0100.03319.21
5.4.340.0000.04019.12
5.4.320.0070.03319.20
5.4.310.0030.03318.89
5.4.300.0070.04019.17
5.4.290.0070.06719.37
5.4.280.0100.03019.20
5.4.270.0000.04719.20
5.4.260.0030.04718.86
5.4.250.0000.03719.17
5.4.240.0030.03319.11
5.4.230.0070.03318.89
5.4.220.0000.03719.21
5.4.210.0030.04019.19
5.4.200.0070.03318.85
5.4.190.0070.03719.12
5.4.180.0070.03319.01
5.4.170.0030.04018.88
5.4.160.0130.03019.14
5.4.150.0000.04019.00
5.4.140.0030.03716.54
5.4.130.0030.03316.42
5.4.120.0070.03016.53
5.4.110.0070.07316.57
5.4.100.0030.05316.47
5.4.90.0100.06716.54
5.4.80.0100.07316.45
5.4.70.0030.07016.35
5.4.60.0170.05316.32
5.4.50.0100.04016.55
5.4.40.0030.04316.51
5.4.30.0130.07016.54
5.4.20.0100.06716.52
5.4.10.0070.06716.34
5.4.00.0070.07015.97
5.3.290.0070.03314.56
5.3.280.0000.04014.64
5.3.270.0000.03714.74
5.3.260.0030.03314.61
5.3.250.0070.03014.64
5.3.240.0030.04314.72
5.3.230.0030.03314.70
5.3.220.0000.04014.70
5.3.210.0070.04014.62
5.3.200.0030.07714.63
5.3.190.0070.07014.61
5.3.180.0030.06014.70
5.3.170.0000.08314.46
5.3.160.0070.08014.50
5.3.150.0100.06714.70
5.3.140.0030.04014.64
5.3.130.0170.07014.61
5.3.120.0170.06314.44
5.3.110.0100.07314.62
5.3.100.0070.07314.05
5.3.90.0130.04014.05
5.3.80.0030.07314.09
5.3.70.0070.07014.09
5.3.60.0070.07014.12
5.3.50.0030.07314.01
5.3.40.0070.06013.99
5.3.30.0070.05314.06
5.3.20.0100.07013.86
5.3.10.0100.06713.77
5.3.00.0000.04013.48
5.2.170.0070.03712.30
5.2.160.0070.06312.30
5.2.150.0030.03012.30
5.2.140.0100.06012.30
5.2.130.0070.03712.30
5.2.120.0070.05712.30
5.2.110.0100.03312.30
5.2.100.0070.06312.30
5.2.90.0100.06012.30
5.2.80.0070.05312.30
5.2.70.0000.06012.30
5.2.60.0030.04312.30
5.2.50.0100.06012.30
5.2.40.0100.03712.30
5.2.30.0100.05312.30
5.2.20.0070.05712.30
5.2.10.0070.06012.30
5.2.00.0070.05012.30
5.1.60.0030.05312.30
5.1.50.0070.03712.30
5.1.40.0000.02712.30
5.1.30.0070.04712.30
5.1.20.0000.05312.30
5.1.10.0100.04312.30
5.1.00.0070.05012.30
5.0.50.0030.04312.30
5.0.40.0070.02312.30
5.0.30.0070.03712.30
5.0.20.0070.03012.30
5.0.10.0030.04012.30
5.0.00.0030.06312.30
4.4.90.0030.03012.30
4.4.80.0070.03312.30
4.4.70.0000.03712.30
4.4.60.0030.03312.30
4.4.50.0070.03312.30
4.4.40.0030.04312.30
4.4.30.0000.02712.30
4.4.20.0030.01712.30
4.4.10.0000.04012.30
4.4.00.0000.05712.30
4.3.110.0000.03012.30
4.3.100.0000.03712.30
4.3.90.0000.03712.30
4.3.80.0030.05312.30
4.3.70.0030.03312.30
4.3.60.0000.03712.30
4.3.50.0070.03012.30
4.3.40.0000.04712.30
4.3.30.0000.02012.30
4.3.20.0000.02312.30
4.3.10.0030.03012.30
4.3.00.0100.02712.30

preferences:
40.38 ms | 400 KiB | 5 Q