3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml='<?xml version="1.0" encoding="UTF-8" ?>'; $xml.='<Test> <Item> <Price>0.53</Price> <Text>This is some test text. We need to see how it does.&lt;br&gt; This is a second line of text.</Text> </Item> </Test>'; $result=simplexml_load_string($xml); echo $result->Item->Text;

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.0110.00717.00
8.3.50.0110.01117.62
8.3.40.0090.00618.78
8.3.30.0110.00418.99
8.3.20.0080.00018.90
8.3.10.0040.00420.64
8.3.00.0000.00919.38
8.2.180.0110.00418.18
8.2.170.0090.00622.96
8.2.160.0070.01020.82
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0070.01119.60
8.2.110.0030.00621.15
8.2.100.0040.00818.03
8.2.90.0000.00818.28
8.2.80.0090.00018.28
8.2.70.0000.01019.36
8.2.60.0040.00417.75
8.2.50.0050.00317.75
8.2.40.0030.00617.75
8.2.30.0080.00418.20
8.2.20.0060.00317.93
8.2.10.0050.00317.91
8.2.00.0000.01017.63
8.1.280.0070.00725.92
8.1.270.0060.00324.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.94
8.1.230.0070.00422.75
8.1.220.0040.00417.90
8.1.210.0050.00318.84
8.1.200.0080.00017.48
8.1.190.0080.00017.22
8.1.180.0080.00018.10
8.1.170.0030.00617.62
8.1.160.0050.00218.99
8.1.150.0070.00018.84
8.1.140.0070.00017.50
8.1.130.0030.00317.82
8.1.120.0040.00417.63
8.1.110.0050.00217.52
8.1.100.0000.00717.54
8.1.90.0000.00717.59
8.1.80.0000.00717.57
8.1.70.0000.00717.49
8.1.60.0000.00717.61
8.1.50.0080.00017.63
8.1.40.0040.00417.67
8.1.30.0030.00617.66
8.1.20.0000.00717.79
8.1.10.0040.00417.65
8.1.00.0090.00017.70
8.0.300.0040.00420.21
8.0.290.0070.00017.00
8.0.280.0030.00318.67
8.0.270.0000.00717.48
8.0.260.0080.00016.90
8.0.250.0000.00717.24
8.0.240.0020.00517.07
8.0.230.0040.00417.02
8.0.220.0040.00416.97
8.0.210.0000.00816.99
8.0.200.0000.00917.08
8.0.190.0040.00417.07
8.0.180.0000.00817.04
8.0.170.0080.00017.00
8.0.160.0070.00016.93
8.0.150.0060.00317.00
8.0.140.0030.00516.99
8.0.130.0030.00313.46
8.0.120.0030.00517.02
8.0.110.0040.00416.85
8.0.100.0040.00416.86
8.0.90.0000.00716.97
8.0.80.0080.00817.09
8.0.70.0000.00717.01
8.0.60.0000.00716.80
8.0.50.0040.00417.07
8.0.30.0090.00917.04
8.0.20.0170.00317.15
8.0.10.0000.00717.05
8.0.00.0100.01116.86
7.4.330.0020.00213.30
7.4.320.0030.00316.61
7.4.300.0030.00316.62
7.4.290.0030.00316.82
7.4.280.0040.00416.76
7.4.270.0000.00716.77
7.4.260.0000.00713.38
7.4.250.0060.00316.70
7.4.240.0040.00416.75
7.4.230.0070.00016.74
7.4.220.0120.00816.55
7.4.210.0080.00816.79
7.4.200.0040.00316.89
7.4.190.0030.00316.93
7.4.160.0080.00816.73
7.4.150.0150.00316.65
7.4.140.0110.01016.72
7.4.130.0110.00816.68
7.4.120.0070.01016.72
7.4.110.0120.00616.57
7.4.100.0030.01316.79
7.4.90.0130.00316.60
7.4.80.0090.00919.39
7.4.70.0070.01016.65
7.4.60.0070.01016.50
7.4.50.0040.00416.62
7.4.40.0030.01416.45
7.4.30.0080.00816.55
7.4.00.0070.00715.21
7.3.330.0000.00613.16
7.3.320.0060.00013.03
7.3.310.0060.00016.37
7.3.300.0050.00316.30
7.3.290.0080.00616.31
7.3.280.0090.00616.33
7.3.270.0040.01216.39
7.3.260.0030.02016.45
7.3.250.0100.00716.53
7.3.240.0080.00816.61
7.3.230.0060.01216.32
7.3.210.0030.01416.38
7.3.200.0060.00916.70
7.3.190.0110.00716.49
7.3.180.0060.01016.61
7.3.170.0130.00916.37
7.3.160.0120.00916.39
7.3.120.0090.00614.81
7.2.330.0040.01516.68
7.2.320.0110.00716.58
7.2.310.0120.00616.69
7.2.300.0070.01016.82
7.2.290.0060.00916.94
7.2.00.0000.01319.24
7.1.100.0070.00418.24
7.1.70.0040.00417.30
7.1.60.0090.01219.40
7.1.50.0100.01316.86
7.1.00.0000.05722.50
7.0.200.0070.00016.64
7.0.140.0030.07022.02
7.0.120.0070.05322.07
7.0.60.0100.04020.05
7.0.50.0170.07017.97
7.0.40.0130.04720.41
7.0.30.0230.07720.40
7.0.20.0100.05320.21
7.0.10.0170.04720.17
7.0.00.0170.06720.49
5.6.280.0000.07721.18
5.6.210.0170.07320.91
5.6.200.0170.07018.19
5.6.190.0230.03320.73
5.6.180.0200.03720.42
5.6.170.0130.04320.74
5.6.160.0170.08720.77
5.6.150.0200.08320.47
5.6.140.0230.03720.44
5.6.130.0130.04720.18
5.6.120.0200.03720.18
5.6.110.0200.03720.27
5.6.100.0170.04720.17
5.6.90.0270.08020.46
5.6.80.0200.06319.56
5.6.70.0200.07719.55
5.6.60.0200.06319.55
5.6.50.0370.04319.86
5.6.40.0270.07019.54
5.6.30.0200.03719.75
5.6.20.0230.05719.81
5.6.10.0230.08319.55
5.6.00.0270.03019.75
5.5.350.0400.07020.54
5.5.340.0070.07318.04
5.5.330.0200.03720.50
5.5.320.0130.06720.36
5.5.310.0270.07720.30
5.5.300.0130.05320.27
5.5.290.0270.07320.37
5.5.280.0130.04320.28
5.5.270.0130.04320.27
5.5.260.0300.07319.99
5.5.250.0230.07720.18
5.5.240.0170.04319.52
5.5.230.0230.07019.70
5.5.220.0300.04319.72
5.5.210.0300.04019.58
5.5.200.0200.03719.39
5.5.190.0200.07719.55
5.5.180.0270.04719.70
5.5.160.0130.05019.62
5.5.150.0330.06319.55
5.5.140.0170.04319.71
5.5.130.0230.04319.66
5.5.120.0330.06719.62
5.5.110.0130.05019.61
5.5.100.0230.06019.45
5.5.90.0200.07719.61
5.5.80.0230.07719.24
5.5.70.0100.04719.61
5.5.60.0230.05319.24
5.5.50.0300.06719.21
5.5.40.0130.04319.53
5.5.30.0170.07319.42
5.5.20.0300.06019.42
5.5.10.0200.08019.55
5.5.00.0270.07719.37
5.4.450.0230.03319.19
5.4.440.0230.05319.39
5.4.430.0200.03719.70
5.4.420.0230.08019.60
5.4.410.0200.03719.02
5.4.400.0230.07019.06
5.4.390.0130.05019.22
5.4.380.0200.07319.22
5.4.370.0300.05318.99
5.4.360.0230.03319.21
5.4.350.0230.03319.21
5.4.340.0330.06018.88
5.4.320.0170.08019.32
5.4.310.0130.04019.28
5.4.300.0270.06319.38
5.4.290.0200.03319.08
5.4.280.0200.07019.18
5.4.270.0270.05719.37
5.4.260.0300.07018.98
5.4.250.0170.08019.21
5.4.240.0200.03318.88
5.4.230.0200.03319.07
5.4.220.0170.06318.85
5.4.210.0100.04719.21
5.4.200.0130.04318.87
5.4.190.0270.03319.05
5.4.180.0230.05018.87
5.4.170.0330.06019.29
5.4.160.0170.05719.09
5.4.150.0230.07719.14
5.4.140.0230.03316.47
5.4.130.0200.04316.48
5.4.120.0200.07016.49
5.4.110.0300.03016.44
5.4.100.0270.03016.41
5.4.90.0200.03316.49
5.4.80.0200.04016.41
5.4.70.0300.06016.38
5.4.60.0230.03016.39
5.4.50.0100.04016.46
5.4.40.0170.07316.70
5.4.30.0200.03316.40
5.4.20.0170.03316.39
5.4.10.0200.03016.70
5.4.00.0200.04715.80
5.3.290.0170.04314.80
5.3.280.0170.03714.59
5.3.270.0330.04014.77
5.3.260.0230.07314.59
5.3.250.0200.07014.76
5.3.240.0200.03314.71
5.3.230.0200.04314.66
5.3.220.0270.06314.64
5.3.210.0170.03714.73
5.3.200.0230.03314.53
5.3.190.0200.06314.64
5.3.180.0330.07714.51
5.3.170.0200.06014.68
5.3.160.0170.07314.52
5.3.150.0170.04714.62
5.3.140.0370.03314.71
5.3.130.0100.05014.62
5.3.120.0100.04714.55
5.3.110.0200.04714.54
5.3.100.0130.05314.20
5.3.90.0170.04014.14
5.3.80.0270.06714.02
5.3.70.0370.02714.11
5.3.60.0170.03314.00
5.3.50.0230.02714.07
5.3.40.0230.07313.81
5.3.30.0300.04014.07
5.3.20.0100.05013.77
5.3.10.0230.05013.82
5.3.00.0170.04313.72
5.2.170.0170.05712.26
5.2.160.0130.04012.26
5.2.150.0170.04712.26
5.2.140.0400.02312.26
5.2.130.0170.02712.26
5.2.120.0370.02012.26
5.2.110.0130.02712.21
5.2.100.0170.02712.21
5.2.90.0230.03012.21
5.2.80.0230.03012.21
5.2.70.0070.03712.21
5.2.60.0200.02712.21
5.2.50.0230.05312.21
5.2.40.0170.02312.21
5.2.30.0100.03012.21
5.2.20.0200.05712.21
5.2.10.0170.05312.21
5.2.00.0070.03712.21
5.1.60.0070.03712.21
5.1.50.0170.04012.21
5.1.40.0130.05312.21
5.1.30.0100.03312.21
5.1.20.0070.03012.21
5.1.10.0070.03012.21
5.1.00.0170.04712.21
5.0.50.0070.02012.21
5.0.40.0070.02012.21
5.0.30.0030.03312.21
5.0.20.0100.02712.21
5.0.10.0100.02012.21
5.0.00.0030.03312.21
4.4.90.0070.03312.21
4.4.80.0070.03712.21
4.4.70.0070.01712.21
4.4.60.0030.01712.21
4.4.50.0070.01312.21
4.4.40.0030.03012.21
4.4.30.0070.03712.21
4.4.20.0030.01712.21
4.4.10.0030.01712.21
4.4.00.0030.02712.21
4.3.110.0070.01312.21
4.3.100.0030.01712.21
4.3.90.0070.01312.21
4.3.80.0100.03012.21
4.3.70.0030.01712.21
4.3.60.0070.01312.21
4.3.50.0070.03712.21
4.3.40.0130.03312.21
4.3.30.0070.01712.21
4.3.20.0030.01712.21
4.3.10.0030.01312.21
4.3.00.0070.02312.21

preferences:
35.12 ms | 401 KiB | 5 Q