3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = <<<XML <map> <title>Wisburn Village</title> <color1>0x0000FF</color1> <color2>0x2b8300</color2> <element id="tree_1"> <icon>7</icon> <scale>1</scale> </element> <element id="tree_2"> <icon>7</icon> <scale>1</scale> </element> <element id="tree_4"> <icon>7</icon> <scale>0.9</scale> </element> <element id="house1"> <icon>2</icon> <type>mission</type> <name>Home</name> </element> <element id="cave_1"> <type>mission</type> <icon>4</icon> <name>Den of Trials</name> <scale>0.9</scale> <mission id="01"> <name>Gloop and Bloop</name> <info>Let's see you fight some monsters in the den! These shouldn't prove much of a problem, show me what you can do!</info> <enemies> <enemy id="405"></enemy> <enemy id="405"></enemy> <enemy id="405"></enemy> </enemies> </mission> </element> <element id="link_1"> <type>link</type> <to>02</to> <name>to Quadra Plains</name> <lv>1</lv> </element> </map> XML; $xml = simplexml_load_string($x); list($test) = $xml->xpath("//type/@name"); echo $test;

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.0110.01116.88
8.3.60.0090.00916.84
8.3.50.0140.00317.77
8.3.40.0160.00319.27
8.3.30.0070.01119.21
8.3.20.0060.00319.10
8.3.10.0060.00319.15
8.3.00.0050.00319.75
8.2.180.0160.00617.38
8.2.170.0120.00622.96
8.2.160.0090.00621.06
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00319.19
8.2.110.0040.00721.42
8.2.100.0000.01218.28
8.2.90.0080.00419.31
8.2.80.0050.00318.13
8.2.70.0030.00618.00
8.2.60.0000.00818.30
8.2.50.0080.00018.07
8.2.40.0030.00618.42
8.2.30.0080.00018.46
8.2.20.0050.00319.78
8.2.10.0050.00318.07
8.2.00.0040.00418.10
8.1.280.0100.01025.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00921.54
8.1.230.0000.01217.77
8.1.220.0000.00818.00
8.1.210.0000.00818.77
8.1.200.0040.00417.60
8.1.190.0030.00617.48
8.1.180.0040.00418.10
8.1.170.0050.00319.16
8.1.160.0040.00419.18
8.1.150.0050.00218.90
8.1.140.0040.00417.68
8.1.130.0030.00318.06
8.1.120.0040.00417.60
8.1.110.0040.00417.68
8.1.100.0040.00317.57
8.1.90.0080.00017.85
8.1.80.0050.00317.55
8.1.70.0040.00417.79
8.1.60.0040.00417.70
8.1.50.0040.00417.59
8.1.40.0040.00417.79
8.1.30.0030.00618.01
8.1.20.0080.00017.99
8.1.10.0000.00818.04
8.1.00.0030.00617.77
8.0.300.0080.00018.77
8.0.290.0080.00017.13
8.0.280.0070.00318.84
8.0.270.0050.00317.59
8.0.260.0040.00417.18
8.0.250.0040.00417.24
8.0.240.0040.00317.39
8.0.230.0000.00717.34
8.0.220.0030.00417.33
8.0.210.0070.00017.08
8.0.200.0000.00617.35
8.0.190.0000.00717.14
8.0.180.0040.00417.31
8.0.170.0040.00417.07
8.0.160.0000.00717.13
8.0.150.0030.00717.23
8.0.140.0100.00017.28
8.0.130.0030.00313.61
8.0.120.0030.00517.01
8.0.110.0040.00417.02
8.0.100.0040.00417.20
8.0.90.0050.00317.21
8.0.80.0090.00617.27
8.0.70.0040.00417.13
8.0.60.0000.00717.21
8.0.50.0050.00217.11
8.0.30.0060.01217.30
8.0.20.0110.00817.52
8.0.10.0030.00517.50
8.0.00.0140.01417.12
7.4.330.0050.00013.14
7.4.320.0030.00316.75
7.4.300.0030.00316.96
7.4.290.0030.00316.84
7.4.280.0080.00316.93
7.4.270.0000.00716.69
7.4.260.0050.00013.48
7.4.250.0040.00416.88
7.4.240.0030.00316.94
7.4.230.0050.00216.73
7.4.220.0030.01316.81
7.4.210.0120.01216.90
7.4.200.0000.00716.83
7.4.190.0000.00716.88
7.4.160.0090.00616.95
7.4.150.0140.01217.02
7.4.140.0070.01116.75
7.4.130.0080.00816.95
7.4.120.0100.00716.92
7.4.110.0160.00716.93
7.4.100.0110.00716.73
7.4.90.0120.00616.89
7.4.80.0090.01219.39
7.4.70.0070.01016.90
7.4.60.0100.00616.70
7.4.50.0030.00316.83
7.4.40.0040.01116.75
7.4.30.0100.00716.82
7.4.00.0040.01115.13
7.3.330.0000.00613.43
7.3.320.0000.00513.46
7.3.310.0000.00716.47
7.3.300.0000.00716.71
7.3.290.0070.00716.69
7.3.280.0070.01216.70
7.3.270.0090.01616.55
7.3.260.0090.00916.91
7.3.250.0100.00816.79
7.3.240.0100.00716.60
7.3.230.0120.00616.64
7.3.210.0030.01416.82
7.3.200.0130.00316.67
7.3.190.0110.00516.70
7.3.180.0060.00916.56
7.3.170.0070.01016.82
7.3.160.0030.01316.78
7.3.120.0100.00715.00
7.2.330.0080.00816.89
7.2.320.0160.00816.60
7.2.310.0110.00716.93
7.2.300.0060.01216.86
7.2.290.0120.00617.09
7.2.00.0040.00819.50
7.1.100.0120.00618.34
7.1.70.0040.00417.16
7.1.60.0060.01619.30
7.1.50.0040.00717.05
7.1.00.0030.05022.65
7.0.200.0780.00315.03
7.0.140.0070.07022.17
7.0.120.0070.06322.11
7.0.110.0030.04322.20
7.0.100.0030.06722.27
7.0.90.0030.03322.29
7.0.80.0130.04022.18
7.0.70.0000.03722.26
7.0.60.0070.04022.23
7.0.50.0000.07322.30
7.0.40.0030.08720.33
7.0.30.0030.05720.23
7.0.20.0030.05720.17
7.0.10.0030.07720.24
7.0.00.0000.04720.21
5.6.280.0070.06721.25
5.6.270.0000.03721.16
5.6.260.0070.06721.15
5.6.250.0030.03720.99
5.6.240.0030.08021.23
5.6.230.0000.08321.01
5.6.220.0030.03321.13
5.6.210.0000.04321.06
5.6.200.0000.04721.21
5.6.190.0030.04021.16
5.6.180.0030.06021.02
5.6.170.0000.03721.11
5.6.160.0070.07720.94
5.6.150.0030.06320.95
5.6.140.0030.07721.14
5.6.130.0130.02721.14
5.6.120.0000.04321.21
5.6.110.0070.03021.14
5.6.100.0030.04021.11
5.6.90.0100.03021.08
5.6.80.0000.04020.45
5.6.70.0000.04020.43
5.6.60.0030.04020.39
5.6.50.0000.03320.43
5.6.40.0030.03020.46
5.6.30.0030.08720.50
5.6.20.0000.03720.32
5.6.10.0100.03020.34
5.6.00.0000.04320.29
5.5.380.0030.03717.81
5.5.370.0070.06317.79
5.5.360.0000.05317.70
5.5.350.0070.06317.59
5.5.340.0030.04018.05
5.5.330.0000.07018.29
5.5.320.0000.07718.35
5.5.310.0070.03018.14
5.5.300.0030.03318.38
5.5.290.0000.07318.29
5.5.280.0000.04718.05
5.5.270.0000.04318.06
5.5.260.0000.04318.01
5.5.250.0070.03317.84
5.5.240.0030.03717.55
5.5.230.0000.04017.73
5.5.220.0030.04717.46
5.5.210.0000.03317.77
5.5.200.0030.03317.28
5.5.190.0000.04317.71
5.5.180.0000.04017.54
5.5.160.0000.03317.70
5.5.150.0030.04017.50
5.5.140.0030.03317.89
5.5.130.0030.03717.52
5.5.120.0000.03717.73
5.5.110.0030.03017.53
5.5.100.0000.04017.31
5.5.90.0000.03017.78
5.5.80.0030.03317.31
5.5.70.0000.03317.42
5.5.60.0000.03717.62
5.5.50.0030.03017.62
5.5.40.0000.03017.59
5.5.30.0000.03017.41
5.5.20.0130.03317.17
5.5.10.0000.03017.62
5.5.00.0000.03317.63
5.4.450.0030.03319.39
5.4.440.0000.04019.50
5.4.430.0000.04019.67
5.4.420.0030.04019.50
5.4.410.0070.03019.57
5.4.400.0030.03319.09
5.4.390.0000.04019.27
5.4.380.0000.03319.14
5.4.370.0000.04019.13
5.4.360.0030.04019.31
5.4.350.0000.06019.42
5.4.340.0070.03319.35
5.4.320.0070.03019.21
5.4.310.0000.04319.21
5.4.300.0000.04019.24
5.4.290.0070.03319.13
5.4.280.0000.03719.14
5.4.270.0030.03019.24
5.4.260.0000.03719.13
5.4.250.0000.03019.34
5.4.240.0030.03019.35
5.4.230.0000.03019.05
5.4.220.0000.03319.05
5.4.210.0030.03319.09
5.4.200.0000.03319.34
5.4.190.0000.03019.16
5.4.180.0130.03019.04
5.4.170.0030.03019.35
5.4.160.0170.02319.33
5.4.150.0000.03319.12
5.4.140.0030.03016.75
5.4.130.0000.03016.41
5.4.120.0000.03016.66
5.4.110.0000.03316.55
5.4.100.0070.02316.39
5.4.90.0070.05316.41
5.4.80.0030.06316.43
5.4.70.0000.07016.52
5.4.60.0100.07016.66
5.4.50.0030.06316.51
5.4.40.0030.04316.38
5.4.30.0000.03316.41
5.4.20.0000.03716.44
5.4.10.0030.03016.73
5.4.00.0070.04315.87
5.3.290.0000.03714.80
5.3.280.0030.02714.84
5.3.270.0030.03314.70
5.3.260.0000.03014.84
5.3.250.0000.03014.68
5.3.240.0000.03014.83
5.3.230.0000.03314.72
5.3.220.0030.02714.82
5.3.210.0030.02714.66
5.3.200.0000.04014.75
5.3.190.0000.07714.65
5.3.180.0070.05014.57
5.3.170.0000.07314.60
5.3.160.0100.04014.79
5.3.150.0000.06314.67
5.3.140.0000.03314.80
5.3.130.0000.03714.75
5.3.120.0000.03014.71
5.3.110.0030.04014.64
5.3.100.0030.03714.16
5.3.90.0030.03314.06
5.3.80.0070.03714.10
5.3.70.0030.04014.25
5.3.60.0000.05714.04
5.3.50.0070.03714.04
5.3.40.0030.03314.19
5.3.30.0030.03314.02
5.3.20.0000.04713.85
5.3.10.0000.03013.88
5.3.00.0000.04713.73
5.2.170.0000.03711.46
5.2.160.0030.02711.36
5.2.150.0000.03011.25
5.2.140.0030.04011.31
5.2.130.0030.04711.27
5.2.120.0000.02711.32
5.2.110.0030.03711.31
5.2.100.0000.04011.28
5.2.90.0030.03311.33
5.2.80.0070.04711.32
5.2.70.0000.04311.25
5.2.60.0030.06711.13
5.2.50.0000.06311.18
5.2.40.0030.04711.15
5.2.30.0000.03311.13
5.2.20.0030.05311.11
5.2.10.0000.04011.13
5.2.00.0070.05710.93
5.1.60.0030.04310.37
5.1.50.0000.04010.15
5.1.40.0030.02310.23
5.1.30.0070.04010.54
5.1.20.0030.02710.51
5.1.10.0000.04010.32
5.1.00.0030.02310.25
5.0.50.0000.0409.48
5.0.40.0030.0209.48
5.0.30.0000.0309.48
5.0.20.0000.0209.48
5.0.10.0000.0209.48
5.0.00.0030.0579.48
4.4.90.0030.0179.48
4.4.80.0000.0179.48
4.4.70.0000.0179.48
4.4.60.0000.0209.48
4.4.50.0000.0179.48
4.4.40.0030.0239.48
4.4.30.0000.0309.48
4.4.20.0000.0179.48
4.4.10.0000.0179.48
4.4.00.0030.0639.48
4.3.110.0000.0339.48
4.3.100.0000.0179.48
4.3.90.0000.0339.48
4.3.80.0070.0339.48
4.3.70.0000.0179.48
4.3.60.0000.0209.48
4.3.50.0000.0279.48
4.3.40.0030.0439.48
4.3.30.0000.0379.48
4.3.20.0070.0139.48
4.3.10.0070.0179.48
4.3.00.0000.0179.48

preferences:
47.33 ms | 401 KiB | 5 Q