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

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.0110.00318.53
8.3.50.0130.00722.24
8.3.40.0070.00719.09
8.3.30.0070.00719.26
8.3.20.0040.00420.71
8.3.10.0050.00320.87
8.3.00.0040.00418.00
8.2.180.0140.00416.85
8.2.170.0100.01022.96
8.2.160.0100.00320.84
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00726.16
8.2.120.0040.00422.73
8.2.110.0030.00622.94
8.2.100.0080.00320.76
8.2.90.0040.00419.61
8.2.80.0090.00017.97
8.2.70.0040.00418.00
8.2.60.0070.00318.18
8.2.50.0040.00418.07
8.2.40.0080.00018.46
8.2.30.0000.00719.71
8.2.20.0060.00317.91
8.2.10.0040.00418.49
8.2.00.0040.00418.11
8.1.280.0150.00325.92
8.1.270.0040.00424.22
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00624.14
8.1.230.0090.00319.48
8.1.220.0040.00418.04
8.1.210.0030.00618.77
8.1.200.0030.00717.61
8.1.190.0040.00417.61
8.1.180.0040.00418.10
8.1.170.0090.00318.89
8.1.160.0050.00322.30
8.1.150.0040.00419.11
8.1.140.0060.00317.81
8.1.130.0000.00718.19
8.1.120.0000.00717.85
8.1.110.0030.00517.83
8.1.100.0030.00517.70
8.1.90.0000.00717.86
8.1.80.0020.00517.74
8.1.70.0030.00317.52
8.1.60.0000.00817.67
8.1.50.0040.00417.91
8.1.40.0060.00317.79
8.1.30.0030.00617.96
8.1.20.0040.00418.05
8.1.10.0030.00517.93
8.1.00.0000.00917.72
8.0.300.0000.00718.77
8.0.290.0050.00217.00
8.0.280.0000.00718.80
8.0.270.0030.00317.54
8.0.260.0030.00317.51
8.0.250.0070.00017.40
8.0.240.0040.00417.44
8.0.230.0040.00417.40
8.0.220.0030.00317.09
8.0.210.0070.00017.09
8.0.200.0030.00317.25
8.0.190.0030.00317.44
8.0.180.0000.00717.37
8.0.170.0030.00517.23
8.0.160.0070.00017.24
8.0.150.0000.00717.29
8.0.140.0040.00417.14
8.0.130.0060.00313.79
8.0.120.0030.00517.32
8.0.110.0000.00717.30
8.0.100.0000.00717.33
8.0.90.0040.00417.26
8.0.80.0130.00617.24
8.0.70.0050.00317.26
8.0.60.0000.00817.26
8.0.50.0020.00517.32
8.0.30.0150.00817.36
8.0.20.0120.01417.40
8.0.10.0070.00017.36
8.0.00.0100.00817.17
7.4.330.0030.00315.34
7.4.320.0060.00016.72
7.4.300.0000.00716.93
7.4.290.0030.00316.94
7.4.280.0080.00016.88
7.4.270.0000.00816.91
7.4.260.0030.00316.88
7.4.250.0050.00316.86
7.4.240.0020.00516.95
7.4.230.0030.00316.67
7.4.220.0150.00616.73
7.4.210.0070.00716.86
7.4.200.0000.00716.88
7.4.160.0070.01116.82
7.4.150.0120.00617.40
7.4.140.0110.00817.86
7.4.130.0110.00716.86
7.4.120.0080.01016.96
7.4.110.0090.00916.89
7.4.100.0030.01416.69
7.4.90.0060.01216.86
7.4.80.0160.00718.80
7.4.70.0180.00416.84
7.4.60.0030.01316.83
7.4.50.0000.00416.77
7.4.40.0150.00616.93
7.4.30.0090.01116.83
7.4.10.0040.01514.80
7.4.00.0090.00514.86
7.3.330.0000.00513.32
7.3.320.0000.00713.32
7.3.310.0000.00716.73
7.3.300.0000.00616.55
7.3.290.0070.01316.63
7.3.280.0040.01116.64
7.3.270.0160.00317.40
7.3.260.0100.01316.80
7.3.250.0070.01016.71
7.3.240.0160.00616.66
7.3.230.0080.00816.51
7.3.210.0120.00616.57
7.3.200.0060.01319.39
7.3.190.0150.00316.77
7.3.180.0060.01116.64
7.3.170.0140.00316.52
7.3.160.0060.01016.86
7.3.130.0110.00414.69
7.3.120.0080.00714.90
7.3.110.0070.01014.98
7.3.100.0060.00614.86
7.3.90.0030.01014.72
7.3.80.0060.00815.13
7.3.70.0050.00814.74
7.3.60.0090.00514.82
7.3.50.0030.00914.85
7.3.40.0050.00914.85
7.3.30.0050.00914.77
7.3.20.0100.00616.57
7.3.10.0060.01016.62
7.3.00.0090.00516.56
7.2.330.0140.01116.98
7.2.320.0100.00717.08
7.2.310.0150.00316.87
7.2.300.0000.01716.73
7.2.290.0090.00916.77
7.2.260.0060.01214.69
7.2.250.0030.01714.76
7.2.240.0000.01115.10
7.2.230.0050.00715.13
7.2.220.0060.00914.93
7.2.210.0080.00515.15
7.2.200.0030.01314.81
7.2.190.0040.01014.92
7.2.180.0130.00214.99
7.2.170.0050.00714.92
7.2.160.0050.01014.91
7.2.150.0060.00716.88
7.2.140.0070.00716.86
7.2.130.0090.00916.86
7.2.120.0110.00616.96
7.2.110.0110.00616.79
7.2.100.0090.00716.80
7.2.90.0090.00616.97
7.2.80.0070.00816.82
7.2.70.0080.00616.83
7.2.60.0090.00616.93
7.2.50.0100.00616.91
7.2.40.0070.00616.88
7.2.30.0080.01016.87
7.2.20.0080.00916.82
7.2.10.0110.00416.88
7.2.00.0040.01017.61
7.1.330.0050.01115.87
7.1.320.0080.00715.77
7.1.310.0040.00715.77
7.1.300.0040.01215.95
7.1.290.0060.00615.82
7.1.280.0070.00415.68
7.1.270.0040.00815.74
7.1.260.0040.00815.71
7.1.250.0090.00515.64
7.1.240.0090.00515.67
7.1.230.0040.00915.66
7.1.220.0110.00515.89
7.1.210.0090.00615.85
7.1.200.0100.00515.69
7.1.190.0050.00715.76
7.1.180.0100.00515.84
7.1.170.0040.01015.93
7.1.160.0080.00915.97
7.1.150.0070.00815.76
7.1.140.0090.00815.79
7.1.130.0130.00515.75
7.1.120.0120.00615.74
7.1.110.0120.00615.79
7.1.100.0050.00916.49
7.1.90.0120.00915.73
7.1.80.0140.00515.69
7.1.70.0080.00716.28
7.1.60.0060.01217.00
7.1.50.0080.01116.20
7.1.40.0120.00515.93
7.1.30.0110.00715.73
7.1.20.0120.00315.57
7.1.10.0060.01015.63
7.1.00.0090.02918.07
7.0.330.0050.00915.37
7.0.320.0080.01015.41
7.0.310.0110.00215.36
7.0.300.0060.01015.50
7.0.290.0080.00815.24
7.0.280.0110.00515.32
7.0.270.0080.00815.54
7.0.260.0110.00815.35
7.0.250.0100.01015.29
7.0.240.0080.00915.37
7.0.230.0140.00715.48
7.0.220.0080.00815.60
7.0.210.0080.00615.44
7.0.200.0070.00815.92
7.0.190.0030.00915.45
7.0.180.0020.01315.44
7.0.170.0050.01115.50
7.0.160.0060.00915.42
7.0.150.0100.00615.48
7.0.140.0080.02817.64
7.0.130.0040.00915.42
7.0.120.0070.00715.43
7.0.110.0050.00915.33
7.0.100.0110.00815.44
7.0.90.0120.00615.29
7.0.80.0140.00415.28
7.0.70.0110.00415.30
7.0.60.0090.03216.94
7.0.50.0070.01816.29
7.0.40.0080.03315.84
7.0.30.0130.03015.82
7.0.20.0110.03215.94
7.0.10.0050.02015.75
7.0.00.0100.01915.82
5.6.400.0030.01014.57
5.6.390.0070.00314.37
5.6.380.0080.00514.29
5.6.370.0110.00314.17
5.6.360.0050.00714.43
5.6.350.0110.00414.35
5.6.340.0070.00214.37
5.6.330.0060.01114.60
5.6.320.0000.01414.44
5.6.310.0070.00514.41
5.6.300.0080.00514.28
5.6.290.0050.01014.47
5.6.280.0060.03016.67
5.6.270.0040.00814.20
5.6.260.0070.00814.37
5.6.250.0040.01114.18
5.6.240.0060.01114.21
5.6.230.0100.00314.14
5.6.220.0060.01114.01
5.6.210.0070.03316.69
5.6.200.0140.02415.74
5.6.190.0090.03316.58
5.6.180.0140.02116.61
5.6.170.0110.03316.49
5.6.160.0130.02416.48
5.6.150.0030.02915.55
5.6.140.0080.02115.79
5.6.130.0120.03015.74
5.6.120.0110.02916.69
5.6.110.0040.03616.71
5.6.100.0060.02216.58
5.6.90.0090.01816.78
5.6.80.0050.02616.28
5.6.70.0120.01014.19
5.6.60.0100.00914.35
5.6.50.0120.00614.15
5.6.40.0080.00914.31
5.6.30.0070.00714.32
5.6.20.0080.00914.18
5.6.10.0120.00714.13
5.6.00.0130.00514.22
5.5.380.0050.01012.62
5.5.370.0040.00812.55
5.5.360.0070.00712.69
5.5.350.0200.03015.41
5.5.340.0100.03214.58
5.5.330.0060.03415.27
5.5.320.0200.03215.33
5.5.310.0210.02815.23
5.5.300.0110.01914.45
5.5.290.0140.02514.48
5.5.280.0030.03515.38
5.5.270.0070.02015.29
5.5.260.0120.03115.33
5.5.250.0170.02115.17
5.5.240.0120.02715.19
5.5.230.0140.00812.74
5.5.220.0110.01012.74
5.5.210.0160.00912.56
5.5.200.0170.01012.79
5.5.190.0100.01012.78
5.5.180.0180.00812.71
5.5.170.0120.00512.61
5.5.160.0110.00912.84
5.5.150.0200.00412.70
5.5.140.0110.00612.62
5.5.130.0060.00712.55
5.5.120.0110.00612.57
5.5.110.0070.00912.56
5.5.100.0140.00612.54
5.5.90.0020.01012.55
5.5.80.0100.00612.69
5.5.70.0040.00812.66
5.5.60.0120.00412.46
5.5.50.0060.00512.52
5.5.40.0050.00812.62
5.5.30.0130.00512.75
5.5.20.0070.00512.57
5.5.10.0050.00512.64
5.5.00.0080.00512.39
5.4.450.0470.01613.86
5.4.440.0300.02513.90
5.4.430.0260.02113.71
5.4.420.0310.02213.88
5.4.410.0300.02013.82
5.4.400.0420.01513.66
5.4.390.0260.02613.63
5.4.380.0160.02013.54
5.4.370.0180.01913.62
5.4.360.0180.02613.51
5.4.350.0160.02413.53
5.4.340.0130.02213.64
5.4.330.0080.00410.92
5.4.320.0080.01611.69
5.4.310.0080.01511.67
5.4.300.0110.01711.44
5.4.290.0060.01611.57
5.4.280.0090.01711.59
5.4.270.0040.01811.52
5.4.260.0080.01511.48
5.4.250.0110.01411.45
5.4.240.0080.01611.48
5.4.230.0050.02111.38
5.4.220.0070.01711.46
5.4.210.0090.01811.42
5.4.200.0050.01811.35
5.4.190.0080.01511.34
5.4.180.0070.01711.34
5.4.170.0100.01511.46
5.4.160.0070.01711.36
5.4.150.0060.01611.25
5.4.140.0060.02111.28
5.4.130.0050.02011.36
5.4.120.0010.02011.36
5.4.110.0060.01611.25
5.4.100.0080.01511.25
5.4.90.0080.01511.32
5.4.80.0020.01911.16
5.4.70.0040.02011.30
5.4.60.0080.01611.19
5.4.50.0050.01611.25
5.4.40.0060.01411.29
5.4.30.0040.01711.30
5.4.20.0070.01811.12
5.4.10.0050.01611.22
5.4.00.0080.01511.04
5.3.290.0090.02311.85
5.3.280.0080.02211.80
5.3.270.0100.02211.81
5.3.260.0050.02711.81
5.3.250.0090.02211.81
5.3.240.0070.01811.81
5.3.230.0040.02311.81
5.3.220.0040.02311.79
5.3.210.0050.02111.79
5.3.200.0070.02111.79
5.3.190.0060.01911.79
5.3.180.0100.01911.79
5.3.170.0110.01811.79
5.3.160.0070.01911.79
5.3.150.0090.02111.79
5.3.140.0040.02311.79
5.3.130.0060.01911.79
5.3.120.0100.02011.78
5.3.110.0070.02011.78
5.3.100.0040.02111.53
5.3.90.0040.02411.52
5.3.80.0060.02411.51
5.3.70.0020.02411.51
5.3.60.0040.02111.51
5.3.50.0080.02411.48
5.3.40.0100.02011.48
5.3.30.0050.01911.46
5.3.20.0040.02511.35
5.3.10.0050.01811.33
5.3.00.0050.02111.32
5.2.170.0040.01710.08
5.2.160.0020.02110.08
5.2.150.0050.01510.08
5.2.140.0040.01710.08
5.2.130.0070.01510.05
5.2.120.0050.01710.05
5.2.110.0050.01610.06
5.2.100.0020.02010.06
5.2.90.0010.02010.06
5.2.80.0080.01910.05
5.2.70.0040.02010.05
5.2.60.0100.01510.03
5.2.50.0060.01510.01
5.2.40.0080.01510.00
5.2.30.0070.0159.99
5.2.20.0020.01910.00
5.2.10.0090.0189.96
5.2.00.0040.0209.89
5.1.60.0060.0139.54
5.1.50.0040.0189.54
5.1.40.0060.0179.53
5.1.30.0040.0159.71
5.1.20.0080.0159.71
5.1.10.0060.0139.57
5.1.00.0040.0179.57
5.0.50.0030.0138.82
5.0.40.0050.0108.75
5.0.30.0030.0178.66
5.0.20.0020.0138.64
5.0.10.0020.0148.63
5.0.00.0040.0178.63
4.4.90.0020.0107.74
4.4.80.0020.0097.73
4.4.70.0020.0127.73
4.4.60.0040.0077.73
4.4.50.0030.0127.74
4.4.40.0050.0127.71
4.4.30.0020.0107.73
4.4.20.0050.0077.78
4.4.10.0050.0107.78
4.4.00.0050.0167.73
4.3.110.0010.0127.69
4.3.100.0030.0127.69
4.3.90.0010.0117.67
4.3.80.0020.0177.65
4.3.70.0020.0127.67
4.3.60.0030.0117.67
4.3.50.0030.0107.67
4.3.40.0040.0117.63
4.3.30.0010.0167.03
4.3.20.0030.0077.02
4.3.10.0010.0146.97
4.3.00.0090.00613.55

preferences:
45.69 ms | 401 KiB | 5 Q