3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<Users> <User _un='NewGuy'> <UserInfo _pw='pass' _cr='0'/> </User> <User _un='Farach'> <UserInfo _pw='anthony1121@gmail.co' _cr='0'/> </User> </Users>"; $xml = simplexml_load_string( $xml); foreach( $xml->xpath( './/User') as $child) { echo $child->attributes()['_un'] . "\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.0120.00318.93
8.3.50.0160.00522.05
8.3.40.0140.00719.15
8.3.30.0070.00719.47
8.3.20.0000.00720.58
8.3.10.0050.00322.53
8.3.00.0040.00422.77
8.2.180.0160.00318.92
8.2.170.0070.00722.96
8.2.160.0130.00320.77
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0090.00019.86
8.2.110.0060.00322.47
8.2.100.0080.00420.06
8.2.90.0000.00819.67
8.2.80.0000.00818.30
8.2.70.0040.00418.00
8.2.60.0040.00418.43
8.2.50.0080.00018.07
8.2.40.0070.00018.59
8.2.30.0050.00218.45
8.2.20.0050.00318.03
8.2.10.0050.00319.88
8.2.00.0080.00018.15
8.1.280.0070.00725.92
8.1.270.0060.00322.51
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00319.13
8.1.230.0070.00419.53
8.1.220.0040.00418.02
8.1.210.0060.00318.77
8.1.200.0060.00317.75
8.1.190.0030.00617.90
8.1.180.0090.00018.10
8.1.170.0040.00419.03
8.1.160.0030.00622.36
8.1.150.0000.00719.04
8.1.140.0000.00717.81
8.1.130.0050.00218.23
8.1.120.0000.00817.68
8.1.110.0000.00717.73
8.1.100.0030.00417.89
8.1.90.0090.00017.71
8.1.80.0000.00717.80
8.1.70.0030.00317.91
8.1.60.0000.00817.80
8.1.50.0030.00517.88
8.1.40.0050.00317.96
8.1.30.0070.00018.09
8.1.20.0040.00417.82
8.1.10.0040.00418.05
8.1.00.0000.00717.98
8.0.300.0040.00418.77
8.0.290.0070.00017.41
8.0.280.0000.00718.82
8.0.270.0030.00317.58
8.0.260.0030.00317.16
8.0.250.0030.00317.41
8.0.240.0070.00317.22
8.0.230.0050.00217.19
8.0.220.0030.00317.34
8.0.210.0030.00317.32
8.0.200.0030.00317.36
8.0.190.0070.00017.32
8.0.180.0040.00417.27
8.0.170.0040.00417.14
8.0.160.0050.00217.42
8.0.150.0000.00717.40
8.0.140.0070.00017.21
8.0.130.0000.00613.81
8.0.120.0050.00317.20
8.0.110.0040.00417.26
8.0.100.0040.00417.17
8.0.90.0040.00417.26
8.0.80.0090.01217.32
8.0.70.0040.00417.21
8.0.60.0000.00917.16
8.0.50.0080.00017.25
8.0.30.0040.01517.71
8.0.20.0150.00717.67
8.0.10.0070.00017.31
8.0.00.0080.01517.18
7.4.330.0030.00315.00
7.4.320.0030.00317.00
7.4.300.0000.00616.72
7.4.290.0030.00317.02
7.4.280.0040.00416.98
7.4.270.0030.00316.91
7.4.260.0030.00316.93
7.4.250.0000.00716.96
7.4.240.0030.00416.90
7.4.230.0000.00716.95
7.4.220.0140.00316.86
7.4.210.0080.01016.94
7.4.200.0070.00016.68
7.4.190.0050.00217.17
7.4.160.0090.01216.82
7.4.150.0130.00417.40
7.4.140.0130.00717.86
7.4.130.0100.00716.90
7.4.120.0080.00817.00
7.4.110.0120.00616.97
7.4.100.0120.00616.87
7.4.90.0040.01216.80
7.4.80.0030.01519.39
7.4.70.0120.00617.01
7.4.60.0100.00716.66
7.4.50.0050.00516.78
7.4.40.0070.01022.77
7.4.30.0140.00317.00
7.4.00.0060.00315.00
7.3.330.0000.00513.41
7.3.320.0000.00513.47
7.3.310.0040.00416.41
7.3.300.0030.00316.62
7.3.290.0110.00416.68
7.3.280.0100.00616.69
7.3.270.0170.00017.40
7.3.260.0110.01116.61
7.3.250.0120.00516.66
7.3.240.0080.00817.05
7.3.230.0100.00716.77
7.3.210.0000.02016.79
7.3.200.0110.00619.39
7.3.190.0100.00716.55
7.3.180.0130.00316.74
7.3.170.0030.01916.62
7.3.160.0040.01216.55
7.3.120.0050.00814.83
7.2.330.0120.00616.94
7.2.320.0090.01517.10
7.2.310.0060.01117.17
7.2.300.0060.01416.88
7.2.290.0120.01217.04
7.2.00.0070.00719.64
7.1.100.0040.01118.44
7.1.70.0050.00317.24
7.1.60.0040.00819.82
7.1.50.0090.01616.82
7.1.00.0070.07322.58
7.0.200.0030.01117.00
7.0.140.0000.07722.21
7.0.60.0070.06720.08
7.0.50.0030.04317.91
7.0.40.0100.04320.25
7.0.30.0130.05020.28
7.0.20.0300.08320.45
7.0.10.0070.06720.36
7.0.00.0030.04720.37
5.6.280.0000.07321.06
5.6.210.0030.06720.78
5.6.200.0030.06318.37
5.6.190.0000.06020.88
5.6.180.0070.04720.63
5.6.170.0200.06320.69
5.6.160.0000.09720.69
5.6.150.0070.04018.37
5.6.140.0070.07018.33
5.6.130.0070.07018.37
5.6.120.0200.04021.17
5.6.110.0030.07721.20
5.6.100.0030.07321.27
5.6.90.0100.09021.19
5.6.80.0030.08320.56
5.5.350.0000.08020.60
5.5.340.0130.06718.07
5.5.330.0030.06720.64
5.5.320.0130.04320.55
5.5.310.0370.04020.52
5.5.300.0070.04018.11
5.5.290.0100.07718.16
5.5.280.0000.06321.15
5.5.270.0130.08020.94
5.5.260.0130.08021.04
5.5.250.0030.04720.76
5.5.240.0000.06320.30
5.4.450.3270.03719.38
5.4.440.2770.04019.69
5.4.430.2700.03719.39
5.4.420.2900.04019.38
5.4.410.2830.03019.29
5.4.400.2730.03719.30
5.4.390.2800.03319.24
5.4.380.2900.03719.08
5.4.370.2730.03319.36
5.4.360.2730.04019.03
5.4.350.2900.03719.39
5.4.340.2930.04019.25
5.4.320.3000.04319.45
5.4.310.2900.04719.09
5.4.300.2700.04019.28
5.4.290.2930.04019.09
5.4.280.2800.03719.45
5.4.270.3100.04019.30
5.4.260.3030.03319.34
5.4.250.3030.04019.36
5.4.240.3300.02319.46
5.4.230.2930.04319.05
5.4.220.2770.03319.38
5.4.210.3130.04019.39
5.4.200.2970.04019.22
5.4.190.2330.04019.07
5.4.180.2870.04019.35
5.4.170.2930.04319.07
5.4.160.2800.03019.06
5.4.150.2970.04019.28
5.4.140.3000.04016.57
5.4.130.2800.02716.36
5.4.120.2630.04016.56
5.4.110.2800.02716.45
5.4.100.2930.03716.48
5.4.90.2830.04016.58
5.4.80.3000.03316.58
5.4.70.2700.03316.38
5.4.60.3030.04016.61
5.4.50.2900.03016.61
5.4.40.3030.03316.59
5.4.30.2770.03716.48
5.4.20.2830.02716.34
5.4.10.3000.03016.59
5.4.00.3100.02716.11
5.3.290.2930.04714.54
5.3.280.3100.03714.43
5.3.270.2770.04314.48
5.3.260.3070.03714.55
5.3.250.2730.04014.44
5.3.240.2700.03714.55
5.3.230.2800.04014.62
5.3.220.3130.03014.62
5.3.210.2870.03714.45
5.3.200.2970.04014.48
5.3.190.2970.04714.51
5.3.180.3070.03714.40
5.3.170.3000.03714.41
5.3.160.3100.04014.40
5.3.150.3070.03714.41
5.3.140.3070.03714.41
5.3.130.2930.03714.58
5.3.120.2800.03314.47
5.3.110.3070.04014.48
5.3.100.3030.03314.05
5.3.90.2900.04014.05
5.3.80.3300.04714.05
5.3.70.2870.04714.05
5.3.60.2800.03714.05
5.3.50.2600.03314.05
5.3.40.2870.03714.05
5.3.30.3000.04014.05
5.3.20.3170.03014.05
5.3.10.3000.03714.05
5.3.00.2730.04014.05
5.2.170.2400.03314.05
5.2.160.2730.02714.05
5.2.150.2400.03014.05
5.2.140.2430.02714.05
5.2.130.2330.03314.05
5.2.120.2470.03314.05
5.2.110.2400.02714.05
5.2.100.2400.03014.05
5.2.90.2870.03014.05
5.2.80.2170.02714.05
5.2.70.2230.02314.05
5.2.60.2230.02714.05
5.2.50.2730.04714.05
5.2.40.1930.03014.05
5.2.30.1970.03714.05
5.2.20.2170.02314.05
5.2.10.2270.03014.05
5.2.00.1700.03014.05
5.1.60.2300.02714.05
5.1.50.1900.02314.05
5.1.40.2300.02014.05
5.1.30.1930.03014.05
5.1.20.1930.02714.05
5.1.10.2070.03014.05
5.1.00.2230.02714.05
5.0.50.0900.02314.05
5.0.40.0900.02014.05
5.0.30.0930.03014.05
5.0.20.1070.01714.05
5.0.10.1170.02714.05
5.0.00.1200.03714.05
4.4.90.1170.02014.05
4.4.80.1100.02314.05
4.4.70.0930.01714.05
4.4.60.1070.01714.05
4.4.50.1100.01714.05
4.4.40.1000.02314.05
4.4.30.0570.01014.05
4.4.20.1170.01714.05
4.4.10.1100.02314.05
4.4.00.0930.02714.05
4.3.110.1130.02014.05
4.3.100.0930.01314.05
4.3.90.1070.02314.05
4.3.80.1170.03314.05
4.3.70.1130.02014.05
4.3.60.1170.02014.05
4.3.50.1030.02014.05
4.3.40.1100.03314.05
4.3.30.0600.02314.05
4.3.20.0430.02014.05
4.3.10.0600.02714.05
4.3.00.0630.02314.05

preferences:
36.31 ms | 401 KiB | 5 Q