3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml=simplexml_load_string(<<<XML <?xml version="1.0"?> <settings> <contents> <content> <item>a</item> <title>A</title> <keywords></keywords> </content> <content> <item>b</item> <title>B</title> <keywords></keywords> </content> <content> <item>c</item> <title>C</title> <keywords></keywords> </content> </contents> <errors_escape> <error_escape>one</error_escape> <error_escape>two</error_escape> <error_escape>three</error_escape> </errors_escape> </settings> XML ); $all_settings=array(); $error_escape=array(); foreach($xml->contents->content as $node) { $all_settings[]=array("item"=>strval($node->item),"title"=>strval($node->title),"keywords"=>strval($node->keywords)); } foreach($xml->errors_escape->error_escape as $node) { $error_escape[]=strval($node); } print_r($all_settings); print_r($error_escape);

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.0150.00616.75
8.3.50.0150.00322.00
8.3.40.0110.00418.91
8.3.30.0110.00419.52
8.3.20.0000.00720.43
8.3.10.0080.00023.78
8.3.00.0040.00422.35
8.2.180.0030.01218.54
8.2.170.0090.00622.96
8.2.160.0070.00719.54
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0110.00726.16
8.2.120.0040.00422.33
8.2.110.0070.00321.25
8.2.100.0000.01020.65
8.2.90.0040.00419.42
8.2.80.0040.00417.97
8.2.70.0000.00917.75
8.2.60.0060.00317.75
8.2.50.0030.00618.00
8.2.40.0040.00419.73
8.2.30.0070.00018.31
8.2.20.0070.00017.94
8.2.10.0000.00819.59
8.2.00.0040.00417.92
8.1.280.0090.00625.92
8.1.270.0060.00322.32
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00322.86
8.1.230.0030.00719.41
8.1.220.0000.00917.91
8.1.210.0080.00018.77
8.1.200.0080.00017.35
8.1.190.0110.00017.48
8.1.180.0060.00318.10
8.1.170.0040.00417.62
8.1.160.0080.00022.17
8.1.150.0040.00418.82
8.1.140.0040.00417.64
8.1.130.0000.00718.11
8.1.120.0000.00717.58
8.1.110.0050.00517.70
8.1.100.0070.00017.64
8.1.90.0050.00217.63
8.1.80.0040.00417.74
8.1.70.0040.00417.61
8.1.60.0080.00017.77
8.1.50.0000.00817.61
8.1.40.0050.00317.76
8.1.30.0050.00317.66
8.1.20.0050.00317.87
8.1.10.0000.00817.73
8.1.00.0070.00017.60
8.0.300.0030.00618.77
8.0.290.0040.00416.88
8.0.280.0000.00818.79
8.0.270.0000.00717.31
8.0.260.0080.00017.12
8.0.250.0000.00717.21
8.0.240.0030.00617.17
8.0.230.0050.00317.24
8.0.220.0000.00717.20
8.0.210.0030.00317.20
8.0.200.0080.00017.20
8.0.190.0000.00717.23
8.0.180.0040.00417.27
8.0.170.0080.00017.09
8.0.160.0000.00717.26
8.0.150.0040.00317.15
8.0.140.0000.00717.05
8.0.130.0030.00313.57
8.0.120.0000.00817.18
8.0.110.0000.00817.18
8.0.100.0050.00516.93
8.0.90.0040.00417.09
8.0.80.0030.02017.05
8.0.70.0000.00816.96
8.0.60.0040.00417.04
8.0.50.0080.00017.28
8.0.30.0110.00717.22
8.0.20.0130.00617.40
8.0.10.0040.00417.06
8.0.00.0100.01017.09
7.4.330.0030.00315.30
7.4.320.0030.00316.69
7.4.300.0030.00316.72
7.4.290.0040.00416.83
7.4.280.0030.00316.76
7.4.270.0070.00016.83
7.4.260.0000.00816.70
7.4.250.0040.00416.67
7.4.240.0040.00416.73
7.4.230.0030.00316.60
7.4.220.0140.00416.83
7.4.210.0110.00416.86
7.4.200.0060.00316.44
7.4.190.0050.00216.80
7.4.160.0130.01016.47
7.4.150.0060.01317.40
7.4.140.0150.00517.86
7.4.130.0100.00716.75
7.4.120.0050.01216.83
7.4.110.0030.01316.86
7.4.100.0030.01616.92
7.4.90.0100.00716.93
7.4.80.0070.01419.39
7.4.70.0100.00716.73
7.4.60.0140.00316.80
7.4.50.0080.00016.73
7.4.40.0000.01522.77
7.4.30.0000.01616.73
7.4.00.0060.00614.93
7.3.330.0000.00513.36
7.3.320.0000.00513.43
7.3.310.0020.00516.48
7.3.300.0020.00516.52
7.3.290.0100.01316.56
7.3.280.0130.00816.52
7.3.270.0140.00317.40
7.3.260.0120.00616.50
7.3.250.0150.00316.52
7.3.240.0080.00816.73
7.3.230.0130.00316.69
7.3.210.0060.01416.54
7.3.200.0090.01219.39
7.3.190.0090.00916.54
7.3.180.0060.00916.58
7.3.170.0130.01016.52
7.3.160.0090.00616.64
7.3.120.0030.00914.91
7.2.330.0030.01416.97
7.2.320.0030.01516.66
7.2.310.0060.01616.66
7.2.300.0060.01516.58
7.2.290.0100.00616.73
7.2.60.0030.00716.94
7.1.200.0070.00715.68
7.1.100.0000.01118.25
7.1.70.0000.00717.23
7.1.60.0070.01719.29
7.1.50.0220.01034.68
7.1.00.0100.07022.50
7.0.200.0100.00617.02
7.0.140.0070.07022.25
7.0.60.0070.08019.98
7.0.50.0100.03717.95
7.0.40.0030.04720.35
7.0.30.0270.05020.18
7.0.20.0230.08020.32
7.0.10.0070.04720.30
7.0.00.0000.09320.29
5.6.280.0030.07021.15
5.6.210.0170.05320.71
5.6.200.0100.08318.36
5.6.190.0070.05720.42
5.6.180.0330.06020.60
5.6.170.0230.03720.70
5.6.160.0030.07320.66
5.6.150.0030.08318.23
5.6.140.0030.08718.25
5.6.130.0070.06018.19
5.6.120.0070.04721.19
5.6.110.0070.09021.01
5.6.100.0130.07721.09
5.6.90.0070.06321.00
5.6.80.0030.04020.47
5.5.350.0100.07720.55
5.5.340.0100.04718.08
5.5.330.0200.07020.39
5.5.320.0200.04720.39
5.5.310.0300.07020.45
5.5.300.0030.04718.21
5.5.290.0070.08318.20
5.5.280.0070.03720.73
5.5.270.0030.04321.04
5.5.260.0100.07320.76
5.5.250.0130.04720.63
5.5.240.0330.06020.09
5.4.450.0600.07319.55
5.4.440.0800.06019.73
5.4.430.0870.08319.75
5.4.420.0670.07019.38
5.4.410.0870.08019.65
5.4.400.0130.05019.23
5.4.390.0200.06319.04
5.4.380.0270.05318.84
5.4.370.0100.03318.75
5.4.360.0200.04018.61
5.4.350.0070.03912.15
5.4.340.0080.03612.15
5.4.320.0050.04012.64
5.4.310.0100.04912.63
5.4.300.0060.03612.64
5.4.290.0070.03612.63
5.4.280.0040.03612.53
5.4.270.0060.03612.53
5.4.260.0040.04112.53
5.4.250.0110.04912.54
5.4.240.0050.03912.53
5.4.230.0080.04312.52
5.4.220.0080.03312.53
5.4.210.0060.03412.53
5.4.200.0170.04412.52
5.4.190.0160.04312.52
5.4.180.0230.06612.52
5.4.170.0160.04312.53
5.4.160.0130.05012.53
5.4.150.0330.09012.52
5.4.140.0150.04212.21
5.4.130.0160.04212.19
5.4.120.0120.04512.15
5.4.110.0130.04312.15
5.4.100.0110.04712.14
5.4.90.0210.03912.15
5.4.80.0160.04612.14
5.4.70.0150.04312.14
5.4.60.0150.04412.14
5.4.50.0390.07812.14
5.4.40.0170.04112.13
5.4.30.0190.04112.13
5.4.20.0150.04412.13
5.4.10.0180.04012.13
5.4.00.0300.09011.61
5.3.290.0060.03812.90
5.3.280.0090.05812.83
5.3.270.0170.04612.84
5.3.260.0210.04312.83
5.3.250.0220.04312.83
5.3.240.0170.04712.83
5.3.230.0340.09012.82
5.3.220.0170.04712.79
5.3.210.0150.04912.79
5.3.200.0200.04212.79
5.3.190.0160.04712.79
5.3.180.0220.10212.79
5.3.170.0220.04812.79
5.3.160.0190.04612.79
5.3.150.0370.12612.79
5.3.140.0140.04812.78
5.3.130.0200.04212.77
5.3.120.0180.04512.77
5.3.110.0330.09112.77
5.3.100.0190.04712.26
5.3.90.0160.04912.25
5.3.80.0160.04612.23
5.3.70.0250.06612.23
5.3.60.0180.04212.21
5.3.50.0190.04512.17
5.3.40.0170.04312.17
5.3.30.0180.04112.13
5.3.20.0170.04111.91
5.3.10.0320.05711.88
5.3.00.0120.04711.86
5.2.170.0170.0309.36
5.2.160.0150.0319.35
5.2.150.0160.0319.36
5.2.140.0100.0379.35
5.2.130.0140.0339.31
5.2.120.0130.0339.31
5.2.110.0240.0539.32
5.2.100.0160.0309.32
5.2.90.0160.0309.32
5.2.80.0330.0759.31
5.2.70.0110.0389.31
5.2.60.0170.0309.26
5.2.50.0120.0369.23
5.2.40.0180.0319.21
5.2.30.0110.0369.18
5.2.20.0110.0369.19
5.2.10.0160.0619.10
5.2.00.0170.0308.96
5.1.60.0110.0298.23
5.1.50.0100.0348.22
5.1.40.0130.0288.21
5.1.30.0150.0328.56
5.1.20.0100.0328.58
5.1.10.0110.0318.30
5.1.00.0140.0278.30
5.0.50.0120.0226.79
5.0.40.0070.0276.64
5.0.30.0130.0336.46
5.0.20.0130.0196.43
5.0.10.0100.0226.41
5.0.00.0080.0366.40
4.4.90.0060.0194.78
4.4.80.0060.0194.75
4.4.70.0100.0154.76
4.4.60.0070.0184.75
4.4.50.0070.0174.77
4.4.40.0060.0304.71
4.4.30.0100.0154.76
4.4.20.0050.0204.85
4.4.10.0050.0224.84
4.4.00.0050.0304.76
4.3.110.0050.0194.67
4.3.100.0060.0184.66
4.3.90.0080.0164.64
4.3.80.0060.0284.58
4.3.70.0080.0164.63
4.3.60.0060.0184.63
4.3.50.0040.0204.63
4.3.40.0090.0244.54
4.3.30.0150.0383.30
4.3.20.0040.0193.29
4.3.10.0040.0183.24
4.3.00.0070.0237.53

preferences:
39.22 ms | 401 KiB | 5 Q