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())]"); 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.70.0040.01516.72
8.3.60.0140.00716.73
8.3.50.0120.00717.57
8.3.40.0160.00619.14
8.3.30.0080.00818.91
8.3.20.0000.00819.12
8.3.10.0050.00320.90
8.3.00.0060.00319.63
8.2.180.0040.01118.50
8.2.170.0140.00722.96
8.2.160.0120.00921.34
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0050.00319.62
8.2.110.0040.01221.50
8.2.100.0060.00618.16
8.2.90.0050.00319.33
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0050.00318.13
8.2.50.0000.00818.10
8.2.40.0000.00818.47
8.2.30.0030.00718.23
8.2.20.0070.00017.77
8.2.10.0040.00417.84
8.2.00.0000.00818.02
8.1.280.0090.00625.92
8.1.270.0030.00524.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.87
8.1.230.0160.00017.95
8.1.220.0150.00517.74
8.1.210.0050.00318.77
8.1.200.0030.00617.38
8.1.190.0050.00317.60
8.1.180.0000.00918.10
8.1.170.0040.00419.18
8.1.160.0000.00719.11
8.1.150.0000.00818.87
8.1.140.0000.00817.75
8.1.130.0040.00418.22
8.1.120.0040.00417.83
8.1.110.0030.00517.62
8.1.100.0000.00817.66
8.1.90.0000.00817.79
8.1.80.0040.00417.81
8.1.70.0000.00717.79
8.1.60.0030.00517.72
8.1.50.0040.00417.66
8.1.40.0000.00717.79
8.1.30.0040.00417.82
8.1.20.0020.00518.00
8.1.10.0040.00417.70
8.1.00.0030.00617.53
8.0.300.0080.00019.40
8.0.290.0000.00817.00
8.0.280.0000.00718.63
8.0.270.0030.00317.45
8.0.260.0000.00717.15
8.0.250.0040.00417.36
8.0.240.0050.00317.36
8.0.230.0000.00717.29
8.0.220.0070.00017.11
8.0.210.0030.00317.21
8.0.200.0030.00317.18
8.0.190.0040.00417.22
8.0.180.0050.00217.29
8.0.170.0000.00817.34
8.0.160.0040.00417.34
8.0.150.0050.00317.01
8.0.140.0030.00617.29
8.0.130.0060.00013.65
8.0.120.0050.00317.25
8.0.110.0040.00417.15
8.0.100.0000.00817.19
8.0.90.0050.00217.19
8.0.80.0170.00317.23
8.0.70.0000.00717.30
8.0.60.0040.00417.28
8.0.50.0040.00417.18
8.0.30.0110.01417.20
8.0.20.0150.00917.44
8.0.10.0030.00617.22
8.0.00.0120.01016.99
7.4.330.0050.00013.28
7.4.320.0070.00416.75
7.4.300.0030.00316.81
7.4.290.0070.00016.84
7.4.280.0040.00416.73
7.4.270.0000.00716.83
7.4.260.0030.00313.55
7.4.250.0040.00416.79
7.4.240.0040.00416.86
7.4.230.0030.00316.70
7.4.220.0130.00716.91
7.4.210.0060.00816.83
7.4.200.0040.00416.88
7.4.190.0060.00316.79
7.4.160.0120.00416.71
7.4.150.0100.00716.67
7.4.140.0150.00616.81
7.4.130.0080.00916.87
7.4.120.0080.01016.84
7.4.110.0160.00316.72
7.4.100.0130.00916.75
7.4.90.0140.01116.71
7.4.80.0080.00816.80
7.4.70.0060.01216.80
7.4.60.0170.00916.72
7.4.50.0000.00916.98
7.4.40.0130.00016.86
7.4.30.0150.00616.59
7.4.00.0000.01215.00
7.3.330.0030.00313.37
7.3.320.0000.00513.38
7.3.310.0050.00216.29
7.3.300.0030.00316.40
7.3.290.0110.00316.49
7.3.280.0070.01016.59
7.3.270.0120.00616.59
7.3.260.0150.00416.65
7.3.250.0130.00816.65
7.3.240.0100.00716.77
7.3.230.0040.01516.53
7.3.210.0150.00416.79
7.3.200.0160.00319.39
7.3.190.0160.00916.65
7.3.180.0060.01016.78
7.3.170.0130.00616.50
7.3.160.0100.00716.50
7.3.120.0070.01014.73
7.2.330.0090.00916.76
7.2.320.0150.00316.72
7.2.310.0120.00916.90
7.2.300.0090.00916.76
7.2.290.0100.00716.56
7.2.00.0110.00619.67
7.1.100.0030.01517.84
7.1.70.0040.00417.25
7.1.60.0090.01519.40
7.1.50.0040.00716.97
7.1.00.0000.07722.60
7.0.200.0250.00614.45
7.0.140.0030.07022.26
7.0.120.0030.06322.20
7.0.60.0100.04319.95
7.0.50.0000.08318.06
7.0.40.0000.08320.18
7.0.30.0370.04320.28
7.0.20.0270.05720.41
7.0.10.0070.05020.33
7.0.00.0100.06020.38
5.6.280.0030.07321.03
5.6.210.0030.04320.89
5.6.200.0030.08318.29
5.6.190.0030.04320.84
5.6.180.0430.07720.61
5.6.170.0230.04320.77
5.6.160.0030.04320.56
5.6.150.0100.07318.30
5.6.140.0070.07018.36
5.6.130.0070.08318.29
5.6.120.0070.05021.25
5.6.110.0100.08021.15
5.6.100.0170.07021.24
5.6.90.0070.04321.10
5.6.80.0130.07720.62
5.5.350.0000.08320.61
5.5.340.0030.09018.19
5.5.330.0030.08320.29
5.5.320.0270.06020.57
5.5.310.0200.07020.55
5.5.300.0170.07318.16
5.5.290.0100.08318.17
5.5.280.0130.08020.98
5.5.270.0100.08721.00
5.5.260.0070.09020.91
5.5.250.0070.08720.83
5.5.240.0200.07320.38
5.4.450.0130.04719.58
5.4.440.0070.04719.58
5.4.430.0070.08319.72
5.4.420.0000.08319.62
5.4.410.0130.07019.49
5.4.400.0070.07719.13
5.4.390.0100.07319.21
5.4.380.0170.06718.98
5.4.370.0070.07718.97
5.4.360.0070.04019.25
5.4.350.0030.08319.34
5.4.340.0030.08019.23
5.4.320.0070.05018.93
5.4.310.0100.03319.34
5.4.300.0030.05019.22
5.4.290.0030.08019.21
5.4.280.0070.07019.25
5.4.270.0030.08019.25
5.4.260.0130.06319.10
5.4.250.0070.05719.13
5.4.240.0070.06719.14
5.4.230.0100.04719.30
5.4.220.0100.07319.25
5.4.210.0070.04719.09
5.4.200.0070.07319.30
5.4.190.0100.07319.28
5.4.180.0030.06319.23
5.4.170.0170.06019.20
5.4.160.0030.04019.11
5.4.150.0130.04319.13
5.4.140.0100.06716.45
5.4.130.0100.04016.42
5.4.120.0030.07316.42
5.4.110.0100.06016.62
5.4.100.0100.07016.43
5.4.90.0070.04316.56
5.4.80.0030.06316.59
5.4.70.0030.03716.40
5.4.60.0070.03716.55
5.4.50.0070.04016.53
5.4.40.0070.03716.54
5.4.30.0070.03716.58
5.4.20.0030.06716.55
5.4.10.0070.05716.75
5.4.00.0030.04015.95
5.3.290.0030.04014.80
5.3.280.0100.04314.68
5.3.270.0170.06314.63
5.3.260.0000.08014.81
5.3.250.0030.06014.63
5.3.240.0000.06014.72
5.3.230.0100.07714.63
5.3.220.0000.05714.66
5.3.210.0070.04314.67
5.3.200.0070.03714.71
5.3.190.0030.03714.72
5.3.180.0100.03314.69
5.3.170.0130.06314.59
5.3.160.0070.04314.72
5.3.150.0100.06714.55
5.3.140.0070.07714.59
5.3.130.0030.05714.68
5.3.120.0070.08014.66
5.3.110.0070.05714.61
5.3.100.0030.06314.21
5.3.90.0030.07314.00
5.3.80.0070.04714.06
5.3.70.0100.05313.98
5.3.60.0030.05014.09
5.3.50.0030.04313.90
5.3.40.0030.06014.10
5.3.30.0030.05013.98
5.3.20.0130.06713.75
5.3.10.0030.06713.76
5.3.00.0030.04313.70
5.2.170.0070.06011.32
5.2.160.0070.06311.30
5.2.150.0030.06011.30
5.2.140.0070.03011.27
5.2.130.0070.02711.14
5.2.120.0070.02711.30
5.2.110.0000.03311.20
5.2.100.0000.06311.28
5.2.90.0100.02711.22
5.2.80.0030.06711.26
5.2.70.0070.06311.36
5.2.60.0000.04711.14
5.2.50.0100.03311.07
5.2.40.0070.03311.09
5.2.30.0100.05711.12
5.2.20.0070.06011.13
5.2.10.0030.06010.97
5.2.00.0070.04310.95
5.1.60.0100.02310.17
5.1.50.0000.04310.05
5.1.40.0030.04310.14
5.1.30.0070.05310.52
5.1.20.0100.05010.51
5.1.10.0070.05710.27
5.1.00.0030.05010.28
5.0.50.0070.0308.59
5.0.40.0030.0478.45
5.0.30.0000.0538.43
5.0.20.0000.0308.36
5.0.10.0030.0278.33
5.0.00.0000.0408.32
4.4.90.0000.0278.32
4.4.80.0000.0408.32
4.4.70.0070.0308.32
4.4.60.0030.0338.32
4.4.50.0070.0338.32
4.4.40.0000.0438.32
4.4.30.0000.0278.32
4.4.20.0030.0338.32
4.4.10.0000.0378.32
4.4.00.0030.0308.32
4.3.110.0000.0208.32
4.3.100.0030.0308.32
4.3.90.0000.0208.32
4.3.80.0070.0508.32
4.3.70.0000.0408.32
4.3.60.0030.0338.32
4.3.50.0030.0208.32
4.3.40.0000.0438.32
4.3.30.0030.0208.32
4.3.20.0070.0138.32
4.3.10.0000.0378.32
4.3.00.0000.0378.32

preferences:
54.35 ms | 401 KiB | 5 Q