3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <?xml version='1.0' standalone='yes'?> <movies> <movie> <title>PHP: Behind the Parser</title> <characters> <character> <name>Ms. Coder</name> <actor>Onlivia Actora</actor> </character> <character> <name>Mr. Coder</name> <actor>El Act&#211;r</actor> </character> </characters> <plot> So, this language. It's like, a programming language. Or is it a scripting language? All is revealed in this thrilling horror spoof of a documentary. </plot> <great-lines1> <line>PHP solves all my web problems</line> </great-lines1> <great-lines2> <line>PHP solves all my web problems</line> <![CDATA[always be testing!]]> </great-lines2> <great-lines3> PHP solves all my web problems <![CDATA[always be testing!]]> </great-lines3> <rating type="thumbs">7</rating> <rating type="stars">5</rating> </movie> </movies> XML; $sml = new SimpleXMLElement ($xml); $result1 = $sml->xpath('/movies/movie/great-lines1'); $result2 = $sml->xpath('/movies/movie/great-lines2'); $result3 = $sml->xpath('/movies/movie/great-lines3'); var_dump($result1); var_dump($result2); var_dump($result3); echo "\n<br>--------------------\n"; echo (string) array_pop($result1); echo "\n<br>--------------------\n"; echo (string) array_pop($result2); echo "\n<br>--------------------\n"; echo (string) array_pop($result3);

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.0090.00618.52
8.3.50.0150.00622.18
8.3.40.0150.00018.90
8.3.30.0070.00719.47
8.3.20.0080.00020.68
8.3.10.0050.00320.95
8.3.00.0000.00818.00
8.2.180.0160.00316.88
8.2.170.0140.00022.96
8.2.160.0080.00820.77
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0040.00726.16
8.2.120.0000.00722.66
8.2.110.0060.00322.48
8.2.100.0090.00318.22
8.2.90.0040.00419.56
8.2.80.0040.00417.97
8.2.70.0040.00417.88
8.2.60.0100.00018.18
8.2.50.0000.00818.07
8.2.40.0080.00018.66
8.2.30.0040.00419.62
8.2.20.0040.00418.06
8.2.10.0080.00018.40
8.2.00.0000.00818.09
8.1.280.0120.00625.92
8.1.270.0000.00924.29
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00624.21
8.1.230.0120.00019.53
8.1.220.0080.00018.16
8.1.210.0040.00418.77
8.1.200.0070.00317.48
8.1.190.0080.00017.60
8.1.180.0030.00618.10
8.1.170.0060.00318.96
8.1.160.0040.00422.34
8.1.150.0040.00419.25
8.1.140.0050.00317.82
8.1.130.0000.00718.25
8.1.120.0070.00017.90
8.1.110.0060.00317.63
8.1.100.0080.00017.71
8.1.90.0050.00217.82
8.1.80.0000.00717.90
8.1.70.0000.00717.85
8.1.60.0030.00518.04
8.1.50.0030.00517.89
8.1.40.0080.00018.00
8.1.30.0000.00818.11
8.1.20.0070.00017.89
8.1.10.0040.00417.93
8.1.00.0050.00317.75
8.0.300.0060.00318.77
8.0.290.0080.00017.25
8.0.280.0030.00318.75
8.0.270.0030.00517.74
8.0.260.0070.00017.68
8.0.250.0030.00317.30
8.0.240.0040.00417.47
8.0.230.0050.00317.35
8.0.220.0070.00017.38
8.0.210.0000.00817.13
8.0.200.0000.00617.21
8.0.190.0000.00717.21
8.0.180.0000.00817.38
8.0.170.0030.00517.42
8.0.160.0040.00417.11
8.0.150.0000.00717.32
8.0.140.0070.00017.34
8.0.130.0050.00413.79
8.0.120.0030.00617.33
8.0.110.0020.00517.16
8.0.100.0000.00717.38
8.0.90.0000.00717.36
8.0.80.0060.00917.15
8.0.70.0000.00917.22
8.0.60.0040.00417.27
8.0.50.0050.00317.24
8.0.30.0120.00717.46
8.0.20.0120.00817.45
8.0.10.0000.00717.55
8.0.00.0070.01117.00
7.4.330.0000.00615.48
7.4.320.0040.00417.02
7.4.300.0030.00316.70
7.4.290.0000.00717.00
7.4.280.0000.00716.78
7.4.270.0030.00317.02
7.4.260.0040.00417.03
7.4.250.0040.00416.95
7.4.240.0020.00517.04
7.4.230.0070.00017.03
7.4.220.0070.01116.92
7.4.210.0100.00416.96
7.4.200.0000.00817.03
7.4.160.0030.01717.13
7.4.150.0180.00717.40
7.4.140.0090.01017.86
7.4.130.0120.00816.90
7.4.120.0140.00416.93
7.4.110.0170.00017.08
7.4.100.0090.00917.00
7.4.90.0180.01916.87
7.4.80.0070.01518.80
7.4.70.0120.00616.88
7.4.60.0030.01316.88
7.4.50.0030.00617.04
7.4.40.0150.00316.88
7.4.30.0070.01316.96
7.4.10.0050.01516.14
7.4.00.0050.01215.68
7.3.330.0000.00613.57
7.3.320.0070.00013.55
7.3.310.0040.00416.75
7.3.300.0060.00016.52
7.3.290.0070.01116.68
7.3.280.0080.00816.69
7.3.270.0030.01617.40
7.3.260.0150.01116.70
7.3.250.0120.00616.79
7.3.240.0090.00916.74
7.3.230.0070.01016.75
7.3.210.0170.00316.59
7.3.200.0090.01219.39
7.3.190.0060.01116.75
7.3.180.0110.00716.90
7.3.170.0110.00616.79
7.3.160.0080.00816.69
7.3.130.0070.00915.89
7.3.120.0080.00716.02
7.3.110.0060.00915.96
7.3.100.0030.00915.83
7.3.90.0030.00815.92
7.3.80.0040.01115.77
7.3.70.0070.00615.73
7.3.60.0070.00615.80
7.3.50.0050.01115.80
7.3.40.0070.00815.65
7.3.30.0070.00715.79
7.3.20.0060.00617.50
7.3.10.0050.01017.52
7.3.00.0100.00517.62
7.2.330.0090.00917.04
7.2.320.0000.01717.08
7.2.310.0120.01217.17
7.2.300.0030.01516.91
7.2.290.0100.00716.80
7.2.260.0110.01116.02
7.2.250.0080.01115.92
7.2.240.0050.00915.94
7.2.230.0090.00815.98
7.2.220.0080.00916.01
7.2.210.0070.00815.99
7.2.200.0060.00816.07
7.2.190.0050.01016.01
7.2.180.0050.00816.00
7.2.170.0020.01315.98
7.2.160.0060.01016.01
7.2.150.0070.00617.82
7.2.140.0030.01217.83
7.2.130.0060.00817.85
7.2.120.0070.00717.86
7.2.110.0050.01217.79
7.2.100.0070.01017.85
7.2.90.0060.00818.07
7.2.80.0110.00217.90
7.2.70.0050.00917.85
7.2.60.0110.00417.84
7.2.50.0050.00917.83
7.2.40.0020.00917.85
7.2.30.0050.01117.82
7.2.20.0050.00517.79
7.2.10.0050.01017.86
7.2.00.0080.00618.36
7.1.330.0040.01116.71
7.1.320.0010.01116.79
7.1.310.0110.00516.79
7.1.300.0050.00916.72
7.1.290.0060.00716.69
7.1.280.0020.01116.76
7.1.270.0060.00616.66
7.1.260.0020.01316.75
7.1.250.0080.00516.85
7.1.240.0120.00316.77
7.1.230.0080.00616.80
7.1.220.0050.01116.68
7.1.210.0060.00516.71
7.1.200.0060.01016.63
7.1.190.0040.01316.69
7.1.180.0090.00316.68
7.1.170.0050.00716.81
7.1.160.0050.00716.78
7.1.150.0060.00716.68
7.1.140.0090.00316.63
7.1.130.0020.01316.80
7.1.120.0050.01016.62
7.1.110.0100.00316.86
7.1.100.0040.00917.42
7.1.90.0070.00616.86
7.1.80.0050.00816.68
7.1.70.0040.00816.98
7.1.60.0080.00617.48
7.1.50.0080.00716.87
7.1.40.0040.00916.66
7.1.30.0050.00616.66
7.1.20.0050.00816.66
7.1.10.0120.00216.88
7.1.00.0070.02818.65
7.0.330.0050.00716.47
7.0.320.0030.00816.45
7.0.310.0060.00616.39
7.0.300.0070.00416.48
7.0.290.0050.01016.31
7.0.280.0070.00716.54
7.0.270.0060.01016.41
7.0.260.0050.00816.37
7.0.250.0070.00816.55
7.0.240.0090.00516.55
7.0.230.0070.00516.53
7.0.220.0060.00616.44
7.0.210.0050.00716.42
7.0.200.0070.00516.62
7.0.190.0100.00516.50
7.0.180.0080.00816.45
7.0.170.0040.00616.53
7.0.160.0060.00516.41
7.0.150.0030.01216.52
7.0.140.0070.02618.39
7.0.130.0050.00716.52
7.0.120.0050.00616.61
7.0.110.0030.00716.52
7.0.100.0050.01016.46
7.0.90.0060.00816.43
7.0.80.0030.00716.44
7.0.70.0050.00816.42
7.0.60.0120.02817.57
7.0.50.0100.02916.96
7.0.40.0100.01616.54
7.0.30.0160.03116.38
7.0.20.0140.02616.45
7.0.10.0070.03616.43
7.0.00.0070.03516.47
5.6.400.0050.01115.53
5.6.390.0050.00915.39
5.6.380.0070.00715.43
5.6.370.0100.00215.24
5.6.360.0050.00615.37
5.6.350.0070.00715.31
5.6.340.0110.00215.40
5.6.330.0070.00615.28
5.6.320.0070.00515.29
5.6.310.0100.00515.52
5.6.300.0050.00815.35
5.6.290.0040.00915.49
5.6.280.0050.03017.18
5.6.270.0060.00915.63
5.6.260.0020.01315.46
5.6.250.0030.00915.28
5.6.240.0050.00715.32
5.6.230.0050.01015.42
5.6.220.0030.01215.48
5.6.210.0110.01517.24
5.6.200.0040.03416.26
5.6.190.0030.02717.07
5.6.180.0150.02717.11
5.6.170.0140.01817.13
5.6.160.0030.02317.13
5.6.150.0050.03316.33
5.6.140.0040.01816.48
5.6.130.0030.02016.37
5.6.120.0050.02217.35
5.6.110.0070.02217.32
5.6.100.0080.03117.29
5.6.90.0120.02717.34
5.6.80.0080.03317.03
5.6.70.0050.01015.48
5.6.60.0070.00515.27
5.6.50.0040.00815.32
5.6.40.0060.00815.29
5.6.30.0060.00815.29
5.6.20.0050.01215.38
5.6.10.0030.00915.21
5.6.00.0060.00615.51
5.5.380.0050.00715.30
5.5.370.0080.00815.46
5.5.360.0050.00815.16
5.5.350.0080.03317.19
5.5.340.0040.03216.21
5.5.330.0080.02416.99
5.5.320.0080.03317.12
5.5.310.0140.02317.02
5.5.300.0040.02416.42
5.5.290.0060.02616.36
5.5.280.0080.03017.18
5.5.270.0080.03117.17
5.5.260.0080.01717.25
5.5.250.0050.03317.19
5.5.240.0030.03316.85
5.5.230.0080.00915.30
5.5.220.0070.00515.39
5.5.210.0030.00915.29
5.5.200.0050.00915.45
5.5.190.0070.00915.09
5.5.180.0070.00415.27
5.5.170.0060.00715.27
5.5.160.0050.00915.11
5.5.150.0050.00715.34
5.5.140.0020.01215.13
5.5.130.0060.00615.41
5.5.120.0030.01215.33
5.5.110.0020.01015.22
5.5.100.0030.01015.13
5.5.90.0060.00715.46
5.5.80.0060.00615.31
5.5.70.0030.01115.29
5.5.60.0050.00815.37
5.5.50.0030.01015.24
5.5.40.0080.00515.25
5.5.30.0100.00615.01
5.5.20.0070.00515.27
5.5.10.0090.00515.23
5.5.00.0070.00915.36
5.4.450.0240.02414.78
5.4.440.0210.03114.72
5.4.430.0250.03114.68
5.4.420.0270.02614.68
5.4.410.0350.03114.73
5.4.400.0040.02514.74
5.4.390.0270.02414.68
5.4.380.0190.02614.47
5.4.370.0150.02614.55
5.4.360.0120.02514.59
5.4.350.0170.02314.50
5.4.340.0110.02314.39
5.4.330.0050.00612.29
5.4.320.0030.01712.43
5.4.310.0050.01812.43
5.4.300.0060.01712.44
5.4.290.0060.01712.47
5.4.280.0040.01612.40
5.4.270.0060.02012.39
5.4.260.0040.01812.42
5.4.250.0040.01812.45
5.4.240.0040.01712.38
5.4.230.0050.01712.34
5.4.220.0030.01812.44
5.4.210.0030.01612.36
5.4.200.0060.01912.43
5.4.190.0030.01912.40
5.4.180.0070.01712.37
5.4.170.0070.01512.47
5.4.160.0070.01612.33
5.4.150.0060.01712.40
5.4.140.0060.01612.28
5.4.130.0050.01512.30
5.4.120.0060.01712.29
5.4.110.0040.01512.28
5.4.100.0050.01612.23
5.4.90.0060.01512.25
5.4.80.0020.02012.33
5.4.70.0040.01612.32
5.4.60.0040.01612.32
5.4.50.0060.01612.30
5.4.40.0050.01612.32
5.4.30.0040.01412.33
5.4.20.0040.01712.30
5.4.10.0060.01512.29
5.4.00.0040.01512.13
5.3.290.0050.04012.98
5.3.280.0050.03812.91
5.3.270.0060.03912.92
5.3.260.0070.03712.92
5.3.250.0070.03512.93
5.3.240.0070.03512.93
5.3.230.0070.03612.92
5.3.220.0050.03712.89
5.3.210.0060.03812.89
5.3.200.0040.03712.88
5.3.190.0100.03212.88
5.3.180.0040.03712.88
5.3.170.0070.04212.88
5.3.160.0070.03912.88
5.3.150.0090.03912.88
5.3.140.0040.03712.87
5.3.130.0040.04012.87
5.3.120.0030.04112.87
5.3.110.0060.03712.87
5.3.100.0040.03812.35
5.3.90.0110.03012.33
5.3.80.0070.04112.32
5.3.70.0060.03512.32
5.3.60.0050.03712.31
5.3.50.0040.03812.25
5.3.40.0080.03612.25
5.3.30.0100.03312.21
5.3.20.0040.03711.99
5.3.10.0070.03411.96
5.3.00.0030.03811.95
5.2.170.0020.0389.45
5.2.160.0050.0329.45
5.2.150.0020.0339.45
5.2.140.0060.0299.44
5.2.130.0040.0399.41
5.2.120.0040.0279.40
5.2.110.0040.0299.41
5.2.100.0040.0289.41
5.2.90.0030.0309.41
5.2.80.0080.0269.41
5.2.70.0050.0359.41
5.2.60.0050.0289.34
5.2.50.0050.0319.32
5.2.40.0060.0269.29
5.2.30.0050.0379.28
5.2.20.0060.0379.31
5.2.10.0070.0269.23
5.2.00.0060.0279.08
5.1.60.0050.0238.38
5.1.50.0040.0258.37
5.1.40.0050.0238.36
5.1.30.0020.0278.71
5.1.20.0050.0268.72
5.1.10.0050.0248.45
5.1.00.0000.0298.44
5.0.50.0030.0216.93
5.0.40.0040.0186.79
5.0.30.0030.0316.61
5.0.20.0060.0176.57
5.0.10.0010.0226.55
5.0.00.0050.0286.55
4.4.90.0060.0214.78
4.4.80.0020.0154.76
4.4.70.0020.0214.75
4.4.60.0020.0204.75
4.4.50.0040.0184.77
4.4.40.0050.0294.71
4.4.30.0030.0184.76
4.4.20.0040.0144.85
4.4.10.0040.0194.85
4.4.00.0040.0234.76
4.3.110.0040.0134.67
4.3.100.0030.0154.66
4.3.90.0020.0154.63
4.3.80.0030.0244.59
4.3.70.0040.0124.63
4.3.60.0040.0134.62
4.3.50.0040.0134.63
4.3.40.0060.0244.54
4.3.30.0010.0283.36
4.3.20.0040.0213.33
4.3.10.0030.0143.24
4.3.00.0200.0177.58

preferences:
44.65 ms | 401 KiB | 5 Q