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()!=' ')]"); $y = $xml->xpath("//entry[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.0080.00818.43
8.3.50.0100.00822.00
8.3.40.0040.01119.13
8.3.30.0090.00619.25
8.3.20.0000.00820.48
8.3.10.0040.00422.23
8.3.00.0000.00822.89
8.2.180.0130.01018.54
8.2.170.0140.00722.96
8.2.160.0070.01019.14
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0030.00619.61
8.2.110.0100.00022.62
8.2.100.0060.01017.71
8.2.90.0080.00019.61
8.2.80.0000.00818.28
8.2.70.0030.00617.88
8.2.60.0080.00018.02
8.2.50.0000.00818.07
8.2.40.0000.00818.22
8.2.30.0040.00418.21
8.2.20.0040.00417.94
8.2.10.0040.00418.02
8.2.00.0000.00717.92
8.1.280.0120.00325.92
8.1.270.0120.00424.16
8.1.260.0080.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00724.25
8.1.230.0110.00019.54
8.1.220.0050.00318.03
8.1.210.0060.00318.77
8.1.200.0000.00917.47
8.1.190.0040.00417.68
8.1.180.0040.00418.10
8.1.170.0040.00418.74
8.1.160.0050.00322.26
8.1.150.0080.00018.86
8.1.140.0070.00017.65
8.1.130.0080.00017.68
8.1.120.0040.00417.76
8.1.110.0080.00017.53
8.1.100.0080.00017.81
8.1.90.0000.00817.58
8.1.80.0050.00317.76
8.1.70.0000.00717.63
8.1.60.0000.00717.91
8.1.50.0000.00817.62
8.1.40.0000.00817.66
8.1.30.0000.00917.89
8.1.20.0040.00417.71
8.1.10.0020.00517.65
8.1.00.0040.00417.64
8.0.300.0040.00418.77
8.0.290.0070.00017.43
8.0.280.0000.00718.81
8.0.270.0030.00317.44
8.0.260.0090.00017.23
8.0.250.0000.00717.39
8.0.240.0030.00617.39
8.0.230.0050.00517.10
8.0.220.0000.00717.31
8.0.210.0040.00417.23
8.0.200.0000.00817.37
8.0.190.0030.00917.09
8.0.180.0030.00517.12
8.0.170.0030.00717.35
8.0.160.0000.00817.27
8.0.150.0040.00417.27
8.0.140.0000.00716.99
8.0.130.0000.00613.67
8.0.120.0050.00317.29
8.0.110.0040.00417.29
8.0.100.0040.00417.18
8.0.90.0070.00017.31
8.0.80.0110.01217.23
8.0.70.0040.00417.19
8.0.60.0000.00717.27
8.0.50.0080.00017.18
8.0.30.0150.00717.24
8.0.20.0150.00817.40
8.0.10.0000.00717.23
8.0.00.0110.01016.92
7.4.330.0020.00215.32
7.4.320.0030.00316.95
7.4.300.0060.00016.92
7.4.290.0030.00316.91
7.4.280.0000.00816.79
7.4.270.0000.00716.91
7.4.260.0040.00416.82
7.4.250.0000.00716.70
7.4.240.0060.00216.84
7.4.230.0040.00416.98
7.4.220.0100.01616.74
7.4.210.0070.00816.86
7.4.200.0040.00416.82
7.4.190.0000.00816.95
7.4.160.0060.01116.84
7.4.150.0090.01217.40
7.4.140.0060.01317.86
7.4.130.0110.00916.79
7.4.120.0110.00716.73
7.4.110.0100.00716.82
7.4.100.0060.01216.83
7.4.90.0030.01716.64
7.4.80.0050.01316.83
7.4.70.0110.00516.86
7.4.60.0130.00316.71
7.4.50.0030.00316.90
7.4.40.0060.00622.77
7.4.30.0070.01116.73
7.4.00.0050.01415.16
7.3.330.0000.00513.29
7.3.320.0000.00513.45
7.3.310.0030.00316.66
7.3.300.0080.00016.58
7.3.290.0120.00616.59
7.3.280.0080.01216.60
7.3.270.0070.01417.40
7.3.260.0070.01316.71
7.3.250.0110.00716.52
7.3.240.0090.01116.57
7.3.230.0070.01016.72
7.3.210.0170.00716.55
7.3.200.0100.01019.39
7.3.190.0070.01016.52
7.3.180.0130.00316.65
7.3.170.0060.01016.48
7.3.160.0120.00616.64
7.3.120.0060.01114.77
7.3.110.0070.01115.06
7.3.100.0070.01114.80
7.3.90.0110.00415.04
7.3.80.0110.00014.93
7.3.70.0060.00314.86
7.3.60.0060.00814.64
7.3.50.0060.00914.64
7.3.40.0030.01214.88
7.3.30.0000.01415.04
7.3.20.0030.00916.64
7.3.10.0060.01016.74
7.3.00.0090.00316.54
7.2.330.0110.01116.89
7.2.320.0070.01116.81
7.2.310.0150.00916.56
7.2.300.0100.00716.94
7.2.290.0160.00316.98
7.2.250.0030.01415.14
7.2.240.0110.00715.24
7.2.230.0130.00715.07
7.2.220.0080.00814.77
7.2.210.0100.00715.15
7.2.200.0040.00415.02
7.2.190.0120.00315.07
7.2.180.0090.00615.21
7.2.170.0070.01114.97
7.2.60.0060.01017.03
7.1.330.0070.00716.00
7.1.320.0000.01315.91
7.1.310.0100.00715.84
7.1.300.0000.01215.84
7.1.290.0060.00616.05
7.1.280.0040.00815.70
7.1.270.0090.00915.94
7.1.260.0060.00915.83
7.1.200.0110.00715.86
7.1.70.0050.00216.87
7.1.60.0070.00719.24
7.1.50.0070.00317.10
7.1.00.0000.08022.49
7.0.200.0030.00516.59
7.0.140.0100.06722.21
7.0.100.0030.07320.04
7.0.90.0070.08020.25
7.0.80.0070.07720.11
7.0.70.0100.08320.04
7.0.60.0100.07320.21
7.0.50.0070.08320.46
7.0.40.0070.08020.28
7.0.30.0070.07720.23
7.0.20.0100.08320.26
7.0.10.0030.09020.34
7.0.00.0130.08320.35
5.6.280.0030.07021.13
5.6.250.0030.08320.80
5.6.240.0130.07020.76
5.6.230.0070.07720.96
5.6.220.0030.08720.73
5.6.210.0070.08321.02
5.6.200.0070.08321.20
5.6.190.0100.08321.21
5.6.180.0200.06721.22
5.6.170.0070.08021.23
5.6.160.0130.07021.13
5.6.150.0130.05021.17
5.6.140.0070.08321.17
5.6.130.0100.08021.13
5.6.120.0100.08321.26
5.6.110.0070.07721.32
5.6.100.0170.06721.25
5.6.90.0070.05321.19
5.6.80.0030.08320.62
5.6.70.0100.06020.68
5.6.60.0200.06320.68
5.6.50.0100.08020.56
5.6.40.0070.06720.52
5.6.30.0070.06720.56
5.6.20.0170.07320.47
5.6.10.0070.07720.70
5.6.00.0030.08720.70
5.5.380.0100.04320.69
5.5.370.0130.04720.52
5.5.360.0000.09320.51
5.5.350.0030.08320.54
5.5.340.0030.09021.00
5.5.330.0070.08720.82
5.5.320.0000.08320.99
5.5.310.0100.07721.08
5.5.300.0070.08020.82
5.5.290.0170.07020.95
5.5.280.0130.07721.08
5.5.270.0070.04020.94
5.5.260.0070.08020.99
5.5.250.0070.08020.89
5.5.240.0130.07020.46
5.5.230.0100.07720.32
5.5.220.0070.07020.38
5.5.210.0100.07320.44
5.5.200.0070.04320.30
5.5.190.0130.07720.42
5.5.180.0100.08020.17
5.5.160.0170.04020.27
5.5.150.0070.08020.46
5.5.140.0100.06320.33
5.5.130.0130.07320.27
5.5.120.0330.04720.30
5.5.110.0030.08320.45
5.5.100.0230.06720.33
5.5.90.0070.06020.33
5.5.80.0070.07020.33
5.5.70.0070.07320.29
5.5.60.0100.07320.32
5.5.50.0130.07720.21
5.5.40.0070.08020.24
5.5.30.0070.08720.20
5.5.20.0000.08720.23
5.5.10.0230.06020.19
5.5.00.0100.06020.18
5.4.450.0030.08019.54
5.4.440.0070.06319.59
5.4.430.0000.09019.57
5.4.420.0030.08719.44
5.4.410.0130.07019.46
5.4.400.0100.07319.03
5.4.390.0070.08019.29
5.4.380.0170.05719.24
5.4.370.0000.07319.11
5.4.360.0100.07719.30
5.4.350.0100.07319.05
5.4.340.0070.07719.27
5.4.320.0070.07719.28
5.4.310.0070.07719.27
5.4.300.0070.08019.29
5.4.290.0030.08719.19
5.4.280.0030.07719.23
5.4.270.0070.08019.23
5.4.260.0200.06319.00
5.4.250.0070.04319.27
5.4.240.0070.07319.43
5.4.230.0170.06019.44
5.4.220.0070.08019.26
5.4.210.0070.05719.29
5.4.200.0030.08319.09
5.4.190.0130.06718.96
5.4.180.0200.06318.98
5.4.170.0100.07319.24
5.4.160.0070.08019.10
5.4.150.0070.08319.24
5.4.140.0100.06316.45
5.4.130.0030.07716.48
5.4.120.0170.06716.49
5.4.110.0100.05316.49
5.4.100.0030.04016.51
5.4.90.0030.03716.55
5.4.80.0070.03316.68
5.4.70.0000.05716.61
5.4.60.0100.03316.52
5.4.50.0100.03016.46
5.4.40.0030.04016.68
5.4.30.0130.03016.56
5.4.20.0000.03716.57
5.4.10.0070.03016.56
5.4.00.0030.05715.88
5.3.290.0170.06314.81
5.3.280.0100.07014.73
5.3.270.0100.07714.72
5.3.260.0170.07014.82
5.3.250.0070.07714.74
5.3.240.0070.07314.61
5.3.230.0100.07314.80
5.3.220.0100.07014.78
5.3.210.0100.04314.71
5.3.200.0200.02714.77
5.3.190.0170.06314.78
5.3.180.0070.03314.77
5.3.170.0000.04014.71
5.3.160.0070.04014.68
5.3.150.0030.04014.67
5.3.140.0070.04014.67
5.3.130.0030.04014.61
5.3.120.0030.04714.66
5.3.110.0000.04014.77
5.3.100.0030.03714.26
5.3.90.0070.05714.07
5.3.80.0030.06014.16
5.3.70.0030.03714.23
5.3.60.0070.03314.00
5.3.50.0030.03714.03
5.3.40.0070.05714.10
5.3.30.0000.03713.92
5.3.20.0070.06713.92
5.3.10.0000.03313.88
5.3.00.0030.03013.67
5.2.170.0070.02713.67
5.2.160.0030.02713.67
5.2.150.0030.04313.67
5.2.140.0000.04013.67
5.2.130.0000.02713.67
5.2.120.0030.06013.67
5.2.110.0000.02713.67
5.2.100.0000.05713.67
5.2.90.0070.02313.67
5.2.80.0000.06313.67
5.2.70.0030.05013.67
5.2.60.0030.04713.67
5.2.50.0070.02713.67
5.2.40.0030.02713.67
5.2.30.0030.03013.67
5.2.20.0100.04013.67
5.2.10.0000.03013.67
5.2.00.0030.03313.67
5.1.60.0030.02313.67
5.1.50.0000.03713.67
5.1.40.0000.02313.67
5.1.30.0030.02313.67
5.1.20.0070.03313.67
5.1.10.0030.02313.67
5.1.00.0000.02713.67
5.0.50.0000.02713.67
5.0.40.0030.02013.67
5.0.30.0030.03013.67
5.0.20.0000.02313.67
5.0.10.0000.02013.67
5.0.00.0000.04313.67
4.4.90.0000.01713.67
4.4.80.0000.01713.67
4.4.70.0000.01713.67
4.4.60.0030.01313.67
4.4.50.0000.01713.67
4.4.40.0030.02313.67
4.4.30.0000.03013.67
4.4.20.0000.02313.67
4.4.10.0000.03313.67
4.4.00.0000.02313.67
4.3.110.0000.02713.67
4.3.100.0000.01713.67
4.3.90.0000.01713.67
4.3.80.0000.02713.67
4.3.70.0070.02713.67
4.3.60.0000.02313.67
4.3.50.0030.01313.67
4.3.40.0030.03713.67
4.3.30.0030.01313.67
4.3.20.0030.01313.67
4.3.10.0000.01713.67
4.3.00.0070.00713.67

preferences:
76.44 ms | 401 KiB | 5 Q