3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filename = '<joku><NO_MARK LG="FI">9.<fi>Termos</fi></NO_MARK> <TI_MARK LG="ES">Budjetti<es>Hola</es></TI_MARK></joku>'; $xml_file = simplexml_load_string($filename); parseXML($xml_file->children()); function parseXML($xml_children) { foreach ($xml_children as $child){ $lg = $child["LG"];//LG-attribuutti if($lg == '' || $lg == 'FI') { //jos on annettu LG ja se on joku muu kuin FI, sivuutetaan $child."<br>"; if ($child->count() > 0) { parseXML($child->children()); } } } }

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.0160.00318.68
8.3.50.0100.00922.24
8.3.40.0090.01219.04
8.3.30.0110.00720.33
8.3.20.0090.00018.94
8.3.10.0000.00821.34
8.3.00.0050.00319.93
8.2.180.0120.00916.88
8.2.170.0110.00419.04
8.2.160.0080.00622.96
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0070.00318.34
8.2.110.0090.00021.18
8.2.100.0090.00320.01
8.2.90.0000.00919.44
8.2.80.0040.00417.97
8.2.70.0040.00417.88
8.2.60.0030.00518.18
8.2.50.0040.00418.10
8.2.40.0000.00918.59
8.2.30.0040.00419.63
8.2.20.0070.00017.82
8.2.10.0000.00817.83
8.2.00.0030.00617.85
8.1.280.0060.01225.92
8.1.270.0040.00423.99
8.1.260.0140.00426.35
8.1.250.0030.01028.09
8.1.240.0070.00321.59
8.1.230.0070.00418.14
8.1.220.0060.00318.01
8.1.210.0000.00918.77
8.1.200.0090.00017.50
8.1.190.0050.00317.48
8.1.180.0040.00418.10
8.1.170.0040.00418.84
8.1.160.0000.00719.10
8.1.150.0000.00718.89
8.1.140.0000.00717.61
8.1.130.0000.00718.04
8.1.120.0040.00417.57
8.1.110.0040.00417.61
8.1.100.0040.00417.71
8.1.90.0000.00717.69
8.1.80.0080.00017.52
8.1.70.0040.00417.67
8.1.60.0030.00617.73
8.1.50.0030.00517.55
8.1.40.0030.00617.81
8.1.30.0030.00617.77
8.1.20.0030.00517.93
8.1.10.0040.00417.73
8.1.00.0030.00717.63
8.0.300.0000.00718.77
8.0.290.0100.00016.88
8.0.280.0030.00318.63
8.0.270.0040.00417.43
8.0.260.0000.00717.02
8.0.250.0030.00617.18
8.0.240.0050.00317.13
8.0.230.0070.00017.14
8.0.220.0030.00316.97
8.0.210.0000.00917.16
8.0.200.0060.00017.16
8.0.190.0040.00417.20
8.0.180.0000.00817.02
8.0.170.0000.00817.14
8.0.160.0040.00417.11
8.0.150.0080.00017.02
8.0.140.0000.00717.15
8.0.130.0030.00713.61
8.0.120.0050.00316.95
8.0.110.0040.00417.06
8.0.100.0000.00717.10
8.0.90.0000.00717.11
8.0.80.0090.01317.02
8.0.70.0040.00416.96
8.0.60.0030.00517.07
8.0.50.0040.00417.14
8.0.30.0110.00917.31
8.0.20.0110.00817.43
8.0.10.0000.00717.08
8.0.00.0110.01017.05
7.4.330.0030.00317.04
7.4.320.0030.00316.72
7.4.300.0030.00616.90
7.4.290.0030.00316.71
7.4.280.0000.00716.77
7.4.270.0030.00316.71
7.4.260.0030.00313.48
7.4.250.0000.00816.79
7.4.240.0040.00416.79
7.4.230.0070.00016.69
7.4.220.0100.01716.79
7.4.210.0040.01116.75
7.4.200.0030.00316.89
7.4.190.0030.00316.83
7.4.160.0090.00916.73
7.4.150.0100.00717.40
7.4.140.0120.00717.86
7.4.130.0060.01316.68
7.4.120.0050.01216.61
7.4.110.0140.00316.70
7.4.100.0060.01216.77
7.4.90.0130.00616.58
7.4.80.0080.01119.39
7.4.70.0100.00616.80
7.4.60.0120.01216.77
7.4.50.0090.00016.68
7.4.40.0070.01122.77
7.4.30.0090.01316.45
7.4.00.0030.01315.19
7.3.330.0000.00613.49
7.3.320.0000.00613.41
7.3.310.0000.00816.62
7.3.300.0000.00616.45
7.3.290.0090.00916.55
7.3.280.0080.00916.49
7.3.270.0100.00717.40
7.3.260.0120.00918.24
7.3.250.0110.01216.72
7.3.240.0120.00616.81
7.3.230.0100.00716.54
7.3.210.0110.00916.85
7.3.200.0120.00619.39
7.3.190.0060.01216.90
7.3.180.0000.01516.64
7.3.170.0050.01116.59
7.3.160.0150.00416.64
7.3.120.0090.00915.04
7.3.10.0070.00716.77
7.3.00.0050.00816.68
7.2.330.0070.01016.81
7.2.320.0110.00717.02
7.2.310.0110.00816.69
7.2.300.0070.01016.86
7.2.290.0000.01817.05
7.2.130.0100.00616.84
7.2.120.0070.01017.20
7.2.110.0110.00716.91
7.2.100.0190.00017.11
7.2.90.0100.00817.02
7.2.80.0060.00817.02
7.2.70.0070.01016.99
7.2.60.0050.00817.17
7.2.50.0060.00817.12
7.2.40.0090.00517.15
7.2.30.0020.01216.93
7.2.20.0060.00517.14
7.2.10.0070.00717.08
7.2.00.0050.01117.73
7.1.250.0090.00715.74
7.1.200.0070.00716.14
7.1.100.0070.00718.46
7.1.70.0030.00617.31
7.1.60.0000.01117.03
7.1.50.0040.00717.16
7.1.40.0080.00416.62
7.1.30.0060.00616.96
7.1.20.0000.01116.79
7.1.10.0040.00716.84
7.1.00.0000.01216.79
7.0.200.0040.00416.60
7.0.190.0080.00016.60
7.0.180.0000.00816.34
7.0.170.0000.00816.32
7.0.160.0030.00516.58
7.0.150.0000.00816.50
7.0.140.0070.00316.31
7.0.130.0030.00716.93
7.0.120.0030.00516.71
7.0.110.0030.00516.46
7.0.100.0040.00416.64
7.0.90.0030.00516.47
7.0.80.0030.01016.48
7.0.70.0030.00616.63
7.0.60.0030.00516.21
7.0.50.0000.00716.64
7.0.40.0030.00515.39
7.0.30.0000.00715.39
7.0.20.0030.00615.39
7.0.10.0050.00515.39
7.0.00.0000.00915.39
5.6.300.0030.04020.86
5.6.290.0030.05020.86
5.6.280.0070.03720.98
5.6.270.0030.04321.02
5.6.260.0100.03421.11
5.6.250.0070.03920.97
5.6.240.0030.05520.93
5.6.230.0000.06521.20
5.6.220.0030.05220.91
5.6.210.0000.04521.05
5.6.200.0030.04421.07
5.6.190.0030.04021.03
5.6.180.0100.03921.03
5.6.170.0030.06020.93
5.6.160.0030.04721.14
5.6.150.0000.04520.92
5.6.140.0030.04721.02
5.6.130.0030.04220.92
5.6.120.0130.03020.80
5.6.110.0060.04820.91
5.6.100.0000.05820.98
5.6.90.0070.03920.95
5.6.80.0000.04920.41
5.6.70.0000.05220.44
5.6.60.0030.04820.42
5.6.50.0250.03720.41
5.6.40.0030.04920.33
5.6.30.0030.04220.45
5.6.20.0060.04420.16
5.6.10.0070.05820.35
5.6.00.0060.04120.37
5.5.380.0030.05917.87
5.5.370.0000.06917.67
5.5.360.0030.04317.53
5.5.350.0070.03617.65
5.5.340.0000.04118.26
5.5.330.0100.05517.88
5.5.320.0100.03417.93
5.5.310.0170.04718.07
5.5.300.0000.04618.21
5.5.290.0030.04018.07
5.5.280.0070.04018.13
5.5.270.0070.04418.16
5.5.260.0070.03618.22
5.5.250.0030.05017.97
5.5.240.0060.04017.59
5.5.230.0070.04417.31
5.5.220.0030.04317.30
5.5.210.0030.04017.25
5.5.200.0070.03617.57
5.5.190.0030.03817.21
5.5.180.0070.03717.62
5.5.160.0100.04217.54
5.5.150.0000.04517.25
5.5.140.0070.03617.57
5.5.130.0000.04417.26
5.5.120.0070.07417.22
5.5.110.0030.05217.25
5.5.100.0100.03317.39
5.5.90.0030.04317.32
5.5.80.0060.05717.47
5.5.70.0030.04217.15
5.5.60.0090.05517.43
5.5.50.0040.04217.13
5.5.40.0000.04117.31
5.5.30.0030.06517.31
5.5.20.0030.06917.40
5.5.10.0030.03917.07
5.5.00.0130.03317.39
5.4.450.0030.04419.49
5.4.440.0000.07019.36
5.4.430.0040.04119.44
5.4.420.0060.03519.59
5.4.410.0060.03819.38
5.4.400.0070.03319.17
5.4.390.0000.04619.14
5.4.380.0030.04419.05
5.4.370.0000.04619.14
5.4.360.0310.03119.03
5.4.350.0030.04419.30
5.4.340.0090.03519.14
5.4.320.0130.03319.13
5.4.310.0070.03719.05
5.4.300.0030.03619.08
5.4.290.0040.04219.20
5.4.280.0120.04419.27
5.4.270.0000.06119.02
5.4.260.0030.04119.03
5.4.250.0070.03619.25
5.4.240.0060.05119.01
5.4.230.0070.03719.29
5.4.220.0030.04219.26
5.4.210.0000.05719.02
5.4.200.0060.05419.20
5.4.190.0030.04319.03
5.4.180.0070.03419.24
5.4.170.0030.05919.11
5.4.160.0060.03419.18
5.4.150.0070.04519.13
5.4.140.0180.05216.94
5.4.130.0000.05016.80
5.4.120.0060.03216.84
5.4.110.0070.03716.61
5.4.100.0030.03516.67
5.4.90.0000.03816.82
5.4.80.0000.04016.81
5.4.70.0000.05016.80
5.4.60.0130.04416.96
5.4.50.0000.03916.75
5.4.40.0030.07116.82
5.4.30.0060.03216.98
5.4.20.0030.03716.92
5.4.10.0000.04816.73
5.4.00.0000.04216.20
5.3.290.0000.04415.39
5.3.280.0030.03714.97
5.3.270.0030.03814.74
5.3.260.0000.07414.88
5.3.250.0060.07214.96
5.3.240.0070.06414.96
5.3.230.0000.04414.78
5.3.220.0060.05814.74
5.3.210.0030.04314.77
5.3.200.0040.04014.94
5.3.190.0160.05114.75
5.3.180.0030.06714.90
5.3.170.0030.07614.74
5.3.160.0070.04814.89
5.3.150.0070.03314.91
5.3.140.0060.06414.74
5.3.130.0030.03814.89
5.3.120.0000.04314.74
5.3.110.0120.04614.74
5.3.100.0030.05514.74
5.3.90.0040.05314.74
5.3.80.0030.04114.74
5.3.70.0030.05614.74
5.3.60.0030.03414.74
5.3.50.0060.03414.74
5.3.40.0030.05514.74
5.3.30.0030.06014.74
5.3.20.0030.03614.74
5.3.10.0000.04714.74
5.3.00.0030.06714.74
5.2.170.0000.03114.74
5.2.160.0070.02414.74
5.2.150.0030.05014.74
5.2.140.0130.05414.74
5.2.130.0100.03014.74
5.2.120.0000.03114.74
5.2.110.0060.02414.74
5.2.100.0030.05914.74
5.2.90.0000.02914.74
5.2.80.0100.02314.74
5.2.70.0030.02814.74
5.2.60.0000.05814.74
5.2.50.0030.03014.74
5.2.40.0030.02914.74
5.2.30.0000.03214.74
5.2.20.0040.02914.74
5.2.10.0070.02914.74
5.2.00.0030.02814.74
5.1.60.0030.05014.74
5.1.50.0000.03114.74
5.1.40.0030.02214.74
5.1.30.0040.03514.74
5.1.20.0070.04314.74
5.1.10.0060.02214.74
5.1.00.0000.02914.74
5.0.50.0000.02214.74
5.0.40.0030.01914.74
5.0.30.0070.02714.74
5.0.20.0000.02714.74
5.0.10.0000.02814.74
5.0.00.0000.03614.74
4.4.90.0000.01614.74
4.4.80.0030.03014.74
4.4.70.0000.01714.74
4.4.60.0030.01514.74
4.4.50.0000.01714.74
4.4.40.0030.02414.74
4.4.30.0000.03014.74
4.4.20.0000.02014.74
4.4.10.0000.02314.74
4.4.00.0030.02614.74
4.3.110.0030.01314.74
4.3.100.0000.02614.74
4.3.90.0000.01814.74
4.3.80.0000.02514.74
4.3.70.0000.01614.74
4.3.60.0000.01614.74
4.3.50.0060.01914.74
4.3.40.0060.01914.74
4.3.30.0030.01714.74
4.3.20.0130.01314.74
4.3.10.0140.01014.74
4.3.00.0000.01814.74

preferences:
70.43 ms | 401 KiB | 5 Q