3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new DOMDocument(); $element = $xml->createElement('saml:Assertion'); $xml_saml_assertion = $xml->appendChild($element); $attribute = $xml->createAttribute('id'); $attribute->value = 'IDCard'; $xml_saml_assertion->appendChild($attribute); $attribute = $xml->createAttribute('xmlns:saml'); $attribute->value = 'urn:oasis:names:tc:SAML:2.0:assertion'; $xml_saml_assertion->appendChild($attribute); $attribute = $xml->createAttribute('Version'); $attribute->value = '2.0'; $xml_saml_assertion->appendChild($attribute); var_dump($element->attributes[1]);

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.4.140.0120.00917.69
8.4.130.0150.00718.11
8.4.120.0040.00520.60
8.4.110.0110.00622.42
8.4.100.0150.00617.70
8.4.90.0150.00620.51
8.4.80.0120.00918.73
8.4.70.0120.00820.75
8.4.60.0130.00818.85
8.4.50.0040.00617.61
8.4.40.0030.01717.65
8.4.30.0060.00320.54
8.4.20.0070.01319.57
8.4.10.0100.01019.44
8.3.270.0110.00816.45
8.3.260.0120.00916.70
8.3.250.0100.00718.96
8.3.240.0120.00716.53
8.3.230.0080.01116.86
8.3.220.0100.00718.76
8.3.210.0090.00616.77
8.3.200.0050.00316.76
8.3.190.0130.00619.17
8.3.180.0100.00916.56
8.3.170.0120.00620.92
8.3.160.0130.00718.34
8.3.150.0150.00320.73
8.3.140.0100.01018.19
8.3.130.0050.00316.61
8.3.120.0060.00319.00
8.3.110.0040.00820.94
8.3.100.0170.00724.06
8.3.90.0080.00026.77
8.3.80.0050.00516.50
8.3.70.0070.00716.58
8.3.60.0130.01016.63
8.3.50.0130.00523.57
8.3.40.0090.00920.29
8.3.30.0120.00618.84
8.3.20.0000.01524.18
8.3.10.0090.00024.66
8.3.00.0080.00026.16
8.2.290.0130.00816.99
8.2.280.0130.00818.39
8.2.270.0100.01017.18
8.2.260.0000.00818.72
8.2.250.0030.00616.84
8.2.240.0150.00319.09
8.2.230.0000.00822.58
8.2.220.0030.00637.54
8.2.210.0000.00826.77
8.2.200.0080.00316.38
8.2.190.0090.00616.75
8.2.180.0150.00425.92
8.2.170.0200.00018.79
8.2.160.0060.01322.96
8.2.150.0040.01225.66
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0110.00721.17
8.2.110.0050.00520.34
8.2.100.0090.00317.84
8.2.90.0090.00017.75
8.2.80.0000.00818.64
8.2.70.0060.00317.80
8.2.60.0080.00018.03
8.2.50.0030.00618.10
8.2.40.0080.00021.21
8.2.30.0040.00419.30
8.2.20.0000.00718.19
8.2.10.0000.00819.12
8.2.00.0000.00719.12
8.1.330.0130.00616.17
8.1.320.0110.01016.05
8.1.310.0070.00716.70
8.1.300.0050.00516.03
8.1.290.0060.00318.88
8.1.280.0160.00325.92
8.1.270.0140.00720.54
8.1.260.0060.00326.35
8.1.250.0030.00528.09
8.1.240.0000.01723.69
8.1.230.0080.00322.25
8.1.220.0030.00517.79
8.1.210.0050.00318.77
8.1.200.0000.00917.24
8.1.190.0000.00817.35
8.1.180.0080.00018.10
8.1.170.0040.00418.52
8.1.160.0030.00518.91
8.1.150.0040.00418.90
8.1.140.0000.00718.74
8.1.130.0000.00720.16
8.1.120.0000.00717.42
8.1.110.0040.00417.34
8.1.100.0020.00517.36
8.1.90.0020.00517.48
8.1.80.0000.00817.41
8.1.70.0040.00417.38
8.1.60.0080.00017.48
8.1.50.0040.00417.42
8.1.40.0040.00417.50
8.1.30.0080.00017.52
8.1.20.0040.00417.61
8.1.10.0030.00517.54
8.1.00.0000.00817.47
8.0.300.0050.00318.77
8.0.290.0060.00316.63
8.0.280.0030.00318.35
8.0.270.0070.00016.80
8.0.260.0070.00020.22
8.0.250.0000.00716.92
8.0.240.0030.00616.84
8.0.230.0030.00316.87
8.0.220.0000.00716.87
8.0.210.0000.00716.81
8.0.200.0040.00416.83
8.0.190.0030.00516.92
8.0.180.0000.00816.80
8.0.170.0060.00316.86
8.0.160.0070.00016.81
8.0.150.0040.00416.85
8.0.140.0030.00316.72
8.0.130.0000.00613.26
8.0.120.0040.00416.77
8.0.110.0000.00716.65
8.0.100.0040.00416.77
8.0.90.0060.00316.69
8.0.80.0050.01116.85
8.0.70.0040.00416.79
8.0.60.0000.00816.73
8.0.50.0020.00516.72
8.0.30.0130.01017.32
8.0.20.0120.00817.14
8.0.10.0040.00416.81
8.0.00.0170.01017.02
7.4.330.0000.00515.55
7.4.320.0050.00316.48
7.4.300.0040.00416.33
7.4.290.0040.00416.41
7.4.280.0060.00316.57
7.4.270.0030.00316.64
7.4.260.0000.00513.22
7.4.250.0070.00016.50
7.4.240.0030.00516.52
7.4.230.0000.00716.33
7.4.220.0050.00216.50
7.4.210.0050.01116.45
7.4.200.0030.00316.32
7.4.130.0060.01616.43
7.4.120.0060.02116.61
7.4.110.0060.01216.41
7.4.100.0150.00416.63
7.4.90.0250.01316.35
7.4.80.0140.00419.39
7.4.70.0040.01516.48
7.4.60.0120.00616.41
7.4.50.0100.00716.05
7.4.40.0060.01716.42
7.4.30.0130.00416.04
7.4.20.0030.01316.49
7.4.10.0080.01116.25
7.4.00.0090.00916.19
7.3.330.0000.00816.16
7.3.320.0000.00513.05
7.3.310.0050.00216.14
7.3.300.0030.00516.21
7.3.290.0110.00316.27
7.3.280.0060.00916.20
7.3.260.0150.00916.53
7.3.240.0100.00916.43
7.3.230.0150.01116.21
7.3.210.0070.01116.49
7.3.200.0100.00716.43
7.3.190.0120.00916.41
7.3.180.0040.01416.23
7.3.170.0160.00616.36
7.3.160.0070.01016.30
7.3.150.0060.01116.10
7.3.140.0040.01316.39
7.3.130.0080.01116.43
7.3.120.0130.00616.17
7.3.110.0030.01416.03
7.3.100.0140.00516.13
7.3.90.0050.01416.14
7.3.80.0070.01116.26
7.3.70.0140.00316.12
7.3.60.0090.01216.39
7.3.50.0360.01716.14
7.3.40.0070.01416.23
7.3.30.0070.01016.19
7.3.20.0140.00316.32
7.3.10.0040.01516.36
7.3.00.0120.00616.12
7.2.330.0070.01316.44
7.2.320.0160.00616.63
7.2.310.0110.00716.51
7.2.300.0030.01916.38
7.2.290.0070.01016.65
7.2.280.0000.01616.50
7.2.270.0060.01316.35
7.2.260.0120.00816.61
7.2.250.0100.00716.29
7.2.240.0060.01116.54
7.2.230.0090.01516.18
7.2.220.0120.00916.36
7.2.210.0150.00316.69
7.2.200.0120.00816.39
7.2.190.0040.01516.38
7.2.180.0120.00916.31
7.2.170.0130.00916.58
7.2.160.0070.01016.41
7.2.150.0130.00616.61
7.2.140.0140.00716.54
7.2.130.0040.01416.47
7.2.120.0120.00616.59
7.2.110.0090.00916.58
7.2.100.0070.01316.46
7.2.90.0070.01116.63
7.2.80.0040.01516.65
7.2.70.0030.01416.61
7.2.60.0090.00916.60
7.2.50.0080.01216.37
7.2.40.0120.00616.45
7.2.30.0080.01216.68
7.2.20.0140.00316.75
7.2.10.0060.01216.71
7.2.00.0090.00916.52

preferences:
135.17 ms | 403 KiB | 5 Q