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-lines> <line>PHP solves all my web problems</line> </great-lines> <rating type="thumbs">7</rating> <rating type="stars">5</rating> </movie> </movies> XML; $sml = new SimpleXMLElement ($xml); $result = $sml->xpath('/movies/movie/great-lines'); var_dump($result);

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.0150.00718.53
8.3.60.0120.00318.56
8.3.50.0120.01022.22
8.3.40.0100.01019.14
8.3.30.0170.00019.47
8.3.20.0040.00420.49
8.3.10.0030.00620.86
8.3.00.0000.00817.75
8.2.190.0070.01016.88
8.2.180.0150.00417.00
8.2.170.0060.00919.34
8.2.160.0150.00022.96
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00022.59
8.2.110.0030.00621.55
8.2.100.0090.00318.09
8.2.90.0000.00921.54
8.2.80.0050.00318.34
8.2.70.0000.00818.18
8.2.60.0030.00618.41
8.2.50.0140.00018.10
8.2.40.0040.00420.83
8.2.30.0050.00319.62
8.2.20.0040.00417.99
8.2.10.0080.00018.46
8.2.00.0090.00018.05
8.1.280.0100.00725.92
8.1.270.0080.00024.21
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00322.85
8.1.230.0080.00321.32
8.1.220.0090.00018.16
8.1.210.0050.00319.00
8.1.200.0040.00417.73
8.1.190.0030.00617.47
8.1.180.0000.00818.10
8.1.170.0060.00618.73
8.1.160.0070.00022.56
8.1.150.0040.00419.17
8.1.140.0030.00617.77
8.1.130.0040.00418.30
8.1.120.0040.00417.85
8.1.110.0040.00417.85
8.1.100.0030.00517.86
8.1.90.0000.00717.85
8.1.80.0000.00817.59
8.1.70.0070.00017.65
8.1.60.0030.00517.88
8.1.50.0060.00317.68
8.1.40.0060.00317.80
8.1.30.0030.00517.96
8.1.20.0080.00017.91
8.1.10.0000.00717.74
8.1.00.0030.00617.90
8.0.300.0000.00820.25
8.0.290.0040.00417.13
8.0.280.0040.00418.83
8.0.270.0080.00017.61
8.0.260.0060.00017.63
8.0.250.0050.00317.33
8.0.240.0080.00017.18
8.0.230.0050.00217.18
8.0.220.0030.00317.10
8.0.210.0000.00717.39
8.0.200.0000.00617.34
8.0.190.0030.00417.39
8.0.180.0000.00817.26
8.0.170.0080.00017.38
8.0.160.0050.00317.32
8.0.150.0000.00717.30
8.0.140.0040.00417.30
8.0.130.0040.00413.79
8.0.120.0000.00817.08
8.0.110.0050.00217.36
8.0.100.0000.00717.16
8.0.90.0000.00717.37
8.0.80.0070.01317.29
8.0.70.0000.00817.34
8.0.60.0040.00417.27
8.0.50.0020.00517.20
8.0.30.0100.01017.34
8.0.20.0110.00817.52
8.0.10.0070.00017.22
8.0.00.0110.00717.06
7.4.330.0050.00015.39
7.4.320.0030.00316.99
7.4.300.0030.00316.92
7.4.290.0000.00716.84
7.4.280.0070.00016.82
7.4.270.0000.00716.80
7.4.260.0070.00016.96
7.4.250.0050.00316.84
7.4.240.0040.00316.99
7.4.230.0050.00216.90
7.4.220.0090.00916.80
7.4.210.0040.01116.95
7.4.200.0000.00716.89
7.4.160.0150.00916.78
7.4.150.0130.00717.40
7.4.140.0130.00917.86
7.4.130.0100.00816.91
7.4.120.0100.00716.95
7.4.110.0100.00716.71
7.4.100.0150.00317.07
7.4.90.0110.00717.02
7.4.80.0160.00618.80
7.4.70.0100.00716.84
7.4.60.0170.00016.93
7.4.50.0000.00816.91
7.4.40.0070.01317.00
7.4.30.0130.00316.89
7.4.00.0070.00715.28
7.3.330.0000.00513.52
7.3.320.0000.00713.50
7.3.310.0030.00316.72
7.3.300.0060.00016.63
7.3.290.0070.00716.63
7.3.280.0130.00416.64
7.3.270.0130.00717.40
7.3.260.0070.01116.91
7.3.250.0100.00716.63
7.3.240.0090.00916.64
7.3.230.0080.00816.79
7.3.210.0060.01516.67
7.3.200.0110.00619.39
7.3.190.0030.01916.63
7.3.180.0060.01016.79
7.3.170.0060.01716.54
7.3.160.0170.00016.68
7.3.10.0060.00416.64
7.3.00.0070.00916.71
7.2.330.0030.01316.89
7.2.320.0130.00416.82
7.2.310.0070.01016.99
7.2.300.0060.01217.07
7.2.290.0120.01116.66
7.2.130.0140.00116.86
7.2.120.0030.00816.98
7.2.110.0070.00916.59
7.2.100.0050.00516.78
7.2.90.0090.00616.74
7.2.80.0070.00716.88
7.2.70.0110.00316.74
7.2.60.0050.00516.83
7.2.50.0070.01216.97
7.2.40.0110.00816.98
7.2.30.0030.00916.90
7.2.20.0080.00716.98
7.2.10.0030.00817.04
7.2.00.0030.01117.72
7.1.250.0090.00515.71
7.1.100.0030.01017.85
7.1.70.0000.01017.41
7.1.60.0160.00919.32
7.1.50.0060.00616.65
7.1.00.0100.07022.63
7.0.200.0050.00516.91
7.0.140.0100.06722.13
7.0.60.0230.08321.84
7.0.50.0070.07718.07
7.0.40.0070.07020.49
7.0.30.0230.04320.21
7.0.20.0100.04720.36
7.0.10.0130.08320.45
7.0.00.0100.04320.42
5.6.280.0070.06721.23
5.6.210.0070.06720.96
5.6.200.0000.06718.28
5.6.190.0070.08720.85
5.6.180.0400.05720.66
5.6.170.0330.04320.69
5.6.160.0070.04720.59
5.6.150.0100.06318.38
5.6.140.0070.04318.27
5.6.130.0100.06718.39
5.6.120.0030.08721.28
5.6.110.0030.04021.12
5.6.100.0070.07721.24
5.6.90.0030.06721.19
5.6.80.0130.05720.51
5.5.350.0270.07320.54
5.5.340.0030.08318.21
5.5.330.0100.07020.61
5.5.320.0600.05720.39
5.5.310.0300.08020.66
5.5.300.0030.04718.19
5.5.290.0070.05718.07
5.5.280.0100.07320.99
5.5.270.0000.04320.96
5.5.260.0100.08021.02
5.5.250.0070.06020.77
5.5.240.0100.08020.31
5.4.450.0370.06719.52
5.4.440.0330.07019.68
5.4.430.0230.03319.69
5.4.420.0330.05719.66
5.4.410.0300.07019.49
5.4.400.0300.04319.04
5.4.390.0370.04719.36
5.4.380.0330.04719.03
5.4.370.0400.06319.03
5.4.360.0200.04319.37
5.4.350.0270.06719.31
5.4.340.0130.04719.31
5.4.320.0300.07019.21
5.4.310.0300.07019.44
5.4.300.0300.06319.04
5.4.290.0270.06719.37
5.4.280.0200.06719.31
5.4.270.0270.05319.29
5.4.260.0200.04719.20
5.4.250.0270.04719.30
5.4.240.0370.07019.41
5.4.230.0370.06719.38
5.4.220.0300.05019.37
5.4.210.0230.04019.31
5.4.200.0270.05319.19
5.4.190.0200.04019.19
5.4.180.0330.05719.29
5.4.170.0230.04319.18
5.4.160.0170.04019.34
5.4.150.0200.05719.30
5.4.140.0030.04016.52
5.4.130.0200.03316.51
5.4.120.0170.04016.54
5.4.110.0130.04016.50
5.4.100.0130.04016.64
5.4.90.0170.04016.66
5.4.80.0270.05316.66
5.4.70.0130.04316.57
5.4.60.0270.07016.54
5.4.50.0270.06016.63
5.4.40.0270.03316.47
5.4.30.0200.03716.63
5.4.20.0200.03716.50
5.4.10.0170.04016.43
5.4.00.0200.03316.00
5.3.290.0230.05014.86
5.3.280.0270.07314.75
5.3.270.0330.03714.79
5.3.260.0200.03714.76
5.3.250.0130.04014.75
5.3.240.0200.03314.71
5.3.230.0230.03714.80
5.3.220.0170.04014.78
5.3.210.0200.03314.73
5.3.200.0200.03314.76
5.3.190.0170.03714.68
5.3.180.0230.03714.73
5.3.170.0230.07014.76
5.3.160.0170.04014.73
5.3.150.0100.04714.59
5.3.140.0330.06014.80
5.3.130.0200.05014.72
5.3.120.0130.04014.63
5.3.110.0130.04014.55
5.3.100.0200.03314.11
5.3.90.0200.03314.19
5.3.80.0170.04313.99
5.3.70.0230.03014.14
5.3.60.0230.03014.18
5.3.50.0200.03713.95
5.3.40.0100.05014.09
5.3.30.0200.03014.08
5.3.20.0300.02313.85
5.3.10.0170.04013.64
5.3.00.0230.03013.81
5.2.170.0100.03011.27
5.2.160.0200.02311.27
5.2.150.0130.03011.35
5.2.140.0170.03011.31
5.2.130.0200.02311.17
5.2.120.0200.02311.24
5.2.110.0100.03311.30
5.2.100.0130.02711.24
5.2.90.0200.02311.26
5.2.80.0230.02711.32
5.2.70.0170.03011.16
5.2.60.0130.03311.26
5.2.50.0130.02711.16
5.2.40.0130.03011.23
5.2.30.0100.03011.13
5.2.20.0130.02711.05
5.2.10.0130.02711.09
5.2.00.0130.03310.94
5.1.60.0230.04010.07
5.1.50.0100.03010.16
5.1.40.0200.04010.14
5.1.30.0170.02310.41
5.1.20.0130.02310.68
5.1.10.0170.05010.35
5.1.00.0130.05010.31
5.0.50.0030.0278.62
5.0.40.0070.0338.73
5.0.30.0130.0278.48
5.0.20.0100.0208.42
5.0.10.0070.0208.30
5.0.00.0070.0608.29
4.4.90.0070.0137.93
4.4.80.0030.0177.93
4.4.70.0030.0177.93
4.4.60.0030.0137.93
4.4.50.0030.0177.93
4.4.40.0030.0437.93
4.4.30.0070.0237.93
4.4.20.0130.0337.93
4.4.10.0100.0177.93
4.4.00.0030.0277.93
4.3.110.0170.0107.93
4.3.100.0100.0177.93
4.3.90.0170.0107.93
4.3.80.0070.0237.93
4.3.70.0130.0307.93
4.3.60.0200.0277.93
4.3.50.0130.0207.93
4.3.40.0100.0377.93
4.3.30.0030.0177.93
4.3.20.0100.0207.93
4.3.10.0030.0337.93
4.3.00.0100.0337.93

preferences:
69.67 ms | 401 KiB | 5 Q