3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $contentData = '<texts><text_0_1><![CDATA[Conte├║do de texto aleat├│rio. 16:41. <BR>14/11/2013]]></text_0_1></texts><medias><image_0_0><![CDATA[http://teste.croobly.com.br/module-content/images/1476978532.jpg]]></image_0_0></medias>'; $croobly_data = simplexml_load_string("<content>".$contentData."</content>"); $croobly_data = $croobly_data->xpath('medias'); foreach($croobly_data->children() as $media) { print_r($media); //echo $media->asXML(); } //print_r($croobly_data);

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.60.0100.00317.07
7.2.00.0000.01619.84
7.1.200.0030.00615.97
7.1.100.0090.00318.18
7.1.70.0030.00917.24
7.1.60.0100.01419.70
7.1.50.0110.01517.04
7.1.00.0070.07022.63
7.0.200.0030.00616.74
7.0.140.0030.06722.29
7.0.100.0130.07320.13
7.0.90.0030.04320.11
7.0.80.0000.04320.27
7.0.70.0100.05720.10
7.0.60.0130.07320.11
7.0.50.0000.07720.50
7.0.40.0070.08320.26
7.0.30.0100.07720.25
7.0.20.0130.07720.23
7.0.10.0170.04020.21
7.0.00.0100.06720.31
5.6.280.0070.07021.09
5.6.250.0070.04320.88
5.6.240.0100.08020.74
5.6.230.0100.07320.85
5.6.220.0100.07720.84
5.6.210.0070.07720.91
5.6.200.0030.04321.25
5.6.190.0130.05721.11
5.6.180.0030.08721.19
5.6.170.0030.07721.25
5.6.160.0070.05021.32
5.6.150.0130.08321.34
5.6.140.0130.08321.21
5.6.130.0070.04721.18
5.6.120.0030.07321.19
5.6.110.0070.05021.25
5.6.100.0000.08321.20
5.6.90.0000.06021.14
5.6.80.0130.06720.60
5.6.70.0070.08320.60
5.6.60.0130.06720.57
5.6.50.0100.07020.61
5.6.40.0170.06720.65
5.6.30.0130.03720.56
5.6.20.0030.07720.57
5.6.10.0030.08020.67
5.6.00.0070.07720.69
5.5.380.0100.03720.48
5.5.370.0000.08720.63
5.5.360.0000.08320.51
5.5.350.0100.06320.66
5.5.340.0000.05020.94
5.5.330.0170.07320.94
5.5.320.0100.04321.00
5.5.310.0100.07721.12
5.5.300.0070.05720.95
5.5.290.0200.06021.10
5.5.280.0030.08720.91
5.5.270.0030.04020.99
5.5.260.0000.04321.08
5.5.250.0030.07020.84
5.5.240.0030.05720.32
5.5.230.0000.08020.35
5.5.220.0100.07720.46
5.5.210.0100.07720.41
5.5.200.0070.05020.45
5.5.190.0070.07320.38
5.5.180.0100.07320.27
5.5.160.0030.07320.29
5.5.150.0130.04320.44
5.5.140.0100.04020.21
5.5.130.0130.07720.28
5.5.120.0030.04720.30
5.5.110.0100.06320.39
5.5.100.0030.04320.24
5.5.90.0100.07320.30
5.5.80.0030.06320.15
5.5.70.0000.08720.23
5.5.60.0070.07320.31
5.5.50.0070.05020.26
5.5.40.0100.06720.14
5.5.30.0030.04320.27
5.5.20.0170.04020.30
5.5.10.0070.08020.29
5.5.00.0070.07320.31
5.4.450.0030.05019.74
5.4.440.0070.04719.56
5.4.430.0030.04319.58
5.4.420.0070.07719.61
5.4.410.0070.04019.38
5.4.400.0030.07319.28
5.4.390.0070.07719.43
5.4.380.0070.07719.29
5.4.370.0030.06319.24
5.4.360.0170.06719.29
5.4.350.0030.07719.18
5.4.340.0030.07719.19
5.4.320.0130.07018.99
5.4.310.0030.06719.01
5.4.300.0130.06319.09
5.4.290.0070.06019.33
5.4.280.0070.07719.11
5.4.270.0100.03719.08
5.4.260.0070.07019.23
5.4.250.0100.06719.43
5.4.240.0070.05719.24
5.4.230.0130.03318.98
5.4.220.0030.07019.24
5.4.210.0070.07718.98
5.4.200.0130.03719.27
5.4.190.0100.06019.28
5.4.180.0130.05019.39
5.4.170.0070.07719.24
5.4.160.0070.07019.27
5.4.150.0100.07019.27
5.4.140.0100.07016.56
5.4.130.0070.06316.53
5.4.120.0170.06716.56
5.4.110.0000.07316.46
5.4.100.0100.07016.44
5.4.90.0070.07016.63
5.4.80.0070.07716.57
5.4.70.0070.07016.52
5.4.60.0000.04316.41
5.4.50.0070.03316.48
5.4.40.0070.06016.64
5.4.30.0070.07716.66
5.4.20.0000.07716.50
5.4.10.0030.04316.67
5.4.00.0130.06716.06
5.3.290.0100.05714.83
5.3.280.0070.06714.76
5.3.270.0070.04314.72
5.3.260.0070.07714.60
5.3.250.0070.07714.63
5.3.240.0070.07314.71
5.3.230.0070.07714.82
5.3.220.0030.07314.79
5.3.210.0070.04714.76
5.3.200.0130.06314.62
5.3.190.0000.04714.75
5.3.180.0100.07714.69
5.3.170.0030.08014.61
5.3.160.0030.06314.76
5.3.150.0070.06714.73
5.3.140.0100.06714.70
5.3.130.0030.06014.56
5.3.120.0100.06714.69
5.3.110.0100.08014.67
5.3.100.0070.07314.15
5.3.90.0070.08014.21
5.3.80.0130.05314.21
5.3.70.0070.04313.98
5.3.60.0130.06713.96
5.3.50.0070.07014.07
5.3.40.0200.04014.07
5.3.30.0000.04313.91
5.3.20.0170.06013.84
5.3.10.0070.06713.86
5.3.00.0030.06713.77
5.2.170.0070.06011.34
5.2.160.0030.03311.26
5.2.150.0100.03311.16
5.2.140.0100.05711.18
5.2.130.0100.05711.21
5.2.120.0030.06311.12
5.2.110.0070.05711.15
5.2.100.0100.03011.29
5.2.90.0000.03311.29
5.2.80.0070.06311.21
5.2.70.0000.05711.35
5.2.60.0030.06711.17
5.2.50.0100.05711.14
5.2.40.0030.05311.26
5.2.30.0070.05711.13
5.2.20.0070.04311.02
5.2.10.0070.05711.04
5.2.00.0030.03710.90
5.1.60.0000.03310.24
5.1.50.0070.03710.20
5.1.40.0100.04710.19
5.1.30.0000.05310.59
5.1.20.0070.03710.46
5.1.10.0070.04010.29
5.1.00.0070.0509.90
5.0.50.0070.0279.33
5.0.40.0070.0409.33
5.0.30.0000.0679.33
5.0.20.0030.0309.33
5.0.10.0070.0209.33
5.0.00.0070.0639.33
4.4.90.0100.0279.33
4.4.80.0000.0179.33
4.4.70.0030.0379.33
4.4.60.0030.0179.33
4.4.50.0030.0239.33
4.4.40.0000.0579.33
4.4.30.0000.0279.33
4.4.20.0070.0339.33
4.4.10.0000.0379.33
4.4.00.0000.0539.33
4.3.110.0030.0179.33
4.3.100.0000.0239.33
4.3.90.0030.0339.33
4.3.80.0000.0439.33
4.3.70.0000.0339.33
4.3.60.0070.0309.33
4.3.50.0000.0279.33
4.3.40.0030.0279.33
4.3.30.0000.0239.33
4.3.20.0000.0279.33
4.3.10.0030.0139.33
4.3.00.0000.0379.33