3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = simplexml_load_file("http://affiliate.dovolena.cz/xml_hotels.php?affiliate=1338&key=ba154bbabc8357b3d9d3a16d39472b9bf5815f5e&cid=7240"); $keys = $xml->xpath("hotel"); //hotel jsou jednotlivé položky foreach ($keys as $h) { $name = trim($h->name); $hotId = $h->hotId; $vybavení = $h->properties->property;//v případě, že xml je "hlubší" a má jen 1 hodnotu //tady může být podmínka, kontr. echo ap... foreach($h->properties->property as $p) { //v případě, že xml je "hlubší" a property obsahuje vícehodnot //echo $p->neco; // vypíše všechny hodnoty neco od daného hotelu resp. položky } } ?>

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.20.0060.01518.05
8.4.10.0030.00618.10
8.3.150.0050.00321.09
8.3.140.0130.00616.73
8.3.130.0070.01418.77
8.3.120.0030.00619.28
8.3.110.0040.00420.94
8.3.100.0140.00324.06
8.3.90.0060.00326.77
8.3.80.0030.00617.97
8.3.70.0100.01018.68
8.3.60.0080.00818.55
8.3.50.0080.01122.97
8.3.40.0060.01219.13
8.3.30.0060.01019.42
8.3.20.0040.00420.41
8.3.10.0030.00722.30
8.3.00.0080.00019.43
8.2.270.0110.00717.14
8.2.260.0070.00019.13
8.2.250.0100.00017.11
8.2.240.0050.00319.11
8.2.230.0030.00722.58
8.2.220.0050.00537.54
8.2.210.0070.01126.77
8.2.200.0000.00917.13
8.2.190.0090.00616.73
8.2.180.0070.01417.13
8.2.170.0120.00322.96
8.2.160.0070.00720.60
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00019.77
8.2.110.0060.00322.58
8.2.100.0060.00618.03
8.2.90.0000.00919.36
8.2.80.0030.00517.97
8.2.70.0090.00017.75
8.2.60.0040.00418.18
8.2.50.0000.00918.07
8.2.40.0080.00018.34
8.2.30.0000.00818.40
8.2.20.0050.00317.95
8.2.10.0030.00518.25
8.2.00.0000.00818.02
8.1.310.0080.00816.91
8.1.300.0000.00818.66
8.1.290.0060.00330.84
8.1.280.0130.00325.92
8.1.270.0130.00322.26
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0060.00322.25
8.1.230.0080.00419.38
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0040.00417.48
8.1.180.0060.00318.10
8.1.170.0090.00018.70
8.1.160.0070.00022.19
8.1.150.0030.00519.13
8.1.140.0040.00417.60
8.1.130.0050.00318.05
8.1.120.0040.00417.69
8.1.110.0040.00417.70
8.1.100.0040.00417.58
8.1.90.0040.00417.66
8.1.80.0040.00417.61
8.1.70.0050.00217.63
8.1.60.0060.00317.57
8.1.50.0080.00017.61
8.1.40.0040.00417.73
8.1.30.0000.00817.93
8.1.20.0030.00617.93
8.1.10.0030.00617.80
8.1.00.0000.00817.64
8.0.300.0040.00418.77
8.0.290.0040.00417.13
8.0.280.0000.00718.74
8.0.270.0070.00017.05
8.0.260.0030.00317.41
8.0.250.0000.00717.16
8.0.240.0030.00317.07
8.0.230.0000.00716.99
8.0.220.0040.00417.14
8.0.210.0000.00817.13
8.0.200.0030.00316.98
8.0.190.0040.00417.11
8.0.180.0070.00017.16
8.0.170.0030.00517.12
8.0.160.0040.00417.14
8.0.150.0060.00317.07
8.0.140.0040.00417.00
8.0.130.0000.00713.66
8.0.120.0000.00817.25
8.0.110.0060.00317.16
8.0.100.0000.00816.95
8.0.90.0080.00017.16
8.0.80.0090.00917.12
8.0.70.0080.00017.21
8.0.60.0080.00017.23
8.0.50.0030.00517.08
8.0.30.0070.01317.33
8.0.20.0150.01117.42
8.0.10.0030.00517.28
8.0.00.0090.00817.16
7.4.330.0000.00715.03
7.4.320.0000.00716.67
7.4.300.0030.00316.81
7.4.290.0000.00716.87
7.4.280.0040.00416.89
7.4.270.0030.00316.80
7.4.260.0090.00016.93
7.4.250.0000.00816.85
7.4.240.0060.00216.85
7.4.230.0000.00716.89
7.4.220.0100.01316.86
7.4.210.0110.01116.86
7.4.200.0040.00416.79
7.4.160.0090.00917.10
7.4.150.0090.01017.40
7.4.140.0130.01017.86
7.4.130.0080.01116.77
7.4.120.0120.01016.76
7.4.110.0060.01316.80
7.4.100.0110.00716.73
7.4.90.0150.00416.70
7.4.80.0110.01019.39
7.4.70.0030.01416.71
7.4.60.0060.01216.86
7.4.50.0000.00816.71
7.4.40.0060.01616.84
7.4.30.0130.00316.85
7.4.00.0000.01815.27
7.3.330.0000.00513.36
7.3.320.0000.00613.29
7.3.310.0030.00616.40
7.3.300.0070.00016.43
7.3.290.0060.01216.63
7.3.280.0040.01516.62
7.3.270.0120.00817.40
7.3.260.0110.00816.43
7.3.250.0110.00816.53
7.3.240.0130.01316.53
7.3.230.0110.00816.77
7.3.210.0090.00916.87
7.3.200.0140.00419.39
7.3.190.0080.01216.55
7.3.180.0090.00916.75
7.3.170.0100.00816.76
7.3.160.0140.00316.64
7.2.330.0110.00816.62
7.2.320.0070.01916.89
7.2.310.0070.01016.93
7.2.300.0060.01116.91
7.2.290.0120.00616.70
7.2.60.0120.00617.19
7.2.00.0090.00519.26
7.1.200.0110.00415.76
7.1.100.0000.01218.28
7.1.70.0000.01017.19
7.1.60.0070.01719.57
7.1.50.0100.01417.36
7.1.00.0000.08322.70
7.0.200.0000.00816.83
7.0.140.0000.06322.38
7.0.60.0300.07720.46
7.0.50.0070.08718.24
7.0.40.0030.04720.64
7.0.30.0270.04320.48
7.0.20.0370.07320.55
7.0.10.0130.06020.54
7.0.00.0100.03720.56
5.6.280.0000.07721.64
5.6.210.0030.08720.83
5.6.200.0100.05018.75
5.6.190.0130.07721.05
5.6.180.4100.04721.15
5.6.170.0370.07720.96
5.6.160.0070.04720.88
5.6.150.0100.06018.54
5.6.140.0200.06718.54
5.6.130.0100.04718.55
5.6.120.0170.06021.32
5.6.110.0170.07321.34
5.6.100.0030.07021.41
5.6.90.0070.08721.48
5.6.80.0070.03720.78
5.5.350.4170.04020.75
5.5.340.0100.06718.29
5.5.330.0030.09020.98
5.5.320.0330.08020.70
5.5.310.0230.07720.75
5.5.300.0070.06718.43
5.5.290.0100.07318.26
5.5.280.0130.06021.43
5.5.270.0100.08021.25
5.5.260.0130.06721.31
5.5.250.0100.07721.08
5.5.240.0170.07720.64
5.4.450.0170.06019.59
5.4.440.0870.05719.60
5.4.430.0100.05719.75
5.4.420.0070.05719.75
5.4.410.0000.06319.68
5.4.400.0170.04719.48
5.4.390.0170.05019.43
5.4.380.0030.06319.45
5.4.370.0270.04019.12
5.4.360.0070.06319.13
5.4.350.0130.05719.10
5.4.340.0130.05319.21
5.4.320.0200.04718.72
5.4.310.0170.04718.98
5.4.300.0200.04718.92
5.4.290.0170.04719.12
5.4.280.0030.06718.99
5.4.270.0270.04018.86
5.4.260.0200.04318.93
5.4.250.0200.04719.10
5.4.240.0230.05019.08
5.4.230.0100.05718.71
5.4.220.0130.05318.92
5.4.210.0100.05719.20
5.4.200.0030.05717.03
5.4.190.0170.05018.96
5.4.180.0130.05318.71
5.4.170.0200.05018.74
5.4.160.0170.05019.09
5.4.150.0200.04718.87
5.4.140.0200.04316.79
5.4.130.0130.04716.67
5.4.120.0100.05316.54
5.4.110.0130.05016.67
5.4.100.0130.04716.58
5.4.90.0070.06316.50
5.4.80.0030.06016.50
5.4.70.0170.05716.54
5.4.60.0130.05016.45
5.4.50.0070.05316.56
5.4.40.0030.05716.57
5.4.30.0170.04316.65
5.4.20.0170.05016.52
5.4.10.0070.05316.49
5.4.00.0100.05016.02
5.3.290.0130.06014.89
5.3.280.0070.05714.90
5.3.270.0170.05014.84
5.3.260.0170.05314.80
5.3.250.0100.05314.99
5.3.240.0130.05314.87
5.3.230.0200.04714.89
5.3.220.0100.05314.86
5.3.210.0100.05714.63
5.3.200.0170.05014.82
5.3.190.0100.05314.85
5.3.180.0070.05714.82
5.3.170.0100.05314.89
5.3.160.0130.05714.67
5.3.150.0170.05014.79
5.3.140.0200.04714.84
5.3.130.0300.05714.66
5.3.120.0170.06014.85
5.3.110.0230.04014.85
5.3.100.0030.06014.36
5.3.90.0230.04014.29
5.3.80.0230.03714.12
5.3.70.0130.04714.24
5.3.60.0100.05314.19
5.3.50.0130.05014.22
5.3.40.0170.04714.16
5.3.30.0170.04314.09
5.3.20.0070.05313.93
5.3.10.0130.04313.93
5.3.00.0100.05313.92
5.2.170.0100.04011.31
5.2.160.0000.05011.32
5.2.150.0130.03711.47
5.2.140.0070.04711.47
5.2.130.0230.02711.22
5.2.120.0170.03311.28
5.2.110.0130.03711.39
5.2.100.0130.03711.32
5.2.90.0070.04311.35
5.2.80.0200.03311.29
5.2.70.0070.04711.33
5.2.60.0070.04311.36
5.2.50.0100.04011.23
5.2.40.0100.04011.29
5.2.30.0170.03311.17
5.2.20.0170.03311.23
5.2.10.0100.03711.18
5.2.00.0100.04010.83
5.1.60.0100.03010.31
5.1.50.0030.04010.29
5.1.40.0130.03010.16
5.1.30.0100.03310.64
5.1.20.0070.03710.67
5.1.10.0100.03310.40
5.1.00.0070.03710.29
5.0.50.0100.0238.85
5.0.40.0030.0308.70
5.0.30.0100.0378.46
5.0.20.0170.0208.35
5.0.10.0070.0278.57
5.0.00.0030.0438.47
4.4.90.0030.0235.81
4.4.80.0070.0205.88
4.4.70.0030.0235.88
4.4.60.0030.0235.88
4.4.50.0030.0235.92
4.4.40.0100.0305.85
4.4.30.0070.0205.91
4.4.20.0070.0205.89
4.4.10.0000.0235.96
4.4.00.0030.0375.83
4.3.110.0070.0305.79
4.3.100.0070.0205.80
4.3.90.0000.0235.88
4.3.80.0070.0305.86
4.3.70.0000.0235.88
4.3.60.0000.0235.89
4.3.50.0030.0235.81
4.3.40.0030.0335.78
4.3.30.0030.0204.53
4.3.20.0000.0234.59
4.3.10.0030.0204.48
4.3.00.0000.0237.10

preferences:
28.09 ms | 403 KiB | 5 Q