3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = <<<XML <row> <entry XY="1" al="23" se="5" ag="fgh"> </entry> <entry XY="1" al="23" se="5" ag="fgh">Content1</entry> <entry XY="1" al="23" se="5" ag="fgh">Content2</entry> <entry XY="1" al="23" se="5" ag="fgh"> </entry> <entry XY="1" al="23" se="5" ag="fgh">Content3</entry> </row> XML; $xml = simplexml_load_string($x); $y = $xml->xpath("//entry[not(text()) and (text()!=' ')]"); var_dump($y);

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.0120.00316.85
8.3.50.0030.01617.74
8.3.40.0120.00318.96
8.3.30.0090.00618.96
8.3.20.0030.00518.89
8.3.10.0050.00519.20
8.3.00.0070.00419.26
8.2.180.0100.01018.66
8.2.170.0070.00722.96
8.2.160.0000.01520.89
8.2.150.0120.00324.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00020.63
8.2.110.0100.00019.67
8.2.100.0060.00618.09
8.2.90.0040.00419.61
8.2.80.0000.00818.00
8.2.70.0040.00417.88
8.2.60.0090.00017.93
8.2.50.0000.00818.07
8.2.40.0080.00018.59
8.2.30.0080.00018.20
8.2.20.0000.00717.83
8.2.10.0040.00418.04
8.2.00.0090.00317.98
8.1.280.0060.01525.92
8.1.270.0080.00024.66
8.1.260.0070.00726.35
8.1.250.0080.00028.09
8.1.240.0040.00418.14
8.1.230.0040.00817.77
8.1.220.0060.00318.04
8.1.210.0040.00418.77
8.1.200.0040.00417.47
8.1.190.0000.00817.79
8.1.180.0080.00018.10
8.1.170.0000.00819.01
8.1.160.0040.00419.20
8.1.150.0070.00018.95
8.1.140.0040.00417.77
8.1.130.0000.00718.14
8.1.120.0070.00017.80
8.1.110.0070.00017.80
8.1.100.0030.00317.75
8.1.90.0040.00417.72
8.1.80.0000.00717.62
8.1.70.0040.00417.77
8.1.60.0060.00317.88
8.1.50.0040.00417.77
8.1.40.0030.00517.85
8.1.30.0040.00417.82
8.1.20.0000.00817.96
8.1.10.0070.00017.60
8.1.00.0040.00417.51
8.0.300.0000.00718.77
8.0.290.0000.00817.00
8.0.280.0040.00418.74
8.0.270.0040.00417.46
8.0.260.0070.00017.08
8.0.250.0040.00417.36
8.0.240.0070.00017.13
8.0.230.0050.00217.21
8.0.220.0070.00017.25
8.0.210.0030.00617.33
8.0.200.0000.00617.27
8.0.190.0050.00317.34
8.0.180.0000.00717.11
8.0.170.0090.00017.03
8.0.160.0000.00717.14
8.0.150.0040.00417.18
8.0.140.0060.00517.28
8.0.130.0030.00313.61
8.0.120.0050.00217.27
8.0.110.0000.00817.16
8.0.100.0050.00217.11
8.0.90.0000.00717.05
8.0.80.0100.00717.21
8.0.70.0000.00817.30
8.0.60.0000.00717.13
8.0.50.0050.00317.21
8.0.30.0130.01317.47
8.0.20.0050.01817.43
8.0.10.0050.00217.27
8.0.00.0090.01016.96
7.4.330.0070.00013.16
7.4.320.0060.00016.69
7.4.300.0030.00316.95
7.4.290.0100.00016.63
7.4.280.0040.00416.92
7.4.270.0030.00316.99
7.4.260.0030.00313.47
7.4.250.0040.00416.69
7.4.240.0000.00716.90
7.4.230.0070.00016.71
7.4.220.0100.01016.85
7.4.210.0070.00816.83
7.4.200.0050.00317.00
7.4.190.0000.00716.94
7.4.160.0150.00016.70
7.4.150.0110.00716.79
7.4.140.0130.00616.73
7.4.130.0160.00416.89
7.4.120.0130.00616.72
7.4.110.0090.00916.85
7.4.100.0080.00916.57
7.4.90.0150.00316.67
7.4.80.0100.00719.39
7.4.70.0100.00716.69
7.4.60.0130.00316.68
7.4.50.0040.00916.72
7.4.40.0070.01116.64
7.4.30.0060.01016.66
7.4.00.0070.01014.94
7.3.330.0050.00213.45
7.3.320.0050.00013.46
7.3.310.0070.00016.48
7.3.300.0000.00716.52
7.3.290.0060.01316.57
7.3.280.0070.00816.59
7.3.270.0070.01116.57
7.3.260.0150.00416.50
7.3.250.0100.00916.61
7.3.240.0190.00216.75
7.3.230.0140.00316.81
7.3.210.0100.00716.52
7.3.200.0100.01316.47
7.3.190.0100.01016.57
7.3.180.0130.00616.91
7.3.170.0080.00716.50
7.3.160.0100.00616.72
7.3.120.0090.00614.61
7.3.10.0100.00616.97
7.3.00.0030.00716.85
7.2.330.0130.01016.59
7.2.320.0030.01416.51
7.2.310.0150.01116.62
7.2.300.0120.00617.00
7.2.290.0150.00416.93
7.2.130.0060.00917.25
7.2.120.0040.00716.67
7.2.110.0100.00616.56
7.2.100.0100.00716.94
7.2.90.0030.00916.96
7.2.80.0060.00916.78
7.2.70.0090.00616.87
7.2.60.0030.01216.84
7.2.50.0090.00917.04
7.2.40.0110.00416.91
7.2.30.0070.00716.88
7.2.20.0070.00716.91
7.2.10.0100.00316.77
7.2.00.0050.00518.29
7.1.250.0040.00815.86
7.1.200.0000.01115.64
7.1.100.0060.00617.91
7.1.70.0030.00517.06
7.1.60.0040.01419.40
7.1.50.0100.01017.02
7.1.00.0030.07722.54
7.0.200.0290.00414.94
7.0.140.0070.07022.27
7.0.120.0070.06022.34
7.0.60.0030.04020.24
7.0.50.0070.08017.96
7.0.40.0070.08720.35
7.0.30.0330.04720.28
7.0.20.0170.04320.19
7.0.10.0030.04320.33
7.0.00.0000.04320.31
5.6.280.0000.07721.04
5.6.210.0000.04320.79
5.6.200.0070.06018.38
5.6.190.0030.07320.92
5.6.180.4100.04720.89
5.6.170.0200.08720.64
5.6.160.0070.05320.69
5.6.150.0100.06718.30
5.6.140.0100.05718.37
5.6.130.0130.04318.32
5.6.120.0070.05021.27
5.6.110.0100.04321.30
5.6.100.0100.05721.20
5.6.90.0070.07321.26
5.6.80.0070.07720.51
5.6.70.4630.04320.63
5.5.350.0330.06320.62
5.5.340.0100.07018.14
5.5.330.0070.05320.30
5.5.320.3730.04320.39
5.5.310.0270.06020.37
5.5.300.0070.06018.12
5.5.290.0030.06018.19
5.5.280.0100.04020.84
5.5.270.0130.06321.08
5.5.260.0070.07020.94
5.5.250.0130.07320.75
5.5.240.0130.05320.15
5.4.450.0200.03019.46
5.4.440.0000.04319.63
5.4.430.0030.03719.29
5.4.420.0230.03719.63
5.4.410.0030.03719.50
5.4.400.0000.04019.39
5.4.390.0030.04019.14
5.4.380.0130.03019.16
5.4.370.0070.03319.27
5.4.360.0070.03319.13
5.4.350.0070.04718.94
5.4.340.0000.04019.36
5.4.320.0070.03319.31
5.4.310.0000.04319.31
5.4.300.0070.07719.16
5.4.290.0070.08019.41
5.4.280.0230.04319.23
5.4.270.0070.05019.32
5.4.260.0000.06319.39
5.4.250.0070.03719.35
5.4.240.0070.03719.36
5.4.230.0130.05319.27
5.4.220.0130.04319.39
5.4.210.0070.07719.15
5.4.200.0070.07318.96
5.4.190.0130.05719.30
5.4.180.0100.03718.93
5.4.170.0070.03719.27
5.4.160.0070.04019.11
5.4.150.0070.04718.91
5.4.140.0030.03716.46
5.4.130.0070.07016.47
5.4.120.0070.05016.46
5.4.110.0070.04016.44
5.4.100.0030.05016.73
5.4.90.0130.06316.52
5.4.80.0000.04016.33
5.4.70.0070.07316.40
5.4.60.0130.06016.41
5.4.50.0000.05716.57
5.4.40.0030.07016.38
5.4.30.0130.04016.38
5.4.20.0030.04716.46
5.4.10.0070.07316.37
5.4.00.0130.06715.94
5.3.290.0000.04314.84
5.3.280.0030.04014.81
5.3.270.0070.06014.70
5.3.260.0100.03314.64
5.3.250.0100.03014.73
5.3.240.0070.03314.72
5.3.230.0030.06014.69
5.3.220.0100.07714.66
5.3.210.0030.07314.77
5.3.200.0030.05314.71
5.3.190.0030.05714.60
5.3.180.0000.05314.77
5.3.170.0030.05314.76
5.3.160.0070.03714.71
5.3.150.0100.07014.76
5.3.140.0100.05014.79
5.3.130.0100.04014.65
5.3.120.0070.04014.69
5.3.110.0130.07714.62
5.3.100.0030.08014.09
5.3.90.0030.05314.06
5.3.80.0000.08314.11
5.3.70.0130.06714.05
5.3.60.0070.05714.10
5.3.50.0130.06013.94
5.3.40.0100.06314.19
5.3.30.0130.04014.05
5.3.20.0030.05013.81
5.3.10.0170.06313.75
5.3.00.0100.05313.61
5.2.170.0030.05711.32
5.2.160.0000.05711.38
5.2.150.0000.06011.20
5.2.140.0000.05311.29
5.2.130.0070.05711.22
5.2.120.0070.04711.26
5.2.110.0030.05311.13
5.2.100.0030.06311.26
5.2.90.0100.04711.31
5.2.80.0070.03311.13
5.2.70.0030.05711.32
5.2.60.0070.05711.26
5.2.50.0030.06711.06
5.2.40.0030.05011.20
5.2.30.0070.06011.09
5.2.20.0130.05311.01
5.2.10.0000.04711.04
5.2.00.0030.07010.84
5.1.60.0030.03310.22
5.1.50.0070.05310.24
5.1.40.0000.04710.11
5.1.30.0030.06010.41
5.1.20.0070.04710.55
5.1.10.0070.04310.25
5.1.00.0270.02310.30
5.0.50.0030.0278.81
5.0.40.0070.0438.66
5.0.30.0170.0278.45
5.0.20.0070.0408.37
5.0.10.0070.0378.39
5.0.00.0030.0578.38
4.4.90.0030.0208.00
4.4.80.0030.0238.00
4.4.70.0100.0338.00
4.4.60.0030.0378.00
4.4.50.0030.0278.00
4.4.40.0030.0578.00
4.4.30.0100.0278.00
4.4.20.0000.0278.00
4.4.10.0070.0308.00
4.4.00.0030.0408.00
4.3.110.0030.0338.00
4.3.100.0100.0278.00
4.3.90.0070.0278.00
4.3.80.0000.0508.00
4.3.70.0000.0278.00
4.3.60.0000.0378.00
4.3.50.0000.0178.00
4.3.40.0030.0438.00
4.3.30.0030.0338.00
4.3.20.0000.0208.00
4.3.10.0030.0338.00
4.3.00.0000.0308.00

preferences:
44.48 ms | 401 KiB | 5 Q