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[not(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.0140.00716.59
8.3.50.0100.01022.10
8.3.40.0000.01518.79
8.3.30.0040.01119.29
8.3.20.0080.00020.71
8.3.10.0040.00424.03
8.3.00.0100.00017.63
8.2.180.0070.00718.54
8.2.170.0040.01422.96
8.2.160.0100.00320.64
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0050.00222.63
8.2.110.0090.00022.73
8.2.100.0030.00818.09
8.2.90.0050.00319.33
8.2.80.0030.00518.05
8.2.70.0030.00617.75
8.2.60.0000.00818.17
8.2.50.0000.00918.07
8.2.40.0050.00218.53
8.2.30.0050.00318.47
8.2.20.0000.00817.96
8.2.10.0040.00418.23
8.2.00.0040.00418.01
8.1.280.0090.00925.92
8.1.270.0040.00423.96
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0060.00324.21
8.1.230.0070.00419.17
8.1.220.0040.00417.93
8.1.210.0000.00818.77
8.1.200.0030.00617.50
8.1.190.0000.00817.91
8.1.180.0090.00018.10
8.1.170.0100.00018.74
8.1.160.0030.00322.20
8.1.150.0000.00718.98
8.1.140.0040.00417.71
8.1.130.0070.00018.08
8.1.120.0040.00417.84
8.1.110.0040.00717.79
8.1.100.0030.00717.65
8.1.90.0040.00417.84
8.1.80.0000.00917.64
8.1.70.0000.00717.74
8.1.60.0060.00317.86
8.1.50.0000.00817.66
8.1.40.0040.00417.59
8.1.30.0050.00317.95
8.1.20.0050.00318.02
8.1.10.0030.00517.60
8.1.00.0070.00017.80
8.0.300.0040.00418.77
8.0.290.0040.00417.43
8.0.280.0070.00018.76
8.0.270.0000.00817.54
8.0.260.0070.00017.48
8.0.250.0070.00017.16
8.0.240.0000.00717.35
8.0.230.0070.00017.34
8.0.220.0030.00317.16
8.0.210.0040.00417.26
8.0.200.0040.00417.29
8.0.190.0000.00717.15
8.0.180.0070.00317.27
8.0.170.0040.00417.08
8.0.160.0000.00717.12
8.0.150.0050.00317.29
8.0.140.0070.00016.97
8.0.130.0030.00613.63
8.0.120.0060.00317.22
8.0.110.0030.00517.22
8.0.100.0040.00417.21
8.0.90.0000.00717.05
8.0.80.0090.00617.22
8.0.70.0050.00317.12
8.0.60.0000.00717.08
8.0.50.0030.00517.23
8.0.30.0070.01217.33
8.0.20.0050.01417.45
8.0.10.0000.00717.41
8.0.00.0090.00817.04
7.4.330.0050.00015.45
7.4.320.0060.00016.85
7.4.300.0000.00716.84
7.4.290.0000.00816.74
7.4.280.0000.00716.76
7.4.270.0000.00816.82
7.4.260.0050.00516.70
7.4.250.0030.00516.75
7.4.240.0030.00316.82
7.4.230.0070.00016.72
7.4.220.0060.01316.71
7.4.210.0060.00816.88
7.4.200.0040.00416.86
7.4.190.0030.00316.67
7.4.160.0100.00716.66
7.4.150.0070.01117.40
7.4.140.0130.00517.86
7.4.130.0080.00816.63
7.4.120.0100.00716.81
7.4.110.0130.00316.73
7.4.100.0110.00716.81
7.4.90.0030.01416.70
7.4.80.0130.01019.39
7.4.70.0130.01016.70
7.4.60.0160.00716.78
7.4.50.0000.00816.71
7.4.40.0070.01122.77
7.4.30.0080.00816.80
7.4.00.0070.01115.24
7.3.330.0000.00513.48
7.3.320.0050.00013.47
7.3.310.0040.00416.52
7.3.300.0000.00716.45
7.3.290.0130.00616.46
7.3.280.0110.00516.45
7.3.270.0090.00817.40
7.3.260.0060.01316.61
7.3.250.0130.00916.72
7.3.240.0110.00616.77
7.3.230.0030.01316.60
7.3.210.0060.01016.90
7.3.200.0120.00819.39
7.3.190.0070.01016.49
7.3.180.0060.00916.93
7.3.170.0130.00816.82
7.3.160.0110.00516.63
7.3.120.0030.01314.84
7.2.330.0160.00316.73
7.2.320.0070.01116.54
7.2.310.0120.00616.78
7.2.300.0070.01016.74
7.2.290.0030.01316.63
7.2.60.0070.00716.91
7.2.00.0060.00619.46
7.1.200.0050.00515.87
7.1.100.0000.01118.25
7.1.70.0040.00417.35
7.1.60.0090.01619.46
7.1.50.0170.00716.96
7.1.00.0000.07722.76
7.0.200.0050.00317.04
7.0.140.0070.07022.22
7.0.70.0070.07320.10
7.0.60.0070.08320.05
7.0.50.0070.05720.47
7.0.40.0070.05720.27
7.0.30.0130.07020.17
7.0.20.0130.07720.27
7.0.10.0130.08320.30
7.0.00.0070.05320.20
5.6.280.0030.07321.14
5.6.220.0070.07720.89
5.6.210.0030.08720.68
5.6.200.0100.07721.31
5.6.190.0100.04321.33
5.6.180.0030.08321.21
5.6.170.0030.05321.20
5.6.160.0070.08721.22
5.6.150.0070.09321.19
5.6.140.0100.08021.16
5.6.130.0000.08721.17
5.6.120.0170.04021.27
5.6.110.0030.05021.32
5.6.100.0100.06721.21
5.6.90.0170.07021.23
5.6.80.0100.07720.58
5.6.70.0030.07720.58
5.6.60.0030.08720.53
5.6.50.0030.08720.64
5.6.40.0130.07320.68
5.6.30.0070.07320.56
5.6.20.0030.07320.52
5.6.10.0070.08720.54
5.6.00.0130.05320.67
5.5.360.0100.05320.52
5.5.350.0130.04320.55
5.5.340.0170.07321.05
5.5.330.0000.04721.00
5.5.320.0000.09021.00
5.5.310.0070.06320.92
5.5.300.0100.08321.11
5.5.290.0130.07020.92
5.5.280.0130.08021.04
5.5.270.0030.05321.10
5.5.260.0130.08020.81
5.5.250.0170.08320.86
5.5.240.0030.07720.21
5.5.230.0230.06320.46
5.5.220.0030.08020.29
5.5.210.0070.07720.32
5.5.200.0030.07320.35
5.5.190.0070.07320.33
5.5.180.0170.07320.36
5.5.160.0070.07320.36
5.5.150.0200.04720.41
5.5.140.0100.07320.39
5.5.130.0270.05720.32
5.5.120.0100.06320.28
5.5.110.0100.07720.33
5.5.100.0070.08320.20
5.5.90.0000.07020.32
5.5.80.0100.07320.25
5.5.70.0130.06720.14
5.5.60.0030.08020.28
5.5.50.0130.05720.27
5.5.40.0100.04320.21
5.5.30.0100.07320.23
5.5.20.0030.07720.15
5.5.10.0100.08020.26
5.5.00.0170.07020.14
5.4.450.0100.07319.52
5.4.440.0030.08019.61
5.4.430.0130.04019.59
5.4.420.0070.05319.56
5.4.410.0070.07719.38
5.4.400.0230.06319.27
5.4.390.0100.03319.31
5.4.380.0030.05019.41
5.4.370.0100.08019.29
5.4.360.0030.07019.27
5.4.350.0100.07319.27
5.4.340.0100.07719.09
5.4.320.0100.05019.28
5.4.310.0200.06719.18
5.4.300.0030.07719.26
5.4.290.0030.08019.11
5.4.280.0100.06719.29
5.4.270.0070.05319.17
5.4.260.0130.06719.23
5.4.250.0130.07319.27
5.4.240.0030.07719.26
5.4.230.0130.07319.24
5.4.220.0030.06719.11
5.4.210.0030.08319.10
5.4.200.0000.08319.08
5.4.190.0100.07719.23
5.4.180.0030.06319.26
5.4.170.0070.07719.23
5.4.160.0030.06319.18
5.4.150.0130.07319.18
5.4.140.0030.05016.31
5.4.130.0030.07316.47
5.4.120.0100.05016.41
5.4.110.0030.07716.40
5.4.100.0070.05316.53
5.4.90.0030.07716.61
5.4.80.0130.04016.55
5.4.70.0100.07016.34
5.4.60.0000.04716.38
5.4.50.0070.03716.40
5.4.40.0100.03716.49
5.4.30.0100.07016.43
5.4.20.0100.07016.43
5.4.10.0070.07016.54
5.4.00.0030.07715.85
5.3.290.0070.08014.69
5.3.280.0100.07314.60
5.3.270.0100.08014.66
5.3.260.0000.06014.60
5.3.250.0070.06314.77
5.3.240.0030.05714.81
5.3.230.0100.07014.59
5.3.220.0000.08014.59
5.3.210.0030.08014.73
5.3.200.0070.07314.79
5.3.190.0070.07714.67
5.3.180.0130.07314.73
5.3.170.0070.07714.68
5.3.160.0000.06714.60
5.3.150.0030.04014.57
5.3.140.0000.08314.69
5.3.130.0170.07014.75
5.3.120.0000.07714.59
5.3.110.0030.06714.55
5.3.100.0130.07014.18
5.3.90.0100.07314.05
5.3.80.0030.08314.02
5.3.70.0030.05714.20
5.3.60.0070.07314.20
5.3.50.0000.08713.93
5.3.40.0100.05714.11
5.3.30.0100.07314.00
5.3.20.0100.06713.91
5.3.10.0100.07013.79
5.3.00.0100.07313.64
5.2.170.0070.06712.17
5.2.160.0070.04312.17
5.2.150.0000.06712.17
5.2.140.0030.07012.17
5.2.130.0000.04312.17
5.2.120.0130.05712.17
5.2.110.0030.06712.17
5.2.100.0030.06012.17
5.2.90.0070.04012.17
5.2.80.0100.05712.17
5.2.70.0030.05712.17
5.2.60.0000.04712.17
5.2.50.0030.06712.17
5.2.40.0070.06012.17
5.2.30.0100.04012.17
5.2.20.0070.06312.17
5.2.10.0100.05312.17
5.2.00.0070.06012.17
5.1.60.0030.04312.17
5.1.50.0070.05712.17
5.1.40.0000.05312.17
5.1.30.0030.05712.17
5.1.20.0000.06012.17
5.1.10.0130.04712.17
5.1.00.0000.04012.17
5.0.50.0030.03012.17
5.0.40.0000.04712.17
5.0.30.0000.06312.17
5.0.20.0070.04012.17
5.0.10.0000.03312.17
5.0.00.0000.06712.17
4.4.90.0000.02012.17
4.4.80.0030.04312.17
4.4.70.0000.03012.17
4.4.60.0030.03312.17
4.4.50.0030.02712.17
4.4.40.0070.04012.17
4.4.30.0000.03712.17
4.4.20.0070.02712.17
4.4.10.0000.02712.17
4.4.00.0070.05312.17
4.3.110.0000.03312.17
4.3.100.0000.03312.17
4.3.90.0000.03712.17
4.3.80.0070.04712.17
4.3.70.0000.03712.17
4.3.60.0030.03312.17
4.3.50.0000.03312.17
4.3.40.0000.05712.17
4.3.30.0000.04012.17
4.3.20.0000.04012.17
4.3.10.0000.03312.17
4.3.00.0000.03012.17

preferences:
33.11 ms | 401 KiB | 5 Q