3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<END <?xml version="1.0"?> <foo> <bar number="one"><say>hello</say></bar> <bar number="two"><say>how are you?</say></bar> <bar number="three"><say>very well</say></bar> <bar number="four"><say>good bye</say></bar> </foo> END; $sx = simplexml_load_string($xml); echo $sx->xpath('*[@number="three"]')[0]->say;

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.0070.01116.75
8.3.50.0120.00616.75
8.3.40.0090.00618.91
8.3.30.0150.00619.09
8.3.20.0030.00621.33
8.3.10.0070.00022.15
8.3.00.0050.00519.63
8.2.180.0070.02017.00
8.2.170.0100.00722.96
8.2.160.0060.00919.51
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00421.37
8.2.120.0040.00426.35
8.2.110.0030.00622.58
8.2.100.0060.00618.28
8.2.90.0000.00818.22
8.2.80.0030.00619.39
8.2.70.0040.00417.88
8.2.60.0000.00818.30
8.2.50.0050.00318.07
8.2.40.0140.00518.41
8.2.30.0000.00718.56
8.2.20.0040.00418.39
8.2.10.0030.00618.46
8.2.00.0000.00718.05
8.1.280.0170.00325.92
8.1.270.0080.00022.62
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.91
8.1.230.0090.00321.25
8.1.220.0050.00318.16
8.1.210.0040.00418.88
8.1.200.0060.00317.59
8.1.190.0080.00017.47
8.1.180.0040.00418.10
8.1.170.0110.00018.86
8.1.160.0050.00319.20
8.1.150.0070.00020.66
8.1.140.0080.00019.80
8.1.130.0000.00717.79
8.1.120.0030.00517.61
8.1.110.0000.00717.65
8.1.100.0070.00017.60
8.1.90.0000.00717.80
8.1.80.0070.00317.79
8.1.70.0060.00317.60
8.1.60.0080.00017.70
8.1.50.0060.00317.85
8.1.40.0000.00817.69
8.1.30.0040.00417.74
8.1.20.0000.00817.78
8.1.10.0050.00317.86
8.1.00.0040.00417.66
8.0.300.0070.00020.41
8.0.290.0040.00417.00
8.0.280.0070.00018.61
8.0.270.0000.00717.66
8.0.260.0030.00317.16
8.0.250.0030.00317.24
8.0.240.0070.00017.41
8.0.230.0030.00317.38
8.0.220.0000.00817.27
8.0.210.0050.00317.13
8.0.200.0030.00317.11
8.0.190.0040.00417.40
8.0.180.0040.00417.32
8.0.170.0040.00417.13
8.0.160.0070.00017.11
8.0.150.0040.00416.97
8.0.140.0000.00717.25
8.0.130.0000.00513.46
8.0.120.0070.00017.29
8.0.110.0000.00717.16
8.0.100.0000.00717.20
8.0.90.0030.00317.20
8.0.80.0030.01317.21
8.0.70.0030.00517.13
8.0.60.0000.00717.21
8.0.50.0070.00017.16
8.0.30.0080.01117.41
8.0.20.0110.00917.42
8.0.10.0000.00817.32
8.0.00.0150.00916.87
7.4.330.0050.00015.55
7.4.320.0030.00316.87
7.4.300.0060.00016.97
7.4.290.0000.00816.80
7.4.280.0070.00016.90
7.4.270.0040.00416.89
7.4.260.0000.00716.80
7.4.250.0040.00416.85
7.4.240.0000.00716.77
7.4.230.0000.00716.80
7.4.220.0000.01716.94
7.4.210.0090.00816.91
7.4.200.0060.00316.77
7.4.160.0130.00316.86
7.4.150.0060.01317.40
7.4.140.0150.00417.86
7.4.130.0070.01016.85
7.4.120.0080.01016.88
7.4.110.0090.00916.80
7.4.100.0160.00716.92
7.4.90.0180.00016.83
7.4.80.0090.01219.39
7.4.70.0070.01016.71
7.4.60.0030.01316.82
7.4.50.0110.00416.56
7.4.40.0060.01517.05
7.4.30.0120.01117.04
7.4.00.0150.00014.92
7.3.330.0050.00013.43
7.3.320.0030.00313.51
7.3.310.0000.00716.34
7.3.300.0000.00716.66
7.3.290.0030.00316.51
7.3.280.0070.01016.58
7.3.270.0120.00617.40
7.3.260.0090.01116.63
7.3.250.0080.01016.58
7.3.240.0110.01016.69
7.3.230.0030.01416.67
7.3.210.0060.01216.63
7.3.200.0120.00916.71
7.3.190.0100.00716.80
7.3.180.0130.00716.64
7.3.170.0030.01516.62
7.3.160.0060.01216.80
7.2.330.0120.00616.73
7.2.320.0060.01217.15
7.2.310.0060.00916.84
7.2.300.0070.01117.05
7.2.290.0100.00716.98
7.2.80.0080.00416.91
7.2.60.0030.00717.02
7.1.200.0050.00515.83
7.1.70.0040.00817.07
7.1.60.0040.00817.47
7.1.50.0090.00317.20
7.1.40.0000.01216.73
7.1.30.0060.00616.73
7.1.20.0070.01116.84
7.1.10.0000.00916.69
7.1.00.0100.00516.83
7.0.200.0040.00416.97
7.0.190.0100.00316.88
7.0.180.0060.00616.53
7.0.170.0000.00816.63
7.0.160.0070.00716.52
7.0.150.0040.00716.44
7.0.140.0060.00616.68
7.0.130.0090.00616.82
7.0.120.0080.00416.63
7.0.110.0040.00816.46
7.0.100.0080.00416.50
7.0.90.0100.00716.45
7.0.80.0070.00716.58
7.0.70.0080.00616.71
7.0.60.0090.00316.36
7.0.50.0070.00016.52
7.0.40.0000.00714.86
7.0.30.0070.00714.86
7.0.20.0040.00414.86
7.0.10.0070.00314.86
7.0.00.0000.00714.86
5.6.300.0040.04320.92
5.6.290.0040.04620.93
5.6.280.0200.03721.23
5.6.270.0030.05121.13
5.6.260.0030.04621.02
5.6.250.0070.03821.15
5.6.240.0030.05921.26
5.6.230.0120.03720.95
5.6.220.0130.04621.05
5.6.210.0100.03421.18
5.6.200.0030.04120.85
5.6.190.0030.04021.01
5.6.180.0030.04420.98
5.6.170.0100.03521.07
5.6.160.0030.04221.08
5.6.150.0060.07120.97
5.6.140.0030.05321.10
5.6.130.0030.05620.88
5.6.120.0030.05920.88
5.6.110.0070.04821.10
5.6.100.0070.08421.08
5.6.90.0100.04521.08
5.6.80.0030.04120.45
5.6.70.0030.04220.38
5.6.60.0070.03620.55
5.6.50.0000.04120.47
5.6.40.0030.03820.43
5.6.30.0000.04320.59
5.6.20.0000.06720.46
5.6.10.0000.04620.57
5.6.00.0000.05020.37
5.5.380.0000.04017.57
5.5.370.0030.04217.59
5.5.360.0070.08317.54
5.5.350.0030.03817.50
5.5.340.0070.03518.22
5.5.330.0100.03218.24
5.5.320.0070.06717.95
5.5.310.0030.03918.21
5.5.300.0000.04218.21
5.5.290.0030.04418.19
5.5.280.0000.07317.91
5.5.270.0000.06918.27
5.5.260.0100.04618.13
5.5.250.0030.04617.73
5.5.240.0000.04117.34
5.5.230.0000.04217.47
5.5.220.0000.04417.60
5.5.210.0000.04117.33
5.5.200.0030.04117.54
5.5.190.0030.03717.53
5.5.180.0030.05417.47
5.5.160.0060.03817.59
5.5.150.0070.04917.30
5.5.140.0000.04117.59
5.5.130.0070.03717.46
5.5.120.0060.04517.62
5.5.110.0030.03817.25
5.5.100.0070.04117.52
5.5.90.0060.03517.33
5.5.80.0000.03917.42
5.5.70.0030.06017.15
5.5.60.0030.03617.42
5.5.50.0000.04217.42
5.5.40.0000.04017.42
5.5.30.0070.03417.42
5.5.20.0000.04417.41
5.5.10.0070.03417.45
5.5.00.0030.05217.19
5.4.450.0070.04419.52
5.4.440.0030.05819.42
5.4.430.0060.05119.55
5.4.420.0060.04419.61
5.4.410.0030.04519.39
5.4.400.0000.04419.26
5.4.390.0030.04219.06
5.4.380.0000.04119.26
5.4.370.0030.03819.17
5.4.360.0000.04019.20
5.4.350.0070.04119.29
5.4.340.0000.05418.98
5.4.320.0000.04118.97
5.4.310.0000.05919.32
5.4.300.0030.04419.20
5.4.290.0030.08118.97
5.4.280.0070.04219.22
5.4.270.0000.04019.25
5.4.260.0030.03719.25
5.4.250.0030.04819.16
5.4.240.0030.07319.34
5.4.230.0030.03718.96
5.4.220.0000.04119.28
5.4.210.0000.04119.29
5.4.200.0030.03919.25
5.4.190.0030.04019.27
5.4.180.0030.04219.20
5.4.170.0030.04619.30
5.4.160.0030.08219.24
5.4.150.0030.04819.23
5.4.140.0030.04216.73
5.4.130.0070.03216.52
5.4.120.0000.04716.55
5.4.110.0030.03516.54
5.4.100.0030.03416.70
5.4.90.0000.03716.70
5.4.80.0030.04716.65
5.4.70.0000.03716.69
5.4.60.0000.03616.46
5.4.50.0030.03716.72
5.4.40.0030.04216.59
5.4.30.0030.03316.58
5.4.20.0070.04616.82
5.4.10.0100.03816.44
5.4.00.0070.02916.29
5.3.290.0070.04114.86
5.3.280.0100.04114.86
5.3.270.0100.03414.86
5.3.260.0000.04014.86
5.3.250.0060.03514.86
5.3.240.0040.03614.86
5.3.230.0070.04314.86
5.3.220.0000.04014.86
5.3.210.0070.03614.86
5.3.200.0000.04114.86
5.3.190.0030.03514.86
5.3.180.0000.04914.86
5.3.170.0030.04414.86
5.3.160.0000.03814.86
5.3.150.0000.03714.86
5.3.140.0030.03614.86
5.3.130.0030.03614.86
5.3.120.0030.06314.86
5.3.110.0000.03914.86
5.3.100.0070.03014.86
5.3.90.0030.03314.86
5.3.80.0030.03814.86
5.3.70.0000.03914.86
5.3.60.0030.03314.86
5.3.50.0100.03214.86
5.3.40.0060.03214.86
5.3.30.0220.02914.86
5.3.20.0040.03214.86
5.3.10.0030.03714.86
5.3.00.0030.03314.86
5.2.170.0030.02814.86
5.2.160.0030.03214.86
5.2.150.0030.03514.86
5.2.140.0000.03014.86
5.2.130.0000.02914.86
5.2.120.0000.03114.86
5.2.110.0040.02514.86
5.2.100.0030.03014.86
5.2.90.0040.02514.86
5.2.80.0030.07714.86
5.2.70.0000.03214.86
5.2.60.0000.03214.86
5.2.50.0030.03514.86
5.2.40.0060.02814.86
5.2.30.0030.02714.86
5.2.20.0000.03214.86
5.2.10.0000.04114.86
5.2.00.0030.02714.86
5.1.60.0190.02314.86
5.1.50.0030.02314.86
5.1.40.0000.02614.86
5.1.30.0030.02814.86
5.1.20.0030.02414.86
5.1.10.0030.02414.86
5.1.00.0060.02214.86
5.0.50.0030.01914.86
5.0.40.0070.02314.86
5.0.30.0030.02914.86
5.0.20.0030.01814.86
5.0.10.0000.02314.86
5.0.00.0030.05414.86
4.4.90.0000.02614.86
4.4.80.0000.01614.86
4.4.70.0030.01314.86
4.4.60.0030.01314.86
4.4.50.0000.03214.86
4.4.40.0040.02514.86
4.4.30.0030.01514.86
4.4.20.0030.01714.86
4.4.10.0000.01614.86
4.4.00.0060.01914.86
4.3.110.0000.01714.86
4.3.100.0000.01614.86
4.3.90.0000.02214.86
4.3.80.0000.02414.86
4.3.70.0000.01614.86
4.3.60.0000.03214.86
4.3.50.0030.01614.86
4.3.40.0000.03214.86
4.3.30.0070.01014.86
4.3.20.0000.04114.86
4.3.10.0030.01314.86
4.3.00.0000.02014.86

preferences:
73.9 ms | 400 KiB | 5 Q