3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new SimpleXMLElement('<root name="toplevel"></root>'); $f1 = new SimpleXMLElement('<child pos="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 $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.00416.75
8.3.50.0070.00716.64
8.3.40.0080.00819.09
8.3.30.0120.00318.98
8.3.20.0070.00020.54
8.3.10.0080.00022.15
8.3.00.0040.00418.03
8.2.180.0160.00319.04
8.2.170.0070.01122.96
8.2.160.0030.01120.69
8.2.150.0060.00324.18
8.2.140.0000.00724.66
8.2.130.0080.00022.69
8.2.120.0040.00426.35
8.2.110.0070.00421.43
8.2.100.0070.00418.47
8.2.90.0000.00819.65
8.2.80.0040.00418.15
8.2.70.0060.00617.88
8.2.60.0030.00518.16
8.2.50.0000.00818.27
8.2.40.0030.00520.77
8.2.30.0000.00821.36
8.2.20.0040.00418.47
8.2.10.0000.00818.36
8.2.00.0000.00718.34
8.1.280.0110.00425.92
8.1.270.0040.00424.20
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00924.21
8.1.230.0090.00318.96
8.1.220.0040.00418.02
8.1.210.0030.00518.77
8.1.200.0060.00317.73
8.1.190.0050.00317.60
8.1.180.0000.00818.10
8.1.170.0000.00818.91
8.1.160.0040.00419.30
8.1.150.0000.00919.23
8.1.140.0040.00419.86
8.1.130.0060.00319.14
8.1.120.0040.00317.82
8.1.110.0070.00017.76
8.1.100.0040.00417.83
8.1.90.0000.00717.73
8.1.80.0040.00417.63
8.1.70.0030.00317.63
8.1.60.0030.00617.90
8.1.50.0030.00617.79
8.1.40.0060.00317.81
8.1.30.0090.00017.96
8.1.20.0050.00318.00
8.1.10.0040.00417.88
8.1.00.0040.00417.76
8.0.300.0030.00818.77
8.0.290.0050.00217.13
8.0.280.0000.00718.77
8.0.270.0000.00717.48
8.0.260.0030.00517.11
8.0.250.0000.00817.14
8.0.240.0000.00717.31
8.0.230.0040.00417.27
8.0.220.0000.00717.13
8.0.210.0050.00317.29
8.0.200.0030.00317.29
8.0.190.0060.00317.24
8.0.180.0000.00717.16
8.0.170.0040.00417.11
8.0.160.0070.00017.07
8.0.150.0050.00217.08
8.0.140.0000.00717.05
8.0.130.0030.00313.59
8.0.120.0000.00917.10
8.0.110.0000.00716.98
8.0.100.0000.00817.29
8.0.90.0040.00417.14
8.0.80.0110.00417.05
8.0.70.0050.00317.09
8.0.60.0040.00417.21
8.0.50.0020.00517.00
8.0.30.0030.01517.39
8.0.20.0110.00917.43
8.0.10.0040.00417.17
8.0.00.0110.00716.97
7.4.330.0030.00315.55
7.4.320.0000.00616.72
7.4.300.0000.00716.88
7.4.290.0040.00416.90
7.4.280.0000.01016.90
7.4.270.0000.00716.81
7.4.260.0000.00716.77
7.4.250.0040.00416.84
7.4.240.0030.00316.82
7.4.230.0000.00716.93
7.4.220.0160.01016.98
7.4.210.0100.01116.85
7.4.200.0000.00716.65
7.4.160.0140.00316.71
7.4.150.0150.00417.40
7.4.140.0150.01117.86
7.4.130.0090.01216.76
7.4.120.0110.00716.77
7.3.330.0050.00013.25
7.3.320.0000.00513.44
7.3.310.0000.00716.48
7.3.300.0000.00716.63
7.3.290.0040.00916.60
7.3.280.0090.00716.57
7.3.270.0110.00717.40
7.3.260.0090.00916.82
7.3.250.0070.01416.68
7.3.240.0070.01216.72

preferences:
57.18 ms | 401 KiB | 5 Q