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-lines2> <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);

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.0140.00318.80
8.3.50.0090.01222.11
8.3.40.0070.00719.18
8.3.30.0100.00719.50
8.3.20.0050.00320.66
8.3.10.0040.00421.03
8.3.00.0050.00317.88
8.2.180.0090.00916.88
8.2.170.0140.00722.96
8.2.160.0060.01220.69
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0020.00522.53
8.2.110.0060.00321.40
8.2.100.0090.00318.09
8.2.90.0000.01021.32
8.2.80.0040.00418.41
8.2.70.0040.00418.05
8.2.60.0060.00317.93
8.2.50.0000.01118.10
8.2.40.0040.00420.66
8.2.30.0040.00419.41
8.2.20.0050.00317.84
8.2.10.0000.00818.14
8.2.00.0040.00417.84
8.1.280.0070.01125.92
8.1.270.0080.00024.11
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00622.60
8.1.230.0080.00321.22
8.1.220.0040.00418.01
8.1.210.0040.00418.77
8.1.200.0060.00317.61
8.1.190.0050.00317.47
8.1.180.0040.00418.10
8.1.170.0040.00818.58
8.1.160.0040.00422.44
8.1.150.0040.00419.10
8.1.140.0080.00017.52
8.1.130.0000.00717.97
8.1.120.0000.00717.49
8.1.110.0040.00417.60
8.1.100.0040.00417.63
8.1.90.0000.00717.54
8.1.80.0040.00417.61
8.1.70.0000.00717.52
8.1.60.0080.00017.71
8.1.50.0030.00617.81
8.1.40.0050.00317.85
8.1.30.0060.00317.76
8.1.20.0000.00817.83
8.1.10.0000.00817.84
8.1.00.0040.00417.68
8.0.300.0040.00420.34
8.0.290.0000.00817.00
8.0.280.0030.00318.55
8.0.270.0000.00717.44
8.0.260.0030.00317.35
8.0.250.0030.00317.18
8.0.240.0030.00517.18
8.0.230.0000.00717.12
8.0.220.0070.00016.99
8.0.210.0000.00717.19
8.0.200.0030.00317.17
8.0.190.0000.00717.15
8.0.180.0000.00817.01
8.0.170.0050.00317.11
8.0.160.0040.00317.17
8.0.150.0040.00417.07
8.0.140.0040.00417.04
8.0.130.0030.00613.69
8.0.120.0050.00317.06
8.0.110.0000.00717.12
8.0.100.0040.00317.05
8.0.90.0040.00417.22
8.0.80.0040.01817.05
8.0.70.0000.00717.07
8.0.60.0000.00717.30
8.0.50.0060.00316.98
8.0.30.0080.01117.27
8.0.20.0090.01017.40
8.0.10.0050.00317.24
8.0.00.0080.01116.93
7.4.330.0000.00515.35
7.4.320.0030.00316.61
7.4.300.0000.00616.70
7.4.290.0050.00316.67
7.4.280.0050.00316.89
7.4.270.0030.00316.81
7.4.260.0060.00316.88
7.4.250.0060.00316.73
7.4.240.0020.00516.70
7.4.230.0030.00316.87
7.4.220.0120.00616.72
7.4.210.0100.00516.80
7.4.200.0070.00016.79
7.4.160.0070.01016.84
7.4.150.0100.00917.40
7.4.140.0080.00817.86
7.4.130.0070.01116.63
7.4.120.0100.00716.80
7.4.110.0120.00416.83
7.4.100.0120.00616.75
7.4.90.0140.00316.58
7.4.80.0110.00718.80
7.4.70.0080.00816.64
7.4.60.0060.00916.48
7.4.50.0080.00016.61
7.4.40.0100.01316.79
7.4.30.0070.01316.91
7.4.00.0030.01214.84
7.3.330.0000.00513.43
7.3.320.0000.00613.55
7.3.310.0050.00216.59
7.3.300.0040.00416.50
7.3.290.0130.00616.50
7.3.280.0100.00616.50
7.3.270.0110.01017.40
7.3.260.0090.01416.44
7.3.250.0110.00916.52
7.3.240.0090.00916.45
7.3.230.0030.01316.50
7.3.210.0040.01416.67
7.3.200.0030.01519.39
7.3.190.0100.00616.65
7.3.180.0120.00616.52
7.3.170.0110.00616.69
7.3.160.0060.00916.53
7.3.10.0100.00316.66
7.3.00.0030.01416.75
7.2.330.0180.00616.74
7.2.320.0110.00716.77
7.2.310.0000.01716.78
7.2.300.0070.01016.58
7.2.290.0140.00316.74
7.2.130.0100.00016.82
7.2.120.0060.00616.55
7.2.110.0000.01616.71
7.2.100.0040.01216.93
7.2.90.0030.00916.93
7.2.80.0000.01216.89
7.2.70.0040.01116.69
7.2.60.0060.00817.05
7.2.50.0070.00316.87
7.2.40.0060.00917.02
7.2.30.0030.01316.90
7.2.20.0100.00016.88
7.2.10.0040.01416.88
7.2.00.0030.01118.05
7.1.250.0100.00015.79
7.1.200.0120.00015.91
7.1.100.0030.01018.30
7.1.70.0030.01017.16
7.1.60.0090.01619.32
7.1.50.0000.01116.86
7.1.00.0100.07322.52
7.0.200.0030.00616.91
7.0.140.0070.07022.20
7.0.60.0070.06720.09
7.0.50.0000.04317.90
7.0.40.0030.04320.34
7.0.30.0530.05020.21
7.0.20.0300.05720.29
7.0.10.0000.04720.30
7.0.00.0070.04320.25
5.6.280.0070.07321.14
5.6.210.0100.07720.74
5.6.200.0070.06718.31
5.6.190.0070.07720.55
5.6.180.0270.04320.60
5.6.170.0270.04020.79
5.6.160.0070.07320.59
5.6.150.0030.07718.20
5.6.140.0170.07318.37
5.6.130.0070.08318.25
5.6.120.0070.08021.21
5.6.110.0200.06721.23
5.6.100.0170.06721.18
5.6.90.0070.04021.17
5.6.80.0100.07720.44
5.5.350.0170.08320.59
5.5.340.0030.04318.12
5.5.330.0270.05320.39
5.5.320.0400.04320.51
5.5.310.0230.06720.38
5.5.300.0070.05018.18
5.5.290.0000.07018.07
5.5.280.0070.07321.02
5.5.270.0070.07020.77
5.5.260.0100.08321.01
5.5.250.0100.07020.80
5.5.240.0170.07720.21
5.4.450.0200.04719.47
5.4.440.0030.06019.50
5.4.430.0800.05719.51
5.4.420.0970.05719.52
5.4.410.0870.05719.52
5.4.400.0970.05019.18
5.4.390.0870.04718.98
5.4.380.0330.05718.55
5.4.370.0330.05318.86
5.4.360.0400.06718.89
5.4.350.0400.08318.68
5.4.340.0300.06318.93
5.4.320.0090.04512.69
5.4.310.0040.04012.68
5.4.300.0040.04412.69
5.4.290.0080.04212.69
5.4.280.0050.03612.58
5.4.270.0110.03512.58
5.4.260.0070.03512.58
5.4.250.0050.03812.58
5.4.240.0070.04312.59
5.4.230.0080.03912.57
5.4.220.0070.04412.58
5.4.210.0050.04312.57
5.4.200.0050.04112.57
5.4.190.0070.04312.57
5.4.180.0070.04612.57
5.4.170.0040.04112.59
5.4.160.0110.03212.58
5.4.150.0070.03612.57
5.4.140.0060.03812.26
5.4.130.0050.03712.25
5.4.120.0070.04412.21
5.4.110.0080.03512.20
5.4.100.0060.04112.21
5.4.90.0090.03912.20
5.4.80.0050.03912.20
5.4.70.0080.03512.20
5.4.60.0040.03912.20
5.4.50.0070.03312.19
5.4.40.0080.03912.18
5.4.30.0050.04212.18
5.4.20.0060.03612.18
5.4.10.0080.03912.17
5.4.00.0060.03411.66
5.3.290.0100.04212.95
5.3.280.0100.04212.88
5.3.270.0090.03712.89
5.3.260.0080.04012.89
5.3.250.0080.04012.89
5.3.240.0050.04312.89
5.3.230.0070.03912.89
5.3.220.0070.03912.85
5.3.210.0060.04012.86
5.3.200.0070.04012.85
5.3.190.0070.04112.86
5.3.180.0100.03912.85
5.3.170.0050.03912.85
5.3.160.0070.03712.85
5.3.150.0060.04112.85
5.3.140.0080.04312.84
5.3.130.0090.04112.83
5.3.120.0070.04212.84
5.3.110.0060.03912.83
5.3.100.0080.04112.32
5.3.90.0060.04012.30
5.3.80.0060.04012.29
5.3.70.0050.03612.29
5.3.60.0090.03412.27
5.3.50.0100.03212.22
5.3.40.0030.03912.22
5.3.30.0060.03412.19
5.3.20.0060.03411.97
5.3.10.0030.03811.93
5.3.00.0060.03511.91
5.2.170.0040.0309.43
5.2.160.0040.0309.42
5.2.150.0050.0309.43
5.2.140.0040.0339.42
5.2.130.0110.0309.38
5.2.120.0080.0309.38
5.2.110.0090.0339.39
5.2.100.0040.0329.38
5.2.90.0070.0289.38
5.2.80.0030.0349.37
5.2.70.0040.0359.37
5.2.60.0070.0299.33
5.2.50.0070.0329.29
5.2.40.0050.0399.27
5.2.30.0020.0339.25
5.2.20.0040.0289.28
5.2.10.0050.0329.17
5.2.00.0030.0319.04
5.1.60.0040.0248.35
5.1.50.0040.0258.34
5.1.40.0080.0228.32
5.1.30.0050.0268.68
5.1.20.0070.0278.69
5.1.10.0050.0298.41
5.1.00.0060.0278.41
5.0.50.0040.0236.89
5.0.40.0050.0306.75
5.0.30.0040.0346.57
5.0.20.0030.0196.54
5.0.10.0030.0216.52
5.0.00.0060.0326.51
4.4.90.0030.0224.78
4.4.80.0040.0264.75
4.4.70.0050.0194.75
4.4.60.0030.0154.76
4.4.50.0040.0144.77
4.4.40.0020.0264.71
4.4.30.0030.0154.75
4.4.20.0040.0154.84
4.4.10.0030.0154.85
4.4.00.0040.0234.76
4.3.110.0030.0154.67
4.3.100.0030.0204.67
4.3.90.0040.0194.63
4.3.80.0040.0274.59
4.3.70.0010.0224.63
4.3.60.0020.0194.62
4.3.50.0030.0204.63
4.3.40.0040.0324.55
4.3.30.0020.0223.35
4.3.20.0030.0173.33
4.3.10.0020.0163.24
4.3.00.0130.01316.39

preferences:
46.41 ms | 401 KiB | 5 Q