3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0"?> <xdm:Device xmlns:xdm="http://www.hp.com/schemas/imaging/con/xdm/1.1/" xmlns:dd="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/" xmlns:bsi="http://www.hp.com/schemas/imaging/con/bsi/2003/08/21" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:count="http://www.hp.com/schemas/imaging/con/counter/2006/01/13" xmlns:media="http://www.hp.com/schemas/imaging/con/media/2006/01/13/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tt="http://www.hp.com/schemas/imaging/con/capabilities/1.1/" xmlns:pwg="http://www.hp.com/schemas/imaging/con/pwg/sm/1.0/"> <xdm:Information> <xdm:Component id="system" componentType="system"> <dd:MakeAndModel>Samsung LaserJet ML220</dd:MakeAndModel> <dd:Description>Blackand while printer</dd:Description> <dd:ProductNumber>XB3zzz</dd:ProductNumber> <dd:Manufacturer> <dd:Name>Samsung</dd:Name> </dd:Manufacturer> </xdm:Component> </xdm:Information> </xdm:Device>'; // Defining my own ways of referring to the namespaces, regardless of prefix used define('XMLNS_HP_XDM_1_1', 'http://www.hp.com/schemas/imaging/con/xdm/1.1/'); define('XMLNS_HP_DICT_1_0', 'http://www.hp.com/schemas/imaging/con/dictionaries/1.0/'); // Load the XML in the normal way $sx = simplexml_load_string($xml); // Switch to the first namespace, and look at the first Component $component = $sx->children(XMLNS_HP_XDM_1_1)->Information->Component; $component_id = (string)$component->attributes(null)->id; // Switch to the second namespace to find the MakeAndModel $make_and_model = (string)$component->children(XMLNS_HP_DICT_1_0)->MakeAndModel; echo "$component_id : $make_and_model";

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.5.10.0090.00720.38
8.5.00.0140.00820.11
8.4.150.0020.00014.05
8.4.140.0110.00917.57
8.4.130.0110.00917.92
8.4.120.0080.00822.73
8.4.110.0100.01019.24
8.4.100.0120.01018.11
8.4.90.0130.00718.95
8.4.80.0090.01119.88
8.4.70.0080.00818.21
8.4.60.0050.00519.14
8.4.50.0110.01019.65
8.4.40.0110.01117.91
8.4.30.0130.00617.84
8.4.20.0120.00917.90
8.4.10.0060.00317.86
8.3.280.0130.00818.62
8.3.270.0150.00416.61
8.3.260.0110.00817.00
8.3.250.0110.00819.11
8.3.240.0110.00616.72
8.3.230.0120.00817.02
8.3.220.0120.00717.29
8.3.210.0060.00216.79
8.3.200.0120.00916.64
8.3.190.0150.00517.22
8.3.180.0050.00316.68
8.3.170.0040.00719.30
8.3.160.0070.01118.50
8.3.150.0140.00419.20
8.3.140.0120.00620.97
8.3.130.0030.00618.54
8.3.120.0050.00520.83
8.3.110.0060.00320.94
8.3.100.0040.00417.03
8.3.90.0050.00326.77
8.3.80.0090.00318.55
8.3.70.0150.00817.13
8.3.60.0120.00916.75
8.3.50.0090.01221.21
8.3.40.0090.00618.82
8.3.30.0000.01419.26
8.3.20.0050.00322.21
8.3.10.0000.00823.74
8.3.00.0030.00719.50
8.2.290.0080.01120.71
8.2.280.0040.00520.21
8.2.270.0030.01617.61
8.2.260.0040.00416.94
8.2.250.0100.00716.71
8.2.240.0000.01017.32
8.2.230.0080.00022.58
8.2.220.0080.00324.06
8.2.210.0080.00026.77
8.2.200.0060.00316.88
8.2.190.0090.00616.88
8.2.180.0110.00716.75
8.2.170.0110.00622.96
8.2.160.0140.00020.59
8.2.150.0030.00724.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00321.25
8.2.110.0060.00322.63
8.2.100.0110.00017.97
8.2.90.0000.01018.12
8.2.80.0060.00317.97
8.2.70.0030.00617.75
8.2.60.0030.00618.29
8.2.50.0000.00818.07
8.2.40.0030.00520.32
8.2.30.0060.00318.32
8.2.20.0070.00017.93
8.2.10.0000.00718.28
8.2.00.0070.00218.30
8.1.330.0060.00222.12
8.1.320.0050.00816.62
8.1.310.0040.01116.97
8.1.300.0000.01018.13
8.1.290.0000.01030.84
8.1.280.0070.01325.92
8.1.270.0060.00320.57
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0100.00722.75
8.1.230.0040.00721.28
8.1.220.0050.00318.16
8.1.210.0000.00819.29
8.1.200.0080.00017.72
8.1.190.0080.00017.60
8.1.180.0050.00318.10
8.1.170.0060.00318.91
8.1.160.0040.00419.04
8.1.150.0040.00719.11
8.1.140.0030.00517.71
8.1.130.0070.00017.97
8.1.120.0000.00817.79
8.1.110.0060.00317.77
8.1.100.0040.00417.79
8.1.90.0040.00417.74
8.1.80.0030.00517.60
8.1.70.0000.00817.51
8.1.60.0000.00817.89
8.1.50.0030.00517.78
8.1.40.0040.00417.66
8.1.30.0000.00817.77
8.1.20.0050.00317.76
8.1.10.0040.00417.64
8.1.00.0000.00817.74
8.0.300.0000.00820.15
8.0.290.0050.00317.00
8.0.280.0070.00018.70
8.0.270.0040.00416.96
8.0.260.0000.00717.54
8.0.250.0040.00417.32
8.0.240.0050.00317.25
8.0.230.0000.00717.13
8.0.220.0070.00017.07
8.0.210.0000.00717.23
8.0.200.0030.00317.25
8.0.190.0040.00417.24
8.0.180.0000.00717.20
8.0.170.0040.00417.07
8.0.160.0000.00817.15
8.0.150.0000.00817.16
8.0.140.0030.00417.14
8.0.130.0060.00013.64
8.0.120.0040.00417.08
8.0.110.0040.00417.15
8.0.100.0040.00417.01
8.0.90.0000.00717.07
8.0.80.0090.00617.04
8.0.70.0040.00416.93
8.0.60.0000.00717.18
8.0.50.0000.00817.13
8.0.30.0160.00517.29
8.0.20.0060.01217.53
8.0.10.0000.00817.28
8.0.00.0100.00817.08
7.4.330.0000.00615.27
7.4.320.0000.00616.85
7.4.300.0050.00216.89
7.4.290.0050.00216.72
7.4.280.0080.00016.89
7.4.270.0070.00016.92
7.4.260.0080.00016.94
7.4.250.0050.00216.66
7.4.240.0040.00416.85
7.4.230.0030.00316.84
7.4.220.0060.01216.89
7.4.210.0130.00316.72
7.4.200.0030.00316.65
7.4.160.0070.01016.81
7.4.150.0090.00917.40
7.4.140.0110.01017.86
7.4.130.0070.01116.73
7.4.120.0090.01016.72
7.4.110.0040.01416.78
7.4.100.0130.01016.66
7.4.90.0140.00316.63
7.4.80.0090.00919.39
7.4.70.0100.01016.66
7.4.60.0070.01016.61
7.4.50.0050.00316.64
7.4.40.0030.01416.90
7.4.30.0060.01816.79
7.4.00.0070.00314.97
7.3.330.0050.00213.44
7.3.320.0000.00513.43
7.3.310.0020.00516.50
7.3.300.0060.00016.43
7.3.290.0050.00816.56
7.3.280.0130.00516.58
7.3.270.0070.01017.40
7.3.260.0130.01016.69
7.3.250.0090.01116.62
7.3.240.0110.01116.64
7.3.230.0060.01216.66
7.3.210.0140.00316.70
7.3.200.0100.01419.39
7.3.190.0130.00316.65
7.3.180.0360.01616.83
7.3.170.0110.01116.74
7.3.160.0060.01216.67
7.3.10.0050.01016.44
7.3.00.0070.01016.50
7.2.330.0180.00017.05
7.2.320.0090.01216.61
7.2.310.0030.01216.93
7.2.300.0140.00416.63
7.2.290.0070.01116.75
7.2.130.0120.00616.63
7.2.120.0140.00616.90
7.2.110.0040.00716.87
7.2.100.0060.00616.93
7.2.90.0110.00816.72
7.2.80.0110.00416.48
7.2.70.0110.01116.80
7.2.60.0140.00316.65
7.2.50.0030.00916.75
7.2.40.0080.00417.00
7.2.30.0100.00316.93
7.2.20.0000.01016.52
7.2.10.0030.01217.00
7.2.00.0080.00416.72
7.1.250.0040.00715.85
7.1.200.0000.01115.68
7.1.70.0080.00417.29
7.1.60.0070.00317.11
7.1.50.0060.01316.84
7.1.00.0070.07322.63
7.0.200.0050.00316.92
7.0.100.0270.07320.00
7.0.90.0570.07319.96
7.0.80.0470.08720.18
7.0.70.0430.07020.00
7.0.60.0430.07720.02
7.0.50.0500.07320.43
7.0.40.0030.08720.10
7.0.30.0070.08020.20
7.0.20.0100.08020.07
7.0.10.0070.07720.19
7.0.00.0070.09020.18
5.6.280.0100.06721.03
5.6.250.0070.08320.59
5.6.240.0170.06320.64
5.6.230.0030.07020.73
5.6.220.0070.07020.72
5.6.210.0100.06320.68
5.6.200.0070.04321.26
5.6.190.0100.04721.18
5.6.180.0230.06321.16
5.6.170.0230.07021.08
5.6.160.0100.08321.25
5.6.150.0130.07321.14
5.6.140.0170.06721.11
5.6.130.0170.04320.95
5.6.120.0170.08021.11
5.6.110.0230.07021.25
5.6.100.0130.07021.11
5.6.90.0130.07021.06
5.6.80.0130.04020.41
5.6.70.0030.08320.64
5.6.60.0070.08320.54
5.6.50.0000.07720.67
5.6.40.0030.04320.54
5.6.30.0070.03720.61
5.6.20.0030.03720.61
5.6.10.0070.03720.42
5.6.00.0070.04720.34
5.5.380.0070.04720.61
5.5.370.0130.06320.64
5.5.360.0170.07020.51
5.5.350.0100.08020.62
5.5.340.0130.07720.93
5.5.330.0200.05021.03
5.5.320.0070.08320.97
5.5.310.0100.07720.93
5.5.300.0030.08021.05
5.5.290.0070.08320.83
5.5.280.0230.07321.04
5.5.270.0030.05721.04
5.5.260.0070.08021.03
5.5.250.0100.07320.88
5.5.240.0130.07720.29
5.5.230.0200.06720.14
5.5.220.0130.06720.27
5.5.210.0170.05020.21
5.5.200.0030.05320.41
5.5.190.0000.04320.35
5.5.180.0070.03720.39
5.5.160.0100.03320.22
5.5.150.0000.04020.25
5.5.140.0000.04020.32
5.5.130.0070.07720.30
5.5.120.0100.06720.14
5.5.110.0070.03320.39
5.5.100.0030.06320.08
5.5.90.0000.04320.11
5.5.80.0000.05320.07
5.5.70.0030.05320.14
5.5.60.0070.03720.09
5.5.50.0030.07720.12
5.5.40.0130.03020.16
5.5.30.0070.03720.13
5.5.20.0030.04020.23
5.5.10.0030.04020.18
5.5.00.0070.03720.10
5.4.450.0070.08319.52
5.4.440.0070.05319.52
5.4.430.0130.06719.48
5.4.420.0030.07319.71
5.4.410.0070.07319.23
5.4.400.0030.08019.20
5.4.390.0100.07019.19
5.4.380.0100.06319.13
5.4.370.0030.04018.93
5.4.360.0170.04719.20
5.4.350.0030.04019.14
5.4.340.0000.04319.23
5.4.320.0000.05319.19
5.4.310.0000.04319.24
5.4.300.0100.03019.04
5.4.290.0030.03719.21
5.4.280.0000.05019.21
5.4.270.0000.04319.38
5.4.260.0030.03719.04
5.4.250.0000.04019.09
5.4.240.0000.04318.90
5.4.230.0030.06719.21
5.4.220.0000.04319.04
5.4.210.0070.04019.13
5.4.200.0070.06019.13
5.4.190.0070.04019.03
5.4.180.0030.03719.12
5.4.170.0100.03319.03
5.4.160.0070.03719.17
5.4.150.0000.05319.04
5.4.140.0030.04016.49
5.4.130.0030.03716.37
5.4.120.0000.04716.50
5.4.110.0000.04016.37
5.4.100.0070.05016.30
5.4.90.0000.03716.39
5.4.80.0030.03716.43
5.4.70.0070.03316.45
5.4.60.0070.03316.43
5.4.50.0000.05316.48
5.4.40.0030.05016.52
5.4.30.0070.03016.34
5.4.20.0000.04016.46
5.4.10.0170.05716.53
5.4.00.0170.03015.79
5.3.290.0030.03714.75
5.3.280.0030.03714.68
5.3.270.0070.03314.55
5.3.260.0000.04314.55
5.3.250.0030.03714.55
5.3.240.0070.03314.70
5.3.230.0130.03714.75
5.3.220.0000.04714.70
5.3.210.0000.04014.68
5.3.200.0030.05714.69
5.3.190.0030.03714.50
5.3.180.0030.04014.52
5.3.170.0000.06714.63
5.3.160.0000.03714.64
5.3.150.0100.05014.73
5.3.140.0070.05314.71
5.3.130.0000.04014.64
5.3.120.0030.04014.63
5.3.110.0070.06014.49
5.3.100.0100.07014.07
5.3.90.0030.08014.19
5.3.80.0030.07714.10
5.3.70.0100.07714.07
5.3.60.0070.06714.10
5.3.50.0030.04714.07
5.3.40.0070.06014.07
5.3.30.0100.07014.07
5.3.20.0130.07014.07
5.3.10.0170.06014.07
5.3.00.0200.06014.07
5.2.170.0030.06314.07
5.2.160.0030.06314.07
5.2.150.0030.06014.07
5.2.140.0070.03314.07
5.2.130.0100.06014.07
5.2.120.0030.03714.07
5.2.110.0100.05714.07
5.2.100.0030.05714.07
5.2.90.0070.05714.07
5.2.80.0030.06014.07
5.2.70.0030.03714.07
5.2.60.0000.06714.07
5.2.50.0000.06314.07
5.2.40.0030.06314.07
5.2.30.0000.06314.07
5.2.20.0170.05314.07
5.2.10.0100.05714.07
5.2.00.0070.05314.07
5.1.60.0030.05314.07
5.1.50.0100.05014.07
5.1.40.0000.05314.07
5.1.30.0070.05714.07
5.1.20.0030.04014.07
5.1.10.0070.05314.07
5.1.00.0100.05014.07
5.0.50.0030.04314.07
5.0.40.0030.04014.07
5.0.30.0070.06014.07
5.0.20.0070.04014.07
5.0.10.0030.04314.07
5.0.00.0030.06714.07
4.4.90.0030.03714.07
4.4.80.0030.03714.07
4.4.70.0000.04014.07
4.4.60.0030.03314.07
4.4.50.0030.03014.07
4.4.40.0000.05314.07
4.4.30.0000.03714.07
4.4.20.0030.03314.07
4.4.10.0070.03314.07
4.4.00.0030.05014.07
4.3.110.0100.02314.07
4.3.100.0030.03314.07
4.3.90.0000.04014.07
4.3.80.0070.04314.07
4.3.70.0030.03014.07
4.3.60.0000.03714.07
4.3.50.0000.03314.07
4.3.40.0030.05014.07
4.3.30.0030.03314.07
4.3.20.0030.03314.07
4.3.10.0070.02014.07
4.3.00.0000.03714.07

preferences:
200.2 ms | 403 KiB | 5 Q