3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sx = simplexml_load_string('<foo xmlns="https://example.com"><bar><baz>Hello</baz></bar></foo>'); $sx->registerXpathNamespace('something', 'https://example.com'); echo $sx->xpath('//something:baz')[0];

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.5.30.0100.00819.87
8.5.20.0080.01119.90
8.5.10.0100.00716.77
8.5.00.0140.00720.16
8.4.180.0140.00722.32
8.4.170.0180.00520.78
8.4.160.0160.00524.00
8.4.150.0060.00717.04
8.4.140.0170.01117.84
8.4.130.0080.00118.79
8.4.120.0120.00724.60
8.4.110.0130.00819.55
8.4.100.0120.01118.33
8.4.90.0130.00918.23
8.4.80.0050.00618.30
8.4.70.0040.00518.50
8.4.60.0130.00719.16
8.4.50.0070.00220.77
8.4.40.0130.00719.93
8.4.30.0000.00820.95
8.4.20.0040.01519.43
8.4.10.0110.00018.16
8.3.300.0090.01121.25
8.3.290.0120.00821.05
8.3.280.0130.00720.57
8.3.270.0130.00716.98
8.3.260.0110.00916.95
8.3.250.0100.00819.22
8.3.240.0110.01017.53
8.3.230.0090.01017.03
8.3.220.0140.00516.86
8.3.210.0040.00517.01
8.3.200.0050.00816.87
8.3.190.0090.01017.38
8.3.180.0120.00716.66
8.3.170.0090.01019.30
8.3.160.0060.01218.72
8.3.150.0120.00321.18
8.3.140.0080.00018.66
8.3.130.0030.00616.73
8.3.120.0030.00619.25
8.3.110.0060.00320.94
8.3.100.0070.00324.06
8.3.90.0080.00326.77
8.3.80.0030.00619.36
8.3.70.0100.00617.00
8.3.60.0120.00318.70
8.3.50.0120.00616.45
8.3.40.0130.00318.88
8.3.30.0090.00619.04
8.3.20.0040.00424.18
8.3.10.0070.00024.66
8.3.00.0000.00726.16
8.2.300.0130.00722.51
8.2.290.0020.00621.45
8.2.280.0050.00418.92
8.2.270.0130.00619.75
8.2.260.0060.00318.57
8.2.250.0080.00019.00
8.2.240.0050.00317.86
8.2.230.0030.00622.58
8.2.220.0030.00637.54
8.2.210.0080.00026.77
8.2.200.0030.00618.88
8.2.190.0150.00318.66
8.2.180.0140.00725.92
8.2.170.0000.01519.33
8.2.160.0170.00022.96
8.2.150.0000.00925.66
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00426.35
8.2.110.0030.00622.75
8.2.100.0080.00418.22
8.2.90.0080.00018.13
8.2.80.0040.00419.02
8.2.70.0030.00618.30
8.2.60.0060.00318.53
8.2.50.0000.00818.10
8.2.40.0030.00521.64
8.2.30.0070.00019.51
8.2.20.0040.00418.44
8.2.10.0000.00721.37
8.2.00.0040.00419.54
8.1.340.0130.00918.14
8.1.330.0120.00717.22
8.1.320.0060.00220.37
8.1.310.0000.01819.02
8.1.300.0040.01518.68
8.1.290.0100.00030.84
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0070.00028.09
8.1.250.0000.00728.09
8.1.240.0100.00022.43
8.1.230.0070.00418.21
8.1.220.0040.00418.01
8.1.210.0030.00618.77
8.1.200.0090.00017.50
8.1.190.0060.00317.47
8.1.180.0060.00318.10
8.1.170.0000.00818.93
8.1.160.0040.00419.11
8.1.150.0040.00419.33
8.1.140.0080.00019.18
8.1.130.0040.00420.45
8.1.120.0040.00417.80
8.1.110.0000.00817.70
8.1.100.0070.00017.79
8.1.90.0000.00717.80
8.1.80.0000.00717.60
8.1.70.0030.00617.61
8.1.60.0080.00017.93
8.1.50.0040.00417.83
8.1.40.0050.00317.85
8.1.30.0000.00818.02
8.1.20.0040.00417.86
8.1.10.0040.00417.78
8.1.00.0000.00817.76
8.0.300.0000.01018.77
8.0.290.0000.00817.00
8.0.280.0070.00018.84
8.0.270.0030.00619.07
8.0.260.0000.00618.81
8.0.250.0030.00317.36
8.0.240.0040.00417.40
8.0.230.0000.00717.28
8.0.220.0030.00317.25
8.0.210.0030.00317.24
8.0.200.0000.00717.27
8.0.190.0030.00517.29
8.0.180.0000.00717.26
8.0.170.0000.00917.14
8.0.160.0020.00517.23
8.0.150.0040.00417.19
8.0.140.0070.00317.05
8.0.130.0030.00313.56
8.0.120.0030.00617.19
8.0.110.0070.00017.20
8.0.100.0070.00017.09
8.0.90.0000.00817.20
8.0.80.0060.01217.18
8.0.70.0000.00717.09
8.0.60.0040.00417.11
8.0.50.0000.00817.19
8.0.30.0110.00617.15
8.0.20.0000.01717.17
8.0.10.0100.01117.24
8.0.00.0060.00917.23
7.4.330.0020.00215.55
7.4.320.0030.00316.91
7.4.300.0090.00016.77
7.4.290.0070.00516.85
7.4.280.0080.00016.89
7.4.270.0030.00316.67
7.4.260.0060.00013.53
7.4.250.0030.00316.84
7.4.240.0030.00316.82
7.4.230.0030.00316.80
7.4.220.0030.00316.77
7.4.210.0050.01116.91
7.4.200.0000.00716.76
7.4.160.0040.01116.80
7.4.150.0030.01316.82
7.4.140.0120.00916.76
7.4.130.0040.01216.78
7.4.120.0080.01216.77
7.4.110.0050.01016.84
7.4.100.0040.01816.80
7.4.90.0080.01216.71
7.4.80.0090.00916.93
7.4.70.0040.01516.73
7.4.60.0150.00416.78
7.4.50.0140.00816.59
7.4.40.0100.01016.52
7.4.30.0080.01316.68
7.4.20.0100.00716.88
7.4.10.0110.00616.75
7.4.00.0060.00916.76
7.3.330.0030.00316.32
7.3.320.0050.00013.44
7.3.310.0030.00316.71
7.3.300.0000.00616.59
7.3.290.0120.00816.60
7.3.270.0040.01216.51
7.3.260.0130.00616.58
7.3.250.0040.01116.61
7.3.240.0030.01216.46
7.3.230.0130.00316.57
7.3.220.0030.01316.51
7.3.210.0120.00916.42
7.3.200.0060.01416.50
7.3.190.0080.01116.54
7.3.180.0170.00016.55
7.3.170.0080.01216.59
7.3.160.0090.01016.44
7.3.150.0150.00416.55
7.3.140.0000.01916.44
7.3.130.0130.00316.54
7.3.120.0080.00816.40
7.3.110.0060.01316.38
7.3.100.0140.00716.49
7.3.90.0170.00316.75
7.3.80.0070.00816.52
7.3.70.0120.00316.57
7.3.60.0040.01116.79
7.3.50.0000.01416.68
7.3.40.0150.00316.61
7.3.30.0100.00716.71
7.3.20.0060.01216.61
7.3.10.0090.00616.54
7.3.00.0130.00516.75

preferences:
46 ms | 1361 KiB | 5 Q