3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<root> <parent> <child name='Child1'>Moi</child> <child name='Child2'>Terve</child> <subparent> <child name='Child3'>Hei</child> </subparent> </parent> <child name='Child4' /> </root>"; $xml = simplexml_load_string( $xml); $result = $xml->xpath('subparent/child'); while(list( , $node) = each($result)) { echo 'b/c: ',$node,"\n"; }

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.0150.00618.56
8.3.50.0170.00322.14
8.3.40.0130.00619.02
8.3.30.0100.01020.72
8.3.20.0090.00619.09
8.3.10.0110.00419.68
8.3.00.0000.00820.04
8.2.180.0070.00717.13
8.2.170.0110.00322.96
8.2.160.0110.00720.80
8.2.150.0030.00624.18
8.2.140.0000.01424.66
8.2.130.0110.00726.16
8.2.120.0090.00021.55
8.2.110.0030.00622.63
8.2.100.0110.00018.22
8.2.90.0080.00019.61
8.2.80.0040.00419.55
8.2.70.0000.00817.88
8.2.60.0030.00618.18
8.2.50.0030.00618.07
8.2.40.0030.00520.45
8.2.30.0060.00321.62
8.2.20.0070.00017.96
8.2.10.0030.00618.23
8.2.00.0000.00918.17
8.1.280.0140.00325.92
8.1.270.0090.00923.99
8.1.260.0070.01126.35
8.1.250.0080.00828.09
8.1.240.0100.00022.73
8.1.230.0110.00021.22
8.1.220.0040.00418.77
8.1.210.0080.00019.16
8.1.200.0060.00317.60
8.1.190.0000.00817.91
8.1.180.0060.00318.10
8.1.170.0060.00318.87
8.1.160.0000.00719.24
8.1.150.0000.01118.91
8.1.140.0040.00417.82
8.1.130.0000.00718.17
8.1.120.0040.00417.62
8.1.110.0000.00817.64
8.1.100.0050.00317.81
8.1.90.0070.00017.74
8.1.80.0040.00417.87
8.1.70.0030.00317.68
8.1.60.0060.00317.99
8.1.50.0040.00417.89
8.1.40.0040.00417.95
8.1.30.0040.00418.13
8.1.20.0000.00817.90
8.1.10.0070.00017.78
8.1.00.0000.00917.89
8.0.300.0050.00320.23
8.0.290.0030.00517.43
8.0.280.0070.00018.79
8.0.270.0040.00417.52
8.0.260.0000.00817.14
8.0.250.0040.00417.18
8.0.240.0050.00317.20
8.0.230.0040.00417.27
8.0.220.0000.00617.25
8.0.210.0050.00517.33
8.0.200.0030.00317.38
8.0.190.0040.00417.18
8.0.180.0040.00417.27
8.0.170.0000.00717.06
8.0.160.0050.00217.15
8.0.150.0000.00717.13
8.0.140.0000.00717.05
8.0.130.0070.00013.56
8.0.120.0040.00417.31
8.0.110.0030.00717.20
8.0.100.0000.00717.26
8.0.90.0000.00717.17
8.0.80.0110.01117.34
8.0.70.0000.00717.16
8.0.60.0040.00417.08
8.0.50.0000.00717.06
8.0.30.0080.01117.44
8.0.20.0110.00817.74
8.0.10.0050.00217.35
8.0.00.0090.00917.14
7.4.330.0000.00617.20
7.4.320.0000.00716.82
7.4.300.0040.00416.84
7.4.290.0030.00316.83
7.4.280.0070.00016.80
7.4.270.0040.00416.88
7.4.260.0000.00613.67
7.4.250.0000.00716.78
7.4.240.0050.00216.93
7.4.230.0000.00716.85
7.4.220.0140.00316.97
7.4.210.0100.00716.88
7.4.200.0000.00716.66
7.4.190.0000.00816.95
7.4.160.0050.01116.84
7.4.150.0090.00917.40
7.4.140.0080.01017.86
7.4.130.0100.00916.93
7.4.120.0090.00916.88
7.4.110.0090.00916.82
7.4.100.0170.00017.07
7.4.90.0130.01016.83
7.4.80.0070.01819.39
7.4.70.0070.01016.98
7.4.60.0090.00616.72
7.4.50.0030.00516.41
7.4.40.0070.00722.77
7.4.30.0130.01016.86
7.4.00.0040.01414.98
7.3.330.0000.00513.29
7.3.320.0000.00613.56
7.3.310.0020.00516.73
7.3.300.0000.00716.66
7.3.290.0060.00916.68
7.3.280.0070.00916.63
7.3.270.0190.00617.40
7.3.260.0080.01418.24
7.3.250.0150.00616.71
7.3.240.0040.01216.66
7.3.230.0070.01016.89
7.3.210.0130.00316.65
7.3.200.0060.01319.39
7.3.190.0150.00616.61
7.3.180.0110.00516.58
7.3.170.0030.01316.66
7.3.160.0120.00616.64
7.3.120.0030.01014.84
7.2.330.0130.01317.05
7.2.320.0060.01116.55
7.2.310.0130.00516.91
7.2.300.0070.01016.77
7.2.290.0060.01117.02
7.2.60.0060.01016.93
7.2.00.0060.00619.38
7.1.200.0060.00915.68
7.1.70.0030.00617.13
7.1.60.0000.01117.38
7.1.50.0060.00917.11
7.1.40.0060.00616.67
7.1.30.0040.00716.75
7.1.20.0050.00516.95
7.1.10.0040.00416.61
7.1.00.0040.00716.86
7.0.200.0050.00217.06
7.0.190.0040.00416.92
7.0.180.0040.00416.51
7.0.170.0070.00416.37
7.0.160.0000.00816.43
7.0.150.0040.00416.50
7.0.140.0090.00016.54
7.0.130.0060.00316.71
7.0.120.0000.01016.72
7.0.110.0050.00316.58
7.0.100.0080.00016.61
7.0.90.0030.00716.66
7.0.80.0040.00416.70
7.0.70.0030.00616.38
7.0.60.0040.01116.35
7.0.50.0000.00816.70
7.0.40.0090.00615.73
7.0.30.0040.00715.73
7.0.20.0040.00415.73
7.0.10.0070.00715.73
7.0.00.0030.00715.73
5.6.300.0130.04321.01
5.6.290.0070.08420.98
5.6.280.0100.03521.16
5.6.270.0100.03321.12
5.6.260.0000.05921.05
5.6.250.0000.04421.10
5.6.240.0060.03821.02
5.6.230.0000.04421.02
5.6.220.0030.04320.92
5.6.210.0100.05621.14
5.6.200.0030.04821.04
5.6.190.0000.04721.09
5.6.180.0060.04521.07
5.6.170.0130.06921.10
5.6.160.0100.04521.04
5.6.150.0030.04320.98
5.6.140.0030.04320.88
5.6.130.0100.06621.16
5.6.120.0060.05221.09
5.6.110.0070.06820.95
5.6.100.0030.06521.04
5.6.90.0030.04321.08
5.6.80.0000.04420.44
5.6.70.0030.04020.47
5.6.60.0100.03520.36
5.6.50.0230.03720.20
5.6.40.0030.04820.45
5.6.30.0000.05820.45
5.6.20.0030.05320.39
5.6.10.0070.05320.43
5.6.00.0030.03920.52
5.5.380.0130.02917.71
5.5.370.0070.03917.72
5.5.360.0000.04417.76
5.5.350.0060.03917.66
5.5.340.0030.04018.08
5.5.330.0070.08218.18
5.5.320.0070.08518.18
5.5.310.0030.08618.21
5.5.300.0030.08518.21
5.5.290.0030.04117.98
5.5.280.0030.04118.00
5.5.270.0000.04518.17
5.5.260.0000.05118.12
5.5.250.0030.04618.03
5.5.240.0000.04417.63
5.5.230.0000.06317.61
5.5.220.0030.07217.52
5.5.210.0030.06717.47
5.5.200.0030.06617.63
5.5.190.0000.04517.57
5.5.180.0000.05517.43
5.5.160.0030.04617.41
5.5.150.0000.04817.26
5.5.140.0030.03917.57
5.5.130.0000.04417.43
5.5.120.0000.05217.29
5.5.110.0000.05017.34
5.5.100.0030.03717.52
5.5.90.0100.05117.51
5.5.80.0000.03917.50
5.5.70.0030.04217.48
5.5.60.0030.07817.25
5.5.50.0000.04217.45
5.5.40.0070.04117.18
5.5.30.0030.03617.50
5.5.20.0030.04517.40
5.5.10.0030.07417.18
5.5.00.0060.04817.47
5.4.450.0070.07619.52
5.4.440.0030.04319.63
5.4.430.0090.04119.51
5.4.420.0030.03919.61
5.4.410.0070.04319.39
5.4.400.0030.04019.35
5.4.390.0130.03719.30
5.4.380.0030.04319.20
5.4.370.0130.04319.21
5.4.360.0170.04419.23
5.4.350.0030.08219.17
5.4.340.0000.06719.22
5.4.320.0100.04019.06
5.4.310.0000.04119.20
5.4.300.0190.03819.20
5.4.290.0030.03619.18
5.4.280.0030.04319.35
5.4.270.0030.04019.21
5.4.260.0070.04319.35
5.4.250.0060.07419.20
5.4.240.0060.04218.96
5.4.230.0030.04919.28
5.4.220.0000.05219.28
5.4.210.0030.05718.97
5.4.200.0000.04019.27
5.4.190.0100.05819.24
5.4.180.0030.04519.30
5.4.170.0100.03619.30
5.4.160.0100.03619.16
5.4.150.0060.03819.24
5.4.140.0000.03916.70
5.4.130.0030.03716.86
5.4.120.0030.04216.59
5.4.110.0000.03916.80
5.4.100.0070.04016.67
5.4.90.0000.03816.50
5.4.80.0030.03616.47
5.4.70.0000.04016.68
5.4.60.0060.03516.66
5.4.50.0000.04116.61
5.4.40.0070.03316.69
5.4.30.0100.02816.45
5.4.20.0000.03616.51
5.4.10.0030.08216.58
5.4.00.0000.04015.96
5.3.290.0000.04715.73
5.3.280.0030.06515.73
5.3.270.0030.03715.73
5.3.260.0000.04015.73
5.3.250.0030.06415.73
5.3.240.0030.07415.73
5.3.230.0030.03615.73
5.3.220.0030.03615.73
5.3.210.0070.04815.73
5.3.200.0000.03915.73
5.3.190.0240.03115.73
5.3.180.0000.04315.73
5.3.170.0040.03515.73
5.3.160.0000.04115.73
5.3.150.0060.03515.73
5.3.140.0070.03715.73
5.3.130.0090.03115.73
5.3.120.0030.05715.73
5.3.110.0000.05315.73
5.3.100.0030.03715.73
5.3.90.0030.05415.73
5.3.80.0100.03215.73
5.3.70.0000.04715.73
5.3.60.0000.05315.73
5.3.50.0000.08615.73
5.3.40.0030.03415.73
5.3.30.0000.04115.73
5.3.20.0030.06615.73
5.3.10.0030.03815.73
5.3.00.0030.03715.73
5.2.170.0000.03915.73
5.2.160.0000.04615.73
5.2.150.0000.03015.73
5.2.140.0030.04915.73
5.2.130.0000.06515.73
5.2.120.0060.04215.73
5.2.110.0060.02615.73
5.2.100.0060.02715.73
5.2.90.0000.03015.73
5.2.80.0000.03215.73
5.2.70.0000.03415.73
5.2.60.0000.03115.73
5.2.50.0000.03215.73
5.2.40.0130.04515.73
5.2.30.0030.03215.73
5.2.20.0030.02715.73
5.2.10.0060.02515.73
5.2.00.0030.03815.73
5.1.60.0090.02515.73
5.1.50.0060.02315.73
5.1.40.0030.02415.73
5.1.30.0030.02415.73
5.1.20.0030.02615.73
5.1.10.0030.02515.73
5.1.00.0000.03115.73
5.0.50.0060.01515.73
5.0.40.0030.02115.73
5.0.30.0030.05615.73
5.0.20.0000.02815.73
5.0.10.0000.02115.73
5.0.00.0000.04015.73
4.4.90.0030.01515.73
4.4.80.0040.01215.73
4.4.70.0040.01415.73
4.4.60.0030.01315.73
4.4.50.0000.01615.73
4.4.40.0000.02915.73
4.4.30.0030.01615.73
4.4.20.0000.02115.73
4.4.10.0000.01715.73
4.4.00.0040.02115.73
4.3.110.0030.01615.73
4.3.100.0030.01615.73
4.3.90.0060.01315.73
4.3.80.0030.02415.73
4.3.70.0070.01715.73
4.3.60.0000.01915.73
4.3.50.0030.01415.73
4.3.40.0000.02715.73
4.3.30.0000.01815.73
4.3.20.0000.02115.73
4.3.10.0000.01815.73
4.3.00.0030.01815.73

preferences:
50.27 ms | 401 KiB | 5 Q