3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml_header = "<?xml version='1.0' encoding='utf-8'?><xml/>"; $xml = new SimpleXMLElement($xml_header); $xml->addChild("first_string","this is &amp;lt;mystring&gt; &amp;euro; &amp;gt; $"); $xml->addChild("first_string2", "this is <mystring> &euro; > $"); $xml->addChild("second_string",htmlentities("this is <mystring> &euro; > $")); echo $xml->first_string . $xml->first_string2 . $xml->second_string;

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.00418.37
8.3.50.0080.01222.05
8.3.40.0040.01118.79
8.3.30.0110.00418.80
8.3.20.0000.00818.76
8.3.10.0040.00421.10
8.3.00.0040.00723.73
8.2.180.0140.00316.75
8.2.170.0090.01322.96
8.2.160.0120.00320.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00421.01
8.2.110.0030.00720.64
8.2.100.0080.00417.84
8.2.90.0030.00619.21
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0060.00318.05
8.2.50.0000.00818.07
8.2.40.0000.00818.28
8.2.30.0040.00421.48
8.2.20.0000.00717.91
8.2.10.0040.00417.78
8.2.00.0040.00417.72
8.1.280.0060.01125.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.54
8.1.230.0090.00320.99
8.1.220.0040.00418.77
8.1.210.0040.00419.15
8.1.200.0060.00317.47
8.1.190.0030.00617.78
8.1.180.0050.00318.10
8.1.170.0000.00818.67
8.1.160.0030.00718.93
8.1.150.0040.00418.81
8.1.140.0000.00717.55
8.1.130.0000.00818.04
8.1.120.0000.00817.78
8.1.110.0000.00817.70
8.1.100.0000.00717.60
8.1.90.0020.00517.57
8.1.80.0080.00017.65
8.1.70.0050.00317.57
8.1.60.0040.00417.85
8.1.50.0050.00317.68
8.1.40.0080.00017.61
8.1.30.0000.00717.71
8.1.20.0000.00817.86
8.1.10.0020.00517.70
8.1.00.0080.00417.62
8.0.300.0000.00720.23
8.0.290.0040.00417.18
8.0.280.0050.00218.54
8.0.270.0030.00617.37
8.0.260.0110.00017.04
8.0.250.0040.00417.20
8.0.240.0040.00417.20
8.0.230.0030.00317.05
8.0.220.0030.00317.05
8.0.210.0030.00317.04
8.0.200.0030.00317.11
8.0.190.0070.00017.18
8.0.180.0080.00017.01
8.0.170.0000.00717.12
8.0.160.0000.00717.02
8.0.150.0040.00417.05
8.0.140.0000.00717.13
8.0.130.0050.00013.55
8.0.120.0000.00716.92
8.0.110.0050.00317.10
8.0.100.0000.00717.09
8.0.90.0040.00417.05
8.0.80.0090.00617.07
8.0.70.0000.00717.11
8.0.60.0030.00617.12
8.0.50.0040.00417.05
8.0.30.0080.01117.20
8.0.20.0120.00717.43
8.0.10.0000.00717.08
8.0.00.0160.00216.82
7.4.330.0030.00314.79
7.4.320.0000.00616.76
7.4.300.0000.00616.74
7.4.290.0070.00016.65
7.4.280.0000.00716.79
7.4.270.0040.00416.67
7.4.260.0030.00313.55
7.4.250.0000.00816.68
7.4.240.0040.00416.76
7.4.230.0000.00716.71
7.4.220.0090.00616.49
7.4.210.0060.01116.71
7.4.200.0040.00416.78
7.4.190.0050.00316.49
7.4.160.0060.01016.56
7.4.150.0070.01117.40
7.4.140.0080.01017.86
7.4.130.0050.01216.56
7.4.120.0080.01016.63
7.4.110.0120.00316.52
7.4.100.0080.00816.56
7.4.90.0070.01116.42
7.4.80.0120.00919.39
7.4.70.0110.00616.71
7.4.60.0040.01716.66
7.4.50.0030.00616.75
7.4.40.0070.00722.77
7.4.30.0060.01316.43
7.4.10.0110.00815.09
7.4.00.0100.00815.01
7.3.330.0000.00513.24
7.3.320.0050.00013.29
7.3.310.0070.00016.30
7.3.300.0000.00716.18
7.3.290.0070.00716.35
7.3.280.0120.00616.39
7.3.270.0140.00617.40
7.3.260.0170.00218.24
7.3.250.0080.00916.57
7.3.240.0100.00716.42
7.3.230.0080.00816.76
7.3.210.0060.00916.52
7.3.200.0140.00719.39
7.3.190.0100.01216.67
7.3.180.0110.00516.67
7.3.170.0130.00916.59
7.3.160.0080.00816.39
7.3.130.0090.00915.06
7.3.120.0090.00614.71
7.3.110.0100.00714.93
7.3.100.0080.00515.06
7.3.90.0070.01014.89
7.3.80.0070.00714.93
7.3.70.0080.00414.83
7.3.60.0090.00314.84
7.3.50.0050.00814.88
7.3.40.0050.01014.86
7.3.30.0050.00914.86
7.3.20.0070.00516.64
7.3.10.0070.00716.70
7.3.00.0050.00716.73
7.2.330.0090.00916.56
7.2.320.0090.00916.46
7.2.310.0100.00716.90
7.2.300.0130.01016.62
7.2.290.0100.00716.95
7.2.260.0070.01015.10
7.2.250.0080.00815.09
7.2.240.0050.01215.23
7.2.230.0080.00915.06
7.2.220.0070.00515.22
7.2.210.0090.00415.27
7.2.200.0060.00815.16
7.2.190.0050.01014.97
7.2.180.0060.00315.09
7.2.170.0050.00915.07
7.2.160.0060.00615.07
7.2.150.0050.00916.98
7.2.140.0030.01016.81
7.2.130.0070.00816.92
7.2.120.0080.00517.01
7.2.110.0030.00916.96
7.2.100.0090.00417.00
7.2.90.0060.00916.97
7.2.80.0040.00817.06
7.2.70.0080.00417.27
7.2.60.0050.00816.94
7.2.50.0060.00816.98
7.2.40.0080.00516.87
7.2.30.0030.01116.89
7.2.20.0040.00917.05
7.2.10.0030.01116.85
7.2.00.0080.00817.55
7.1.330.0060.00715.91
7.1.320.0040.00815.83
7.1.310.0040.00715.83
7.1.300.0070.00615.69
7.1.290.0050.00815.79
7.1.280.0070.00615.78
7.1.270.0050.00715.79
7.1.260.0060.00415.86
7.1.250.0030.00915.78
7.1.240.0070.00815.87
7.1.230.0040.00815.83
7.1.220.0050.00615.92
7.1.210.0040.00815.97
7.1.200.0070.00315.89
7.1.190.0050.00715.96
7.1.180.0060.00615.84
7.1.170.0060.00815.91
7.1.160.0040.00915.86
7.1.150.0040.00915.94
7.1.140.0070.00615.86
7.1.130.0030.01115.96
7.1.120.0090.00715.80
7.1.110.0050.01115.82
7.1.100.0050.00816.44
7.1.90.0040.00915.88
7.1.80.0050.00715.81
7.1.70.0070.00716.17
7.1.60.0080.00816.79
7.1.50.0090.00616.20
7.1.40.0050.00915.90
7.1.30.0050.00715.84
7.1.20.0040.00915.92
7.1.10.0050.00715.89
7.1.00.0020.02217.46
7.0.330.0060.00915.55
7.0.320.0070.00615.43
7.0.310.0070.00715.55
7.0.300.0080.00515.47
7.0.290.0090.00315.46
7.0.280.0050.00715.44
7.0.270.0050.00915.55
7.0.260.0070.00815.44
7.0.250.0020.01015.56
7.0.240.0050.00815.48
7.0.230.0060.00715.66
7.0.220.0040.00915.46
7.0.210.0050.00715.45
7.0.200.0050.00615.74
7.0.190.0050.00715.46
7.0.180.0050.00915.45
7.0.170.0060.00915.46
7.0.160.0060.00515.52
7.0.150.0010.01315.47
7.0.140.0070.02317.09
7.0.130.0050.00515.55
7.0.120.0040.01115.47
7.0.110.0080.00615.67
7.0.100.0050.00815.63
7.0.90.0110.00315.55
7.0.80.0050.00815.53
7.0.70.0070.02416.99
7.0.60.0000.02717.12
7.0.50.0040.01817.19
7.0.40.0050.01715.20
7.0.30.0030.02615.31
7.0.20.0050.02015.29
7.0.10.0060.02515.18
7.0.00.0040.01815.18
5.6.400.0080.00714.46
5.6.390.0070.00414.51
5.6.380.0050.01014.43
5.6.370.0060.00614.39
5.6.360.0070.00614.47
5.6.350.0050.00914.27
5.6.340.0020.00814.49
5.6.330.0030.01014.37
5.6.320.0050.00814.29
5.6.310.0050.00914.55
5.6.300.0050.00914.54
5.6.290.0090.00514.52
5.6.280.0060.02416.03
5.6.270.0070.00614.47
5.6.260.0050.00814.39
5.6.250.0030.00914.37
5.6.240.0060.00614.37
5.6.230.0070.00814.43
5.6.220.0040.02615.84
5.6.210.0030.02615.97
5.6.200.0050.02316.11
5.6.190.0070.01515.98
5.6.180.0020.01916.22
5.6.170.0080.02216.06
5.6.160.0070.01316.04
5.6.150.0060.01616.01
5.6.140.0030.02316.14
5.6.130.0080.02316.25
5.6.120.0050.01516.18
5.6.110.0040.02016.25
5.6.100.0050.01615.96
5.6.90.0040.01716.00
5.6.80.0060.01415.89
5.6.70.0040.01615.96
5.6.60.0040.01415.79
5.6.50.0050.01115.93
5.6.40.0030.01415.85
5.6.30.0070.01415.91
5.6.20.0050.02515.76
5.6.10.0070.02515.94
5.6.00.0040.02615.82
5.5.380.0010.01113.41
5.5.370.0070.00313.36
5.5.360.0070.02215.22
5.5.350.0040.02415.07
5.5.340.0060.02515.26
5.5.330.0030.01615.28
5.5.320.0040.02315.14
5.5.310.0020.02715.20
5.5.300.0080.02115.27
5.5.290.0060.02115.12
5.5.280.0040.01615.24
5.5.270.0100.01515.21
5.5.260.0030.01715.05
5.5.250.0080.01115.00
5.5.240.0040.01414.98
5.5.230.0060.01415.03
5.5.220.0050.01314.88
5.5.210.0030.01815.02
5.5.200.0030.01615.04
5.5.190.0030.02615.04
5.5.180.0040.02614.98
5.5.170.0020.00813.21
5.5.160.0070.02214.88
5.5.150.0040.02714.89
5.5.140.0080.02214.98
5.5.130.0030.02115.05
5.5.120.0050.02614.98
5.5.110.0070.01814.98
5.5.100.0040.02414.97
5.5.90.0060.02315.06
5.5.80.0070.02315.01
5.5.70.0080.02014.95
5.5.60.0060.02114.94
5.5.50.0070.02414.98
5.5.40.0050.02715.04
5.5.30.0060.01714.99
5.5.20.0090.02314.89
5.5.10.0070.02414.86
5.5.00.0040.02514.88
5.4.450.0040.01914.16
5.4.440.0040.01414.25
5.4.430.0040.01414.19
5.4.420.0030.01414.19
5.4.410.0020.01414.09
5.4.400.0040.01614.07
5.4.390.0020.01614.05
5.4.380.0030.01214.00
5.4.370.0020.01514.11
5.4.360.0050.01314.03
5.4.350.0010.01514.15
5.4.340.0060.02314.10
5.4.330.0050.00712.47
5.4.320.0070.02214.09
5.4.310.0050.02114.17
5.4.300.0060.02214.08
5.4.290.0050.01714.11
5.4.280.0060.02014.01
5.4.270.0050.02314.10
5.4.260.0050.01614.09
5.4.250.0050.02114.13
5.4.240.0040.02014.03
5.4.230.0050.02114.13
5.4.220.0020.02514.09
5.4.210.0040.02414.10
5.4.200.0070.02014.13
5.4.190.0030.02414.17
5.4.180.0030.02314.00
5.4.170.0070.02414.11
5.4.160.0020.02614.07
5.4.150.0020.02314.07
5.4.140.0060.02113.48
5.4.130.0060.02013.42
5.4.120.0040.02313.44
5.4.110.0060.02213.36
5.4.100.0030.01913.42
5.4.90.0030.02013.44
5.4.80.0060.01813.49
5.4.70.0060.01913.34
5.4.60.0060.02013.36
5.4.50.0080.01913.39
5.4.40.0050.01913.41
5.4.30.0040.02013.45
5.4.20.0060.02213.46
5.4.10.0050.02313.39
5.4.00.0070.01913.26
5.3.290.0060.02312.93
5.3.280.0040.02312.84
5.3.270.0010.02612.87
5.3.260.0030.02412.87
5.3.250.0020.02112.82
5.3.240.0060.02112.85
5.3.230.0060.02012.85
5.3.220.0030.02012.86
5.3.210.0050.02112.87
5.3.200.0060.02112.85
5.3.190.0040.02212.85
5.3.180.0060.01812.83
5.3.170.0050.01512.83
5.3.160.0040.02112.87
5.3.150.0030.02312.89
5.3.140.0040.02312.82
5.3.130.0070.01512.80
5.3.120.0030.02312.87
5.3.110.0030.02612.84
5.3.100.0020.02412.74
5.3.90.0040.02112.73
5.3.80.0040.02112.73
5.3.70.0050.02012.72
5.3.60.0020.02412.69
5.3.50.0020.02012.69
5.3.40.0050.02112.70
5.3.30.0030.02212.63
5.3.20.0040.02012.64
5.3.10.0030.02412.64
5.3.00.0050.01712.60
5.2.170.0020.03510.90
5.2.160.0050.02810.85
5.2.150.0020.03410.78
5.2.140.0020.03110.75
5.2.130.0020.02810.88
5.2.120.0030.03010.88
5.2.110.0060.02810.79
5.2.100.0050.02010.89
5.2.90.0050.02510.79
5.2.80.0020.03310.88
5.2.70.0000.02010.75
5.2.60.0010.02610.82
5.2.50.0000.02910.78
5.2.40.0050.02510.74
5.2.30.0000.02610.83
5.2.20.0030.01910.69
5.2.10.0040.01510.67
5.2.00.0030.01810.68
5.1.60.0020.02810.42
5.1.50.0030.02810.42
5.1.40.0020.02510.42
5.1.30.0020.03210.46
5.1.20.0030.03010.49
5.1.10.0060.02010.42
5.1.00.0060.02710.42
5.0.50.0020.02210.42
5.0.40.0030.02310.42
5.0.30.0020.02710.42
5.0.20.0000.02010.42
5.0.10.0030.02010.42
5.0.00.0040.02810.42
4.4.90.0040.00710.42
4.4.80.0000.01310.42
4.4.70.0000.01210.42
4.4.60.0000.02010.42
4.4.50.0020.01010.42
4.4.40.0020.02610.42
4.4.30.0000.01910.42
4.4.20.0020.01910.42
4.4.10.0020.01310.42
4.4.00.0000.03110.42
4.3.110.0010.01310.42
4.3.100.0040.01610.42
4.3.90.0040.01510.42
4.3.80.0030.01710.42
4.3.70.0020.01110.42
4.3.60.0010.01110.42
4.3.50.0020.00810.42
4.3.40.0030.01810.42
4.3.30.0010.01010.42
4.3.20.0020.00810.42
4.3.10.0000.01010.42
4.3.00.0020.01710.42

preferences:
41.38 ms | 400 KiB | 5 Q