3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlBuilder = new \SimpleXMLElement('<response></response>'); $xmlBuilder->addChild('result', '5'); $xmlBuilder->addChild('comment', 'Some natural comment'); echo $xmlBuilder->asXML();

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.70.0070.01016.58
8.3.60.0060.00916.61
8.3.50.0140.00523.04
8.3.40.0140.00418.95
8.3.30.0030.01019.32
8.3.20.0040.00420.57
8.3.10.0050.00322.15
8.3.00.0060.00319.38
8.2.180.0090.00916.85
8.2.170.0070.00722.96
8.2.160.0070.00720.65
8.2.150.0040.00424.18
8.2.140.0120.00024.66
8.2.130.0030.00626.16
8.2.120.0050.00321.33
8.2.110.0040.00422.50
8.2.100.0080.00319.83
8.2.90.0040.00419.48
8.2.80.0030.00517.97
8.2.70.0060.00317.75
8.2.60.0030.00618.29
8.2.50.0060.00318.07
8.2.40.0000.00818.47
8.2.30.0070.00018.33
8.2.20.0000.00717.99
8.2.10.0050.00218.24
8.2.00.0000.00817.89
8.1.280.0180.00025.92
8.1.270.0060.00324.09
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0030.00618.75
8.1.230.0080.00319.31
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0030.00717.48
8.1.190.0040.00417.25
8.1.180.0000.00819.13
8.1.170.0030.00518.76
8.1.160.0070.00022.12
8.1.150.0020.00519.14
8.1.140.0030.00517.70
8.1.130.0050.00318.09
8.1.120.0070.00017.64
8.1.110.0020.00517.61
8.1.100.0000.00717.66
8.1.90.0040.00417.59
8.1.80.0040.00417.61
8.1.70.0000.00717.59
8.1.60.0000.00817.77
8.1.50.0040.00417.75
8.1.40.0030.00517.73
8.1.30.0030.00517.86
8.1.20.0040.00417.82
8.1.10.0040.00417.88
8.1.00.0000.00717.79
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0070.00018.56
8.0.270.0000.00717.47
8.0.260.0000.00817.42
8.0.250.0070.00017.26
8.0.240.0040.00417.09
8.0.230.0020.00517.00
8.0.220.0000.00717.01
8.0.210.0040.00417.04
8.0.200.0000.00617.20
8.0.190.0000.00717.00
8.0.180.0000.00817.06
8.0.170.0030.00617.00
8.0.160.0070.00016.99
8.0.150.0030.00516.99
8.0.140.0060.00316.92
8.0.130.0000.00713.47
8.0.120.0060.00317.02
8.0.110.0050.00216.98
8.0.100.0000.00716.95
8.0.90.0030.00517.09
8.0.80.0120.00616.98
8.0.70.0000.00817.19
8.0.60.0040.00417.05
8.0.50.0040.00416.93
8.0.30.0120.01017.20
8.0.20.0050.01517.41
8.0.10.0000.00717.18
8.0.00.0080.01416.99
7.4.330.0030.00315.00
7.4.320.0030.00316.66
7.4.300.0030.00316.71
7.4.290.0060.00316.59
7.4.280.0000.00616.70
7.4.270.0070.00016.81
7.4.260.0030.00616.66
7.4.250.0030.00316.61
7.4.240.0030.00416.73
7.4.230.0000.00716.52
7.4.220.0090.00916.79
7.4.210.0100.01016.66
7.4.200.0070.00016.77
7.4.160.0070.01016.69
7.4.150.0060.02317.40
7.4.140.0080.00817.86
7.4.130.0120.00816.61
7.4.120.0050.01216.70
7.4.110.0080.00816.70
7.4.100.0110.00816.56
7.4.90.0100.00716.66
7.4.80.0130.01019.39
7.4.70.0130.00916.69
7.4.60.0110.00616.59
7.4.50.0030.00616.54
7.4.40.0130.00616.77
7.4.30.0070.01016.66
7.4.00.0000.01614.98
7.3.330.0030.00313.26
7.3.320.0000.00613.27
7.3.310.0000.00616.45
7.3.300.0030.00316.32
7.3.290.0080.00516.39
7.3.280.0110.00616.38
7.3.270.0140.00317.40
7.3.260.0090.01516.48
7.3.250.0120.00816.53
7.3.240.0110.00616.57
7.3.230.0110.00616.57
7.3.210.0180.00616.61
7.3.200.0060.01319.39
7.3.190.0110.00616.58
7.3.180.0070.01016.29
7.3.170.0130.00316.59
7.3.160.0080.00816.50
7.2.330.0110.00716.88
7.2.320.0000.01716.55
7.2.310.0090.00916.71
7.2.300.0070.01116.86
7.2.290.0070.01016.71
7.2.60.0090.00617.07
7.2.00.0060.00619.18
7.1.200.0040.00815.92
7.1.100.0030.01018.27
7.1.70.0030.00617.01
7.1.60.0110.01119.40
7.1.50.0000.01016.88
7.1.00.0070.09322.49
7.0.200.0030.01016.79
7.0.140.0030.07322.02
7.0.110.0070.08020.19
7.0.100.0100.07320.10
7.0.90.0100.08320.07
7.0.80.0130.08020.04
7.0.70.0100.08020.05
7.0.60.0070.08320.05
7.0.50.0100.08020.13
7.0.40.0030.08319.81
7.0.30.0070.04719.82
7.0.20.0170.07719.87
7.0.10.0170.07719.77
7.0.00.0070.04719.75
5.6.280.0030.07321.11
5.6.260.0130.05320.65
5.6.250.0130.04320.69
5.6.240.0070.06020.73
5.6.230.0200.06720.72
5.6.220.0100.08320.86
5.6.210.0070.08320.65
5.6.200.0070.08720.67
5.6.190.0130.04320.66
5.6.180.0100.07020.73
5.6.170.0200.07320.66
5.6.160.0100.07720.66
5.6.150.0070.07320.66
5.6.140.0030.07320.65
5.6.130.0100.07720.73
5.6.120.0130.07020.65
5.6.110.0000.09320.64
5.6.100.0070.04320.71
5.6.90.0100.08320.94
5.6.80.0100.07720.34
5.6.70.0100.06720.02
5.6.60.0170.06320.04
5.6.50.0170.06020.14
5.6.40.0070.07720.06
5.6.30.0100.07320.02
5.6.20.0100.07719.99
5.6.10.0100.08020.10
5.6.00.0000.08320.04
5.5.380.0070.07720.48
5.5.370.0130.07320.61
5.5.360.0100.06020.50
5.5.350.0100.04720.57
5.5.340.0100.08020.74
5.5.330.0130.07320.74
5.5.320.0000.09021.03
5.5.310.0000.08320.98
5.5.300.0100.05320.94
5.5.290.0070.08721.00
5.5.280.0070.06720.88
5.5.270.0030.05720.93
5.5.260.0100.07721.14
5.5.250.0070.07320.95
5.5.240.0170.07020.26
5.5.230.0000.05720.38
5.5.220.0030.07720.20
5.5.210.0130.07020.11
5.5.200.0070.08020.38
5.5.190.0130.07020.20
5.5.180.0030.08020.09
5.5.160.0130.07320.20
5.5.150.0030.06720.40
5.5.140.0070.03720.48
5.5.130.0130.04020.48
5.5.120.0130.03020.13
5.5.110.0100.05320.18
5.5.100.0100.04020.09
5.5.90.0130.03020.29
5.5.80.0030.04020.36
5.5.70.0030.03720.24
5.5.60.0070.03320.05
5.5.50.0070.03720.34
5.5.40.0070.04020.13
5.5.30.0030.07020.25
5.5.20.0070.05320.22
5.5.10.0070.06720.05
5.5.00.0100.05020.25
5.4.450.0030.08719.43
5.4.440.0000.05319.40
5.4.430.0130.04019.70
5.4.420.0070.07319.40
5.4.410.0000.06719.30
5.4.400.0070.07719.30
5.4.390.0070.07319.30
5.4.380.0070.07719.28
5.4.370.0070.06319.13
5.4.360.0030.04319.13
5.4.350.0070.06019.31
5.4.340.0030.07719.30
5.4.320.0070.08319.14
5.4.310.0070.05719.34
5.4.300.0100.06719.10
5.4.290.0030.05019.19
5.4.280.0030.05319.19
5.4.270.0070.03719.33
5.4.260.0070.03719.17
5.4.250.0070.04019.12
5.4.240.0130.05319.13
5.4.230.0030.03719.20
5.4.220.0070.03719.34
5.4.210.0030.03719.16
5.4.200.0030.04019.38
5.4.190.0000.04719.30
5.4.180.0070.04319.01
5.4.170.0070.03319.16
5.4.160.0030.03319.06
5.4.150.0030.03719.34
5.4.140.0000.04016.32
5.4.130.0030.05316.64
5.4.120.0030.03716.38
5.4.110.0070.04016.41
5.4.100.0070.06016.52
5.4.90.0100.06316.50
5.4.80.0000.03716.48
5.4.70.0000.03716.48
5.4.60.0030.03716.38
5.4.50.0100.03016.69
5.4.40.0170.03316.39
5.4.30.0000.05016.40
5.4.20.0070.03316.16
5.4.10.0030.05016.40
5.4.00.0000.03715.84
5.3.290.0100.07014.65
5.3.280.0070.03714.61
5.3.270.0030.04314.69
5.3.260.0030.03314.66
5.3.250.0000.05314.69
5.3.240.0030.03714.59
5.3.230.0070.06314.59
5.3.220.0030.04714.65
5.3.210.0000.04314.66
5.3.200.0070.05014.63
5.3.190.0100.07314.65
5.3.180.0070.04314.56
5.3.170.0100.03314.60
5.3.160.0070.03314.62
5.3.150.0030.03714.69
5.3.140.0000.04014.51
5.3.130.0070.05014.60
5.3.120.0070.04014.57
5.3.110.0030.03314.55
5.3.100.0100.03314.12
5.3.90.0000.06714.08
5.3.80.0030.04314.11
5.3.70.0070.05014.16
5.3.60.0030.05714.15
5.3.50.0070.03313.95
5.3.40.0070.03713.98
5.3.30.0030.04013.89
5.3.20.0070.02713.68
5.3.10.0030.03313.69
5.3.00.0100.05013.59
5.2.170.0030.03311.87
5.2.160.0100.02311.87
5.2.150.0070.02311.87
5.2.140.0070.02311.87
5.2.130.0030.03011.87
5.2.120.0000.04011.87
5.2.110.0030.03311.87
5.2.100.0000.02711.87
5.2.90.0030.04311.87
5.2.80.0030.04711.87
5.2.70.0170.04711.87
5.2.60.0000.05011.87
5.2.50.0070.06011.87
5.2.40.0030.06011.87
5.2.30.0070.03711.87
5.2.20.0100.05711.87
5.2.10.0030.04311.87
5.2.00.0100.05711.87
5.1.60.0070.03711.87
5.1.50.0000.05711.87
5.1.40.0070.05011.87
5.1.30.0030.06311.87
5.1.20.0030.06011.87
5.1.10.0030.05311.87
5.1.00.0130.03311.87
5.0.50.0030.04711.87
5.0.40.0100.02711.87
5.0.30.0030.05711.87
5.0.20.0000.04711.87
5.0.10.0000.04711.87
5.0.00.0070.05711.87
4.4.90.0000.02011.87
4.4.80.0000.03711.87
4.4.70.0000.03011.87
4.4.60.0030.03311.87
4.4.50.0070.03311.87
4.4.40.0000.05711.87
4.4.30.0000.03711.87
4.4.20.0030.03311.87
4.4.10.0000.02311.87
4.4.00.0000.05711.87
4.3.110.0000.03711.87
4.3.100.0100.02711.87
4.3.90.0000.03311.87
4.3.80.0030.04311.87
4.3.70.0030.03311.87
4.3.60.0070.03011.87
4.3.50.0070.03011.87
4.3.40.0030.04711.87
4.3.30.0030.01711.87
4.3.20.0030.03311.87
4.3.10.0100.03011.87
4.3.00.0030.03311.87

preferences:
51.94 ms | 401 KiB | 5 Q