3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new SimpleXMLElement('<root name="toplevel"></root>'); $f1 = new SimpleXMLElement('<child ="1">alpha</child>'); $f2 = new SimpleXMLElement('<child pos="2">beta</child>'); $f3 = new SimpleXMLElement('<child pos="3">gamma</child>'); $x->{$f1->getName()} = $f1; $x->{$f2->getName()}[] = $f2; $x->{$f3->getName()}[] = $f3; echo 'count child=',$x->count(),"\n"; echo $x->asXML(); foreach ( $x->children() as $foo ) { var_dump($foo); } ?>

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.80
8.3.50.0240.00522.05
8.3.40.0030.01219.17
8.3.30.0100.01020.77
8.3.20.0040.00419.14
8.3.10.0050.00321.47
8.3.00.0060.00320.06
8.2.180.0110.00717.25
8.2.170.0180.00322.96
8.2.160.0090.00620.77
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0160.00320.12
8.2.110.0060.00319.31
8.2.100.0120.00018.09
8.2.90.0080.00019.30
8.2.80.0000.00719.67
8.2.70.0060.00617.61
8.2.60.0000.00818.18
8.2.50.0080.00018.07
8.2.40.0000.00820.19
8.2.30.0000.00719.59
8.2.20.0000.00717.73
8.2.10.0040.00417.98
8.2.00.0040.00417.94
8.1.280.0070.01025.92
8.1.270.0140.00023.99
8.1.260.0060.00926.35
8.1.250.0030.00528.09
8.1.240.0030.00621.59
8.1.230.0070.00319.48
8.1.220.0030.00617.90
8.1.210.0030.00618.77
8.1.200.0030.00617.61
8.1.190.0080.00017.91
8.1.180.0000.00918.10
8.1.170.0050.00318.75
8.1.160.0040.00419.17
8.1.150.0000.00818.85
8.1.140.0040.00417.71
8.1.130.0030.00318.07
8.1.120.0030.00617.63
8.1.110.0000.00817.53
8.1.100.0040.00417.49
8.1.90.0000.00717.72
8.1.80.0000.00817.57
8.1.70.0030.00317.58
8.1.60.0060.00317.87
8.1.50.0000.00817.68
8.1.40.0050.00317.71
8.1.30.0060.00317.74
8.1.20.0080.00017.84
8.1.10.0000.00817.80
8.1.00.0040.00717.80
8.0.300.0030.00320.14
8.0.290.0040.00417.30
8.0.280.0050.00218.56
8.0.270.0030.00317.39
8.0.260.0030.00316.94
8.0.250.0030.00617.17
8.0.240.0040.00417.28
8.0.230.0000.00717.04
8.0.220.0000.00717.20
8.0.210.0030.00317.09
8.0.200.0000.00617.06
8.0.190.0070.00017.13
8.0.180.0030.00317.10
8.0.170.0040.00417.16
8.0.160.0080.00017.23
8.0.150.0050.00217.03
8.0.140.0040.00417.07
8.0.130.0060.00013.51
8.0.120.0040.00417.11
8.0.110.0000.00817.09
8.0.100.0040.00417.08
8.0.90.0070.00017.09
8.0.80.0100.01317.14
8.0.70.0040.00417.09
8.0.60.0040.00417.16
8.0.50.0040.00417.21
8.0.30.0100.00917.15
8.0.20.0070.01317.40
8.0.10.0000.00817.30
8.0.00.0110.00617.01
7.4.330.0000.00517.31
7.4.320.0000.00716.69
7.4.300.0000.00616.72
7.4.290.0030.00316.87
7.4.280.0040.00416.76
7.4.270.0030.00516.84
7.4.260.0030.00313.58
7.4.250.0000.00816.68
7.4.240.0030.00416.85
7.4.230.0050.00216.52
7.4.220.0090.00916.75
7.4.210.0070.00716.92
7.4.200.0070.00016.75
7.4.190.0040.00417.05
7.4.160.0100.00716.68
7.4.150.0110.00717.40
7.4.140.0130.00517.86
7.4.130.0130.00516.71
7.4.120.0130.00516.59
7.4.110.0110.01016.58
7.4.100.0100.01016.67
7.4.90.0120.00616.66
7.4.80.0140.00919.39
7.4.70.0040.01216.74
7.4.60.0110.00816.90
7.4.50.0030.00616.65
7.4.40.0060.00922.77
7.4.30.0140.00617.03
7.4.00.0070.01014.95
7.3.330.0030.00313.52
7.3.320.0000.00513.55
7.3.310.0000.00816.34
7.3.300.0030.00316.45
7.3.290.0030.01016.48
7.3.280.0040.01316.53
7.3.270.0130.00617.40
7.3.260.0090.01118.24
7.3.250.0130.00416.55
7.3.240.0140.00316.79
7.3.230.0070.01116.80
7.3.210.0070.01016.74
7.3.200.0120.00819.39
7.3.190.0060.01616.56
7.3.180.0030.01316.64
7.3.170.0070.01016.72
7.3.160.0080.00816.50
7.3.120.0070.01015.07
7.3.10.0060.00616.69
7.3.00.0040.01116.68
7.2.330.0080.00816.81
7.2.320.0100.01016.84
7.2.310.0190.01016.82
7.2.300.0070.01116.73
7.2.290.0160.00016.93
7.2.130.0060.00317.08
7.2.120.0040.00716.98
7.2.110.0070.00716.94
7.2.100.0040.01117.03
7.2.90.0030.00716.95
7.2.80.0030.00816.74
7.2.70.0030.00917.14
7.2.60.0060.00717.00
7.2.50.0060.00617.01
7.2.40.0070.00417.09
7.2.30.0050.00516.87
7.2.20.0040.00716.73
7.2.10.0030.00917.07
7.2.00.0110.00918.10
7.1.250.0030.00615.64
7.1.200.0090.00315.70
7.1.70.0040.00417.24
7.1.60.0040.00717.15
7.1.50.0030.00917.00
7.1.40.0030.00916.42
7.1.30.0000.01316.63
7.1.20.0040.00716.61
7.1.10.0060.00616.50
7.1.00.0030.01016.66
7.0.200.0040.00416.88
7.0.190.0040.00416.62
7.0.180.0040.00416.39
7.0.170.0110.00416.30
7.0.160.0030.01316.34
7.0.150.0070.00416.30
7.0.140.0000.01216.36
7.0.130.0040.00716.59
7.0.120.0040.00416.59
7.0.110.0000.01116.29
7.0.100.0030.01416.42
7.0.90.0030.00616.53
7.0.80.0000.01316.35
7.0.70.0030.00616.36
7.0.60.0000.01116.20
7.0.50.0000.00716.43
7.0.40.0000.00815.80
7.0.30.0000.00715.80
7.0.20.0000.00715.80
7.0.10.0090.00615.80
7.0.00.0000.01515.80
5.6.300.0030.04320.81
5.6.290.0000.05820.92
5.6.280.0030.07821.04
5.6.270.0000.04420.99
5.6.260.0070.08021.01
5.6.250.0030.05220.96
5.6.240.0200.06921.14
5.6.230.0030.04820.83
5.6.220.0030.04321.06
5.6.210.0030.09021.22
5.6.200.0030.04820.97
5.6.190.0070.05021.05
5.6.180.0070.04620.95
5.6.170.0140.04120.80
5.6.160.0100.08121.05
5.6.150.0030.04720.93
5.6.140.0070.05420.99
5.6.130.0130.04720.90
5.6.120.0100.06021.03
5.6.110.0040.04221.02
5.6.100.0100.07021.04
5.6.90.0030.06520.89
5.6.80.0030.04220.29
5.6.70.0070.04420.15
5.6.60.0030.04820.39
5.6.50.0100.04820.46
5.6.40.0000.04120.16
5.6.30.0070.03920.31
5.6.20.0030.05320.38
5.6.10.0000.04620.29
5.6.00.0420.03220.36
5.5.380.0060.03617.51
5.5.370.0030.04217.63
5.5.360.0070.03717.59
5.5.350.0100.04417.68
5.5.340.0030.04218.25
5.5.330.0000.04418.17
5.5.320.0000.04218.14
5.5.310.0070.04517.91
5.5.300.0120.03718.26
5.5.290.0200.05417.91
5.5.280.0030.04518.12
5.5.270.0110.04317.93
5.5.260.0070.05118.22
5.5.250.0090.03517.98
5.5.240.0060.03917.64
5.5.230.0060.04017.26
5.5.220.0090.03517.54
5.5.210.0000.05017.54
5.5.200.0060.03517.27
5.5.190.0030.03817.52
5.5.180.0030.04617.51
5.5.160.0090.03717.23
5.5.150.0070.04617.48
5.5.140.0000.05417.27
5.5.130.0030.05017.23
5.5.120.0000.05717.52
5.5.110.0040.03917.60
5.5.100.0030.04917.47
5.5.90.0030.04017.09
5.5.80.0100.03217.16
5.5.70.0040.03917.47
5.5.60.0070.03417.41
5.5.50.0120.03017.38
5.5.40.0000.03917.51
5.5.30.0060.04217.49
5.5.20.0000.04017.41
5.5.10.0030.04117.38
5.5.00.0030.03817.40
5.4.450.0040.04819.46
5.4.440.0060.03819.64
5.4.430.0040.04319.54
5.4.420.0240.03419.54
5.4.410.0100.03519.41
5.4.400.0030.03919.29
5.4.390.0030.04519.03
5.4.380.0000.04719.06
5.4.370.0040.03719.28
5.4.360.0030.04019.14
5.4.350.0070.04619.02
5.4.340.0030.04719.04
5.4.320.0030.04519.05
5.4.310.0130.03219.06
5.4.300.0000.04619.18
5.4.290.0070.03619.13
5.4.280.0100.03619.03
5.4.270.0070.03619.13
5.4.260.0060.03519.30
5.4.250.0000.04519.15
5.4.240.0030.04519.33
5.4.230.0070.03419.27
5.4.220.0070.03619.30
5.4.210.0030.03719.25
5.4.200.0060.03519.05
5.4.190.0030.03719.27
5.4.180.0030.07019.27
5.4.170.0000.04819.16
5.4.160.0070.04619.24
5.4.150.0070.04119.26
5.4.140.0030.03716.59
5.4.130.0060.03416.65
5.4.120.0070.03916.63
5.4.110.0000.04316.84
5.4.100.0100.03716.62
5.4.90.0030.04116.84
5.4.80.0030.04216.99
5.4.70.0030.03816.75
5.4.60.0000.06216.98
5.4.50.0030.06516.74
5.4.40.0040.04016.73
5.4.30.0030.03616.77
5.4.20.0000.04016.84
5.4.10.0000.04116.84
5.4.00.0000.03916.39
5.3.290.0030.03715.80
5.3.280.0100.03515.80
5.3.270.0100.03515.80
5.3.260.0030.04115.80
5.3.250.0060.03815.80
5.3.240.0060.03515.80
5.3.230.0030.04515.80
5.3.220.0070.03315.80
5.3.210.0030.04115.80
5.3.200.0060.03215.80
5.3.190.0030.03815.80
5.3.180.0030.03715.80
5.3.170.0030.03815.80
5.3.160.0100.03915.80
5.3.150.0030.07015.80
5.3.140.0060.03615.80
5.3.130.0030.05015.80
5.3.120.0000.04115.80
5.3.110.0170.03415.80
5.3.100.0000.04415.80
5.3.90.0070.03415.80
5.3.80.0040.03715.80
5.3.70.0030.03815.80
5.3.60.0140.03515.80
5.3.50.0030.04015.80
5.3.40.0030.03415.80
5.3.30.0030.04315.80
5.3.20.0070.06515.80
5.3.10.0090.03915.80
5.3.00.0000.04015.80
5.2.170.0060.02615.80
5.2.160.0000.03315.80
5.2.150.0060.02915.80
5.2.140.0190.04015.80
5.2.130.0030.02715.80
5.2.120.0100.02915.80
5.2.110.0000.03115.80
5.2.100.0100.02615.80
5.2.90.0000.03615.80
5.2.80.0050.02715.80
5.2.70.0060.05415.80
5.2.60.0000.04215.80
5.2.50.0000.04215.80
5.2.40.0000.05015.80
5.2.30.0030.05515.80
5.2.20.0070.02415.80
5.2.10.0090.02115.80
5.2.00.0030.02815.80
5.1.60.0000.03615.80
5.1.50.0000.02915.80
5.1.40.0090.01815.80
5.1.30.0030.05015.80
5.1.20.0070.02215.80
5.1.10.0040.02915.80
5.1.00.0190.02515.80
5.0.50.0040.01815.80
5.0.40.0000.02515.80
5.0.30.0030.03515.80
5.0.20.0040.01815.80
5.0.10.0030.03615.80
5.0.00.0030.03815.80
4.4.90.0000.03715.80
4.4.80.0110.02815.80
4.4.70.0040.01515.80
4.4.60.0000.01915.80
4.4.50.0030.01415.80
4.4.40.0030.02615.80
4.4.30.0030.01415.80
4.4.20.0000.01815.80
4.4.10.0000.01715.80
4.4.00.0030.02715.80
4.3.110.0030.02015.80
4.3.100.0070.01215.80
4.3.90.0030.02615.80
4.3.80.0030.02315.80
4.3.70.0000.01715.80
4.3.60.0000.01615.80
4.3.50.0000.01815.80
4.3.40.0030.02315.80
4.3.30.0030.01515.80
4.3.20.0000.02315.80
4.3.10.0030.02015.80
4.3.00.0030.01315.80

preferences:
49.87 ms | 401 KiB | 5 Q