3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = <<<XML <?xml version="1.0" encoding="utf-8"?> <posts> <post> <title>Hello World</title> <author>tacticalsk8er</author> <content>Hello world this is my blogging site</content> </post> <post> <title>Hello Again</title> <author>Nick Peterson</author> <content><![CDATA[Hello Again world this is another test for my <b>blogging site</b>]]></content> </post> </posts> XML; $xml = simplexml_load_string($x); echo $xml->posts[1]->title;

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.00718.55
8.3.50.0100.01221.20
8.3.40.0040.01118.96
8.3.30.0070.00720.64
8.3.20.0040.00420.91
8.3.10.0040.00421.29
8.3.00.0080.00023.56
8.2.180.0040.01816.88
8.2.170.0000.01422.96
8.2.160.0100.00720.52
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00419.96
8.2.110.0060.00320.70
8.2.100.0070.00418.03
8.2.90.0000.00719.52
8.2.80.0040.00419.48
8.2.70.0030.00617.75
8.2.60.0000.00818.18
8.2.50.0040.00418.07
8.2.40.0040.00418.59
8.2.30.0000.00719.48
8.2.20.0040.00418.09
8.2.10.0030.00617.84
8.2.00.0000.00717.88
8.1.280.0040.01125.92
8.1.270.0050.00323.99
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0040.00422.63
8.1.230.0070.00421.10
8.1.220.0050.00318.77
8.1.210.0040.00418.97
8.1.200.0030.00617.47
8.1.190.0040.00417.66
8.1.180.0040.00418.10
8.1.170.0030.00518.52
8.1.160.0030.00518.93
8.1.150.0040.00418.76
8.1.140.0070.00017.60
8.1.130.0000.00718.03
8.1.120.0040.00417.54
8.1.110.0070.00017.61
8.1.100.0040.00417.61
8.1.90.0000.00717.45
8.1.80.0040.00417.49
8.1.70.0030.00317.45
8.1.60.0040.00417.68
8.1.50.0070.00017.59
8.1.40.0040.00417.68
8.1.30.0070.00017.66
8.1.20.0000.00817.69
8.1.10.0000.00817.72
8.1.00.0000.00817.62
8.0.300.0040.00420.07
8.0.290.0000.00817.43
8.0.280.0030.00318.70
8.0.270.0050.00317.36
8.0.260.0080.00016.96
8.0.250.0050.00217.22
8.0.240.0030.00617.04
8.0.230.0070.00017.04
8.0.220.0070.00016.95
8.0.210.0030.00616.93
8.0.200.0030.00317.00
8.0.190.0030.00317.12
8.0.180.0040.00417.00
8.0.170.0050.00216.96
8.0.160.0040.00417.00
8.0.150.0050.00216.93
8.0.140.0070.00317.02
8.0.130.0000.00613.47
8.0.120.0030.00517.00
8.0.110.0030.00617.01
8.0.100.0070.00017.15
8.0.90.0000.00717.21
8.0.80.0040.01117.05
8.0.70.0000.00716.91
8.0.60.0000.00817.09
8.0.50.0000.00717.06
8.0.30.0090.01117.49
8.0.20.0100.01117.46
8.0.10.0000.00717.05
8.0.00.0080.01216.78
7.4.330.0000.00616.84
7.4.320.0000.00716.60
7.4.300.0030.00316.75
7.4.290.0030.00316.71
7.4.280.0040.00416.73
7.4.270.0030.00316.84
7.4.260.0040.00313.39
7.4.250.0080.00016.72
7.4.240.0070.00016.84
7.4.230.0000.00716.59
7.4.220.0100.01616.77
7.4.210.0070.00816.82
7.4.200.0000.00716.79
7.4.190.0080.00016.65
7.4.160.0130.01016.57
7.4.150.0000.01717.40
7.4.140.0170.01617.86
7.4.130.0080.01216.77
7.4.120.0090.00716.74
7.4.110.0100.01316.68
7.4.100.0090.00916.69
7.4.90.0170.00016.75
7.4.80.0150.00919.39
7.4.70.0080.01216.73
7.4.60.0100.01016.79
7.4.50.0000.00816.50
7.4.40.0140.00422.77
7.4.30.0080.00916.64
7.4.00.0070.01115.35
7.3.330.0050.00013.30
7.3.320.0000.00613.25
7.3.310.0000.00716.28
7.3.300.0030.00316.43
7.3.290.0030.01016.44
7.3.280.0050.01116.46
7.3.270.0130.01017.40
7.3.260.0090.00918.24
7.3.250.0070.01016.63
7.3.240.0090.00816.81
7.3.230.0080.00816.47
7.3.210.0120.01216.60
7.3.200.0110.01119.39
7.3.190.0140.00716.71
7.3.180.0140.00716.66
7.3.170.0120.00316.64
7.3.160.0130.00316.46
7.3.120.0030.01015.06
7.2.330.0060.01616.96
7.2.320.0090.00916.81
7.2.310.0170.00716.79
7.2.300.0120.00616.54
7.2.290.0090.00616.57
7.2.60.0060.00616.95
7.2.00.0150.00019.23
7.1.200.0080.00015.86
7.1.100.0080.00418.36
7.1.70.0050.00317.11
7.1.60.0190.00319.17
7.1.50.0110.01516.86
7.1.00.0070.05022.51
7.0.200.0000.00816.71
7.0.140.0000.07722.20
7.0.100.0030.07719.93
7.0.90.0200.09019.90
7.0.80.0070.04019.92
7.0.70.0070.07020.14
7.0.60.0170.06719.99
7.0.50.0130.06720.27
7.0.40.0070.08020.19
7.0.30.0000.06020.15
7.0.20.0100.05720.02
7.0.10.0170.03320.06
7.0.00.0030.08320.18
5.6.250.0070.08020.84
5.6.240.0070.06720.77
5.6.230.0200.07320.82
5.6.220.0070.08020.62
5.6.210.0030.06320.65
5.6.200.0100.04021.19
5.6.190.0170.07021.06
5.6.180.0070.06021.29
5.6.170.0100.08721.10
5.6.160.0030.08721.13
5.6.150.0030.09021.12
5.6.140.0100.05721.09
5.6.130.0130.07021.05
5.6.120.0030.08021.12
5.6.110.0130.08021.18
5.6.100.0070.08321.09
5.6.90.0100.05320.98
5.6.80.0030.04320.52
5.6.70.0030.08320.36
5.6.60.0070.07720.61
5.6.50.0100.08320.51
5.6.40.0000.05020.46
5.6.30.0030.07020.48
5.6.20.0070.04020.63
5.6.10.0070.07720.58
5.6.00.0070.03720.46
5.5.380.0030.07720.58
5.5.370.0070.05720.61
5.5.360.0000.04320.40
5.5.350.0070.07020.43
5.5.340.0070.06320.98
5.5.330.0100.05320.96
5.5.320.0130.07020.83
5.5.310.0030.07021.00
5.5.300.0000.08720.88
5.5.290.0070.07320.86
5.5.280.0200.06020.86
5.5.270.0000.06320.75
5.5.260.0070.05720.73
5.5.250.0030.05320.76
5.5.240.0130.04020.27
5.5.230.0100.04020.12
5.5.220.0030.08320.25
5.5.210.0070.07020.28
5.5.200.0100.07020.13
5.5.190.0000.05320.21
5.5.180.0070.06720.15
5.5.160.0100.06320.39
5.5.150.0030.03720.19
5.5.140.0030.06020.34
5.5.130.0030.04320.31
5.5.120.0000.05720.09
5.5.110.0030.04020.18
5.5.100.0000.05320.14
5.5.90.0030.03720.20
5.5.80.0030.04020.10
5.5.70.0030.07720.10
5.5.60.0070.06320.10
5.5.50.0030.06720.21
5.5.40.0030.08020.11
5.5.30.0100.05720.27
5.5.20.0100.07020.08
5.5.10.0100.06320.23
5.5.00.0100.06720.04
5.4.450.0000.08319.21
5.4.440.0130.07019.66
5.4.430.0170.06719.52
5.4.420.0000.04719.69
5.4.410.0030.09719.40
5.4.400.0000.05019.13
5.4.390.0030.07019.20
5.4.380.0130.06719.37
5.4.370.0000.06019.16
5.4.360.0030.06018.86
5.4.350.0030.07018.86
5.4.340.0070.07019.04
5.4.320.0070.05719.18
5.4.310.0000.05019.17
5.4.300.0070.07319.20
5.4.290.0070.03318.88
5.4.280.0030.08018.85
5.4.270.0030.06719.12
5.4.260.0130.07319.21
5.4.250.0000.04019.09
5.4.240.0100.04719.11
5.4.230.0070.03319.36
5.4.220.0000.04719.01
5.4.210.0100.07019.16
5.4.200.0070.03719.17
5.4.190.0000.04319.08
5.4.180.0070.03319.09
5.4.170.0030.07019.10
5.4.160.0030.04718.84
5.4.150.0030.04019.08
5.4.140.0030.03716.53
5.4.130.0130.03316.47
5.4.120.0070.07016.53
5.4.110.0070.05716.57
5.4.100.0070.06016.53
5.4.90.0130.06316.57
5.4.80.0070.07316.35
5.4.70.0000.03716.32
5.4.60.0100.03316.51
5.4.50.0130.06016.33
5.4.40.0000.06716.38
5.4.30.0070.06716.50
5.4.20.0100.06016.36
5.4.10.0000.08016.33
5.4.00.0030.03315.92
5.3.290.0030.04014.70
5.3.280.0030.08014.71
5.3.270.0070.03314.64
5.3.260.0070.04714.61
5.3.250.0070.05014.49
5.3.240.0100.05714.66
5.3.230.0130.03014.64
5.3.220.0000.04314.62
5.3.210.0130.05714.46
5.3.200.0100.05714.71
5.3.190.0070.04314.67
5.3.180.0070.03314.61
5.3.170.0070.07014.63
5.3.160.0070.05714.70
5.3.150.0070.06714.70
5.3.140.0130.04314.48
5.3.130.0070.03314.61
5.3.120.0070.07714.67
5.3.110.0030.05714.44
5.3.100.0130.07313.96
5.3.90.0070.04014.05
5.3.80.0030.03714.01
5.3.70.0170.02314.07
5.3.60.0070.06713.93
5.3.50.0000.04714.10
5.3.40.0070.06714.02
5.3.30.0030.03713.97
5.3.20.0030.05313.62
5.3.10.0070.05013.73
5.3.00.0070.08013.79
5.2.170.0030.06311.20
5.2.160.0000.04711.24
5.2.150.0000.03311.34
5.2.140.0130.04011.32
5.2.130.0100.05711.01
5.2.120.0100.04711.24
5.2.110.0070.02311.17
5.2.100.0030.06311.16
5.2.90.0000.03011.17
5.2.80.0100.05711.16
5.2.70.0030.05711.16
5.2.60.0030.02711.23
5.2.50.0030.05311.08
5.2.40.0000.06710.92
5.2.30.0000.04011.16
5.2.20.0070.05710.91
5.2.10.0030.03311.00
5.2.00.0030.02710.86
5.1.60.0000.03010.15
5.1.50.0100.04310.19
5.1.40.0070.04310.09
5.1.30.0030.03310.34
5.1.20.0000.06010.55
5.1.10.0000.05710.25
5.1.00.0000.03010.30
5.0.50.0030.0208.70
5.0.40.0100.0408.61
5.0.30.0070.0278.39
5.0.20.0000.0208.45
5.0.10.0100.0308.45
5.0.00.0170.0538.28
4.4.90.0030.0337.93
4.4.80.0000.0377.93
4.4.70.0000.0307.93
4.4.60.0070.0237.93
4.4.50.0000.0277.93
4.4.40.0030.0407.93
4.4.30.0000.0177.93
4.4.20.0070.0237.93
4.4.10.0030.0137.93
4.4.00.0000.0437.93
4.3.110.0070.0137.93
4.3.100.0000.0137.93
4.3.90.0030.0207.93
4.3.80.0030.0507.93
4.3.70.0030.0277.93
4.3.60.0000.0237.93
4.3.50.0030.0207.93
4.3.40.0000.0537.93
4.3.30.0000.0407.93
4.3.20.0000.0377.93
4.3.10.0000.0377.93
4.3.00.0000.0237.93

preferences:
47.71 ms | 400 KiB | 5 Q