3v4l.org

run code in 300+ PHP versions simultaneously
<?php $y = '<extData> <Airpoints> <APCurrency>NZD</APCurrency> </Airpoints> <orderData> <order><orderId>3</orderId><orderTime>2014-10-23T02:51:48</orderTime><item><sku>130</sku><title>Chicken Sandwich</title><quantity>1</quantity><price>10.00</price><amount>10.00</amount></item><subtotal>10.00</subtotal><fee>0.00</fee><total>10.00</total><orderStatus>COMP</orderStatus></order><schema_version>2</schema_version> </orderData> </extData>>2014-A'; $x = '<extData> <orderData> <order><orderId>6</orderId><orderTime>2014-10-23T02:53:38</orderTime><item><sku>138</sku><title>Beef Pie</title><quantity>1</quantity><price>8.00</price><amount>8.00</amount></item><item><sku>138</sku><title>Beef Pie</title><quantity>-1</quantity><price>8.00</price><amount>-8.00</amount></item><subtotal>0.00</subtotal><fee>0.00</fee><total>0.00</total><orderStatus>COMP</orderStatus></order><schema_version>2</schema_version> </orderData> </extData><price>±'; if(preg_match('/<extData>(.*)<\/extData>/s',$y, $matches)) { $xml = new SimpleXMLElement($matches[0]); $code = $xml->xpath('//APCurrency'); print_r($code); while(list( , $node) = each($code)) { echo '/a/b/c: ',$node,"\n"; } } //var_dump($matches);

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.70.0090.00618.93
8.3.60.0120.00319.18
8.3.50.0180.00521.41
8.3.40.0040.01119.42
8.3.30.0040.01119.64
8.3.20.0050.00220.59
8.3.10.0040.00423.77
8.3.00.0040.00419.85
8.2.180.0060.01217.13
8.2.170.0070.01122.96
8.2.160.0070.00720.95
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0030.00720.76
8.2.110.0030.00622.49
8.2.100.0030.01020.07
8.2.90.0000.00919.55
8.2.80.0040.00418.00
8.2.70.0000.00918.25
8.2.60.0030.00518.30
8.2.50.0080.00018.09
8.2.40.0030.00620.13
8.2.30.0080.00018.56
8.2.20.0080.00018.36
8.2.10.0000.00718.60
8.2.00.0030.00518.28
8.1.280.0110.00725.92
8.1.270.0050.00322.43
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0000.00924.22
8.1.230.0070.00419.39
8.1.220.0040.00418.01
8.1.210.0040.00418.77
8.1.200.0000.00917.48
8.1.190.0000.00917.60
8.1.180.0040.00418.10
8.1.170.0030.00618.96
8.1.160.0000.00822.32
8.1.150.0030.00619.13
8.1.140.0000.00717.84
8.1.130.0030.00318.18
8.1.120.0050.00217.91
8.1.110.0040.00417.99
8.1.100.0000.00717.85
8.1.90.0000.00717.93
8.1.80.0000.00817.96
8.1.70.0000.00717.89
8.1.60.0090.00018.01
8.1.50.0000.00817.92
8.1.40.0000.00817.82
8.1.30.0040.00418.22
8.1.20.0000.00818.21
8.1.10.0040.00418.05
8.1.00.0000.00918.00
8.0.300.0000.00818.77
8.0.290.0030.00517.13
8.0.280.0030.00318.77
8.0.270.0000.00717.53
8.0.260.0000.00717.53
8.0.250.0040.00417.53
8.0.240.0000.00717.50
8.0.230.0000.00717.38
8.0.220.0040.00417.36
8.0.210.0050.00217.35
8.0.200.0040.00417.51
8.0.190.0000.00817.48
8.0.180.0080.00017.42
8.0.170.0040.00417.37
8.0.160.0000.00717.47
8.0.150.0050.00217.41
8.0.140.0070.00017.24
8.0.130.0000.00613.92
8.0.120.0040.00417.31
8.0.110.0000.00817.49
8.0.100.0000.00817.25
8.0.90.0000.00717.32
8.0.80.0090.00617.42
8.0.70.0040.00417.24
8.0.60.0000.00717.36
8.0.50.0000.00717.41
8.0.30.0130.01017.78
8.0.20.0130.00717.61
8.0.10.0000.00717.51
8.0.00.0080.01017.27
7.4.330.0030.00315.02
7.4.320.0030.00317.06
7.4.300.0070.00016.83
7.4.290.0070.00017.14
7.4.280.0080.00417.11
7.4.270.0040.00417.07
7.4.260.0040.00717.09
7.4.250.0000.00816.96
7.4.240.0050.00217.11
7.4.230.0070.00017.06
7.4.220.0150.00317.06
7.4.210.0120.00917.09
7.4.200.0030.00317.06
7.4.160.0130.00316.98
7.4.150.0080.01917.40
7.4.140.0130.00917.86
7.4.130.0110.01017.06
7.4.120.0090.00917.21
7.4.110.0060.01117.00
7.4.100.0160.00617.30
7.4.90.0100.00716.90
7.4.80.0110.01119.39
7.4.70.0080.00817.00
7.4.60.0160.00617.18
7.4.50.0050.00316.93
7.4.40.0060.01217.04
7.4.30.0130.00617.06
7.4.00.0070.00915.18
7.3.330.0080.00013.77
7.3.320.0060.00013.76
7.3.310.0070.00016.59
7.3.300.0030.00316.82
7.3.290.0120.00216.97
7.3.280.0100.00816.90
7.3.270.0200.00617.40
7.3.260.0100.01616.79
7.3.250.0100.00817.01
7.3.240.0070.01416.92
7.3.230.0080.00916.80
7.3.210.0030.01316.80
7.3.200.0120.00919.39
7.3.190.0220.00317.24
7.3.180.0080.00816.94
7.3.170.0080.01116.94
7.3.160.0030.01517.09
7.3.120.0030.01415.26
7.3.110.0000.01815.31
7.3.100.0070.00415.25
7.3.90.0070.01015.00
7.3.80.0040.00715.30
7.3.70.0110.00015.03
7.3.60.0000.01215.18
7.3.50.0060.00615.21
7.3.40.0030.01015.10
7.3.30.0040.01115.08
7.3.20.0060.00616.93
7.3.10.0040.00717.17
7.3.00.0150.00016.85
7.2.330.0070.01117.11
7.2.320.0110.00617.06
7.2.310.0030.01316.99
7.2.300.0080.00817.27
7.2.290.0070.01116.98
7.2.250.0040.01415.26
7.2.240.0090.00915.50
7.2.230.0070.01015.27
7.2.220.0100.00715.33
7.2.210.0030.01315.18
7.2.200.0000.01515.13
7.2.190.0030.00915.17
7.2.180.0060.00315.27
7.2.170.0080.00415.29
7.2.160.0000.01115.33
7.2.150.0040.00817.29
7.2.140.0070.00717.28
7.2.130.0030.01017.39
7.2.120.0040.00717.18
7.2.110.0110.00717.13
7.2.100.0030.00717.32
7.2.90.0130.00017.25
7.2.80.0000.01017.45
7.2.70.0070.01017.35
7.2.60.0050.01017.22
7.2.50.0060.00617.33
7.2.40.0060.00917.16
7.2.30.0110.00417.29
7.2.20.0060.00317.10
7.2.10.0080.00417.22
7.2.00.0080.00618.51
7.1.330.0140.00316.16
7.1.320.0040.01216.29
7.1.310.0070.00715.93
7.1.300.0040.00816.36
7.1.290.0070.01016.14
7.1.280.0120.00316.14
7.1.270.0030.01016.06
7.1.260.0060.00916.30
7.1.250.0080.00416.47
7.1.240.0090.00616.27
7.1.230.0080.00816.12
7.1.220.0090.00616.03
7.1.210.0090.00615.96
7.1.200.0050.01016.14
7.1.190.0060.01016.03
7.1.180.0030.00716.14
7.1.170.0000.00816.07
7.1.160.0000.01416.06
7.1.150.0050.00815.91
7.1.140.0040.00716.32
7.1.130.0000.01816.17
7.1.120.0050.00516.11
7.1.110.0080.00316.14
7.1.100.0060.00917.35
7.1.90.0030.01016.00
7.1.80.0000.01016.00
7.1.70.0110.00516.78
7.1.60.0070.01117.54
7.1.50.0090.01525.59
7.1.40.0090.00316.23
7.1.30.0030.01016.19
7.1.20.0070.00416.24
7.1.10.0060.00616.07
7.1.00.0070.04119.47
7.0.330.0030.01016.02
7.0.320.0030.01015.80
7.0.310.0070.00715.84
7.0.300.0060.00315.57
7.0.290.0060.00615.84
7.0.280.0030.01015.85
7.0.270.0000.01315.69
7.0.260.0050.00515.67
7.0.250.0030.01315.81
7.0.240.0030.01015.82
7.0.230.0040.01115.91
7.0.220.0000.00815.89
7.0.210.0050.00516.11
7.0.200.0020.00716.35
7.0.190.0040.00415.76
7.0.180.0100.00315.78
7.0.170.0040.01415.74
7.0.160.0070.01015.68
7.0.150.0030.01015.54
7.0.140.0090.03719.02
7.0.130.0080.00415.82
7.0.120.0070.00716.13
7.0.110.0110.00315.90
7.0.100.0000.01315.65
7.0.90.0000.00915.61
7.0.80.0080.00315.82
7.0.70.0070.00715.78
7.0.60.0050.02717.94
7.0.50.0130.03917.04
7.0.40.0070.03316.97
7.0.30.0320.03417.21
7.0.20.0180.04217.16
7.0.10.0030.05117.03
7.0.00.0030.04617.10
5.6.400.0070.00714.70
5.6.390.0060.00314.72
5.6.380.0070.00715.00
5.6.370.0000.01614.73
5.6.360.0040.01114.62
5.6.350.0060.00615.05
5.6.340.0090.00614.84
5.6.330.0030.01314.44
5.6.320.0030.01014.25
5.6.310.0080.00814.71
5.6.300.0030.01314.71
5.6.290.0070.01014.95
5.6.280.0090.03517.84
5.6.270.0100.00314.89
5.6.260.0070.00714.81
5.6.250.0090.00614.39
5.6.240.0000.01214.52
5.6.230.0040.01114.99
5.6.220.0140.00714.60
5.6.210.0050.03917.84
5.6.200.0050.03416.55
5.6.190.0050.04717.71
5.6.180.0180.02317.67
5.6.170.0210.03817.76
5.6.160.0120.03117.72
5.6.150.0130.03816.45
5.6.140.0080.04016.54
5.6.130.0070.02216.51
5.6.120.0050.04618.05
5.6.110.0080.02217.86
5.6.100.0080.04517.92
5.6.90.0100.04517.96
5.6.80.0070.02217.54
5.6.70.0000.01514.55
5.6.60.0040.00814.72
5.6.50.0030.00714.39
5.6.40.0070.00414.55
5.6.30.0000.01614.66
5.6.20.0100.00314.54
5.6.10.0090.00914.91
5.6.00.0000.01514.34
5.5.380.0000.01414.58
5.5.370.0070.01314.59
5.5.360.0060.00314.74
5.5.350.0070.02017.64
5.5.340.0030.02516.46
5.5.330.0100.04317.40
5.5.320.0020.03817.47
5.5.310.0170.02717.70
5.5.300.0080.02016.44
5.5.290.0110.03516.45
5.5.280.0030.03017.96
5.5.270.0050.03317.90
5.5.260.0100.03717.81
5.5.250.0050.04417.74
5.5.240.0050.04517.47
5.5.230.0060.00614.39
5.5.220.0050.00514.44
5.5.210.0040.00814.48
5.5.200.0030.01014.66
5.5.190.0000.00914.43
5.5.180.0000.00914.52
5.5.170.0030.01014.66
5.5.160.0000.01114.51
5.5.150.0070.00714.45
5.5.140.0090.00614.43
5.5.130.0070.01014.60
5.5.120.0040.00714.59
5.5.110.0030.01414.33
5.5.100.0120.00314.47
5.5.90.0070.01014.27
5.5.80.0060.00914.61
5.5.70.0060.00914.37
5.5.60.0000.01514.34
5.5.50.0120.00314.65
5.5.40.0030.01314.16
5.5.30.0070.00714.53
5.5.20.0070.00714.60
5.5.10.0110.00414.59
5.5.00.0030.01314.56
5.4.450.0450.03516.53
5.4.440.0410.02316.60
5.4.430.0400.03416.59
5.4.420.0360.00316.56
5.4.410.0370.00216.49
5.4.400.0330.00516.44
5.4.390.0350.00516.49
5.4.380.0370.00316.41
5.4.370.0330.00316.41
5.4.360.0330.00116.53
5.4.350.0350.00316.46
5.4.340.0070.02012.91
5.4.330.0100.00313.59
5.4.320.0040.01913.15
5.4.310.0040.02313.15
5.4.300.0060.02013.15
5.4.290.0050.02213.15
5.4.280.0050.02013.10
5.4.270.0070.01913.10
5.4.260.0110.01813.10
5.4.250.0080.02313.10
5.4.240.0060.02313.10
5.4.230.0060.02513.09
5.4.220.0080.01813.10
5.4.210.0050.02213.10
5.4.200.0030.02313.10
5.4.190.0060.02413.09
5.4.180.0040.02613.09
5.4.170.0020.02313.10
5.4.160.0060.02113.10
5.4.150.0060.02113.10
5.4.140.0090.02212.94
5.4.130.0060.02212.93
5.4.120.0060.01912.91
5.4.110.0040.02112.91
5.4.100.0080.01812.91
5.4.90.0070.02312.91
5.4.80.0020.02612.91
5.4.70.0060.02012.91
5.4.60.0030.02212.91
5.4.50.0040.02512.91
5.4.40.0060.01912.90
5.4.30.0040.02412.90
5.4.20.0080.01812.90
5.4.10.0050.02012.90
5.4.00.0080.02312.64
5.3.290.0080.04212.98
5.3.280.0090.04012.91
5.3.270.0080.03812.92
5.3.260.0030.04112.92
5.3.250.0050.03712.92
5.3.240.0030.04012.92
5.3.230.0070.04212.92
5.3.220.0060.03612.88
5.3.210.0040.04012.88
5.3.200.0040.03712.88
5.3.190.0070.03912.89
5.3.180.0060.04012.88
5.3.170.0090.03412.88
5.3.160.0010.04412.88
5.3.150.0080.03612.88
5.3.140.0060.03612.88
5.3.130.0090.03512.87
5.3.120.0070.03812.86
5.3.110.0080.03712.86
5.3.100.0050.03712.35
5.3.90.0080.03512.34
5.3.80.0050.03712.32
5.3.70.0060.03612.32
5.3.60.0040.04412.31
5.3.50.0030.03812.25
5.3.40.0070.03412.25
5.3.30.0060.03812.22
5.3.20.0090.03112.00
5.3.10.0030.03711.96
5.3.00.0070.03411.95
5.2.170.0050.0299.45
5.2.160.0030.0309.45
5.2.150.0080.0279.45
5.2.140.0040.0319.45
5.2.130.0040.0299.41
5.2.120.0050.0289.41
5.2.110.0050.0299.41
5.2.100.0020.0319.41
5.2.90.0030.0309.41
5.2.80.0040.0309.41
5.2.70.0060.0299.41
5.2.60.0090.0259.35
5.2.50.0030.0319.32
5.2.40.0040.0289.30
5.2.30.0040.0309.29
5.2.20.0050.0309.28
5.2.10.0070.0259.18
5.2.00.0040.0369.04
5.1.60.0040.0248.30
5.1.50.0040.0258.30
5.1.40.0020.0268.29
5.1.30.0040.0328.64
5.1.20.0070.0288.66
5.1.10.0040.0308.36
5.1.00.0050.0258.15
5.0.50.0030.0216.85
5.0.40.0040.0196.71
5.0.30.0040.0346.52
5.0.20.0030.0206.50
5.0.10.0050.0236.47
5.0.00.0020.0356.46
4.4.90.0040.0214.77
4.4.80.0030.0204.75
4.4.70.0030.0144.76
4.4.60.0030.0154.75
4.4.50.0010.0164.77
4.4.40.0040.0234.71
4.4.30.0040.0134.76
4.4.20.0010.0164.84
4.4.10.0020.0154.85
4.4.00.0030.0244.75
4.3.110.0030.0144.67
4.3.100.0040.0134.66
4.3.90.0020.0154.63
4.3.80.0030.0234.58
4.3.70.0020.0144.63
4.3.60.0010.0154.63
4.3.50.0000.0184.63
4.3.40.0040.0214.54
4.3.30.0010.0173.28
4.3.20.0030.0153.26
4.3.10.0020.0153.21
4.3.00.0070.0237.28

preferences:
41 ms | 401 KiB | 5 Q