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"; if($child->attributes()['_un'] = "Farach"){ echo $child->UserInfo->attributes()['_cr']; } }

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.0090.00618.68
8.3.50.0070.00922.17
8.3.40.0140.00019.38
8.3.30.0080.01119.60
8.3.20.0040.00420.66
8.3.10.0000.00822.42
8.3.00.0050.00322.95
8.2.180.0000.01417.00
8.2.170.0140.00322.96
8.2.160.0140.00322.69
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0110.00426.16
8.2.120.0090.00018.00
8.2.110.0000.01022.75
8.2.100.0040.00720.01
8.2.90.0000.00819.78
8.2.80.0060.00318.30
8.2.70.0000.00818.00
8.2.60.0080.00018.28
8.2.50.0030.00518.07
8.2.40.0000.00818.59
8.2.30.0040.00418.65
8.2.20.0040.00418.13
8.2.10.0000.00819.86
8.2.00.0030.00518.17
8.1.280.0110.00325.92
8.1.270.0060.00322.48
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00424.27
8.1.230.0090.00319.47
8.1.220.0000.00818.16
8.1.210.0000.00818.77
8.1.200.0070.00317.73
8.1.190.0040.00417.93
8.1.180.0040.00418.10
8.1.170.0060.00318.89
8.1.160.0040.00424.16
8.1.150.0000.00719.05
8.1.140.0040.00417.75
8.1.130.0000.00718.23
8.1.120.0040.00417.95
8.1.110.0040.00417.78
8.1.100.0000.00717.77
8.1.90.0040.00417.67
8.1.80.0000.00717.93
8.1.70.0070.00017.66
8.1.60.0030.00617.84
8.1.50.0040.00417.96
8.1.40.0000.00917.96
8.1.30.0000.00817.87
8.1.20.0040.00418.13
8.1.10.0030.00518.01
8.1.00.0000.00717.87
8.0.300.0060.00318.77
8.0.290.0040.00417.43
8.0.280.0030.00318.75
8.0.270.0030.00317.59
8.0.260.0030.00317.19
8.0.250.0000.00717.32
8.0.240.0030.00717.18
8.0.230.0030.00317.36
8.0.220.0000.00817.32
8.0.210.0000.00717.28
8.0.200.0000.00717.22
8.0.190.0040.00417.37
8.0.180.0040.00417.35
8.0.170.0000.00817.16
8.0.160.0040.00417.21
8.0.150.0050.00217.20
8.0.140.0000.00717.09
8.0.130.0050.00013.71
8.0.120.0040.00417.28
8.0.110.0000.00817.36
8.0.100.0000.00717.26
8.0.90.0040.00417.21
8.0.80.0160.00617.34
8.0.70.0050.00217.16
8.0.60.0040.00417.18
8.0.50.0040.00417.31
8.0.30.0070.01317.36
8.0.20.0090.01017.40
8.0.10.0040.00417.44
8.0.00.0090.01117.19
7.4.330.0070.00015.00
7.4.320.0060.00017.07
7.4.300.0040.00417.04
7.4.290.0070.00016.86
7.4.280.0070.00016.91
7.4.270.0030.00316.77
7.4.260.0030.00316.76
7.4.250.0040.00417.00
7.4.240.0030.00517.00
7.4.230.0000.00716.97
7.4.220.0130.00316.92
7.4.210.0110.00516.96
7.4.200.0000.00716.99
7.4.190.0060.00317.04
7.4.160.0170.00016.94
7.4.150.0090.00817.40
7.4.140.0050.01517.86
7.4.130.0100.00816.97
7.4.120.0100.00716.80
7.4.110.0110.01016.91
7.4.100.0110.00516.95
7.4.90.0130.01016.92
7.4.80.0160.00019.39
7.4.70.0130.00316.79
7.4.60.0100.00717.01
7.4.50.0050.00317.02
7.4.40.0000.01122.77
7.4.30.0070.01016.88
7.4.00.0050.01314.94
7.3.330.0000.00513.31
7.3.320.0050.00013.55
7.3.310.0070.00016.36
7.3.300.0030.00316.64
7.3.290.0110.00916.57
7.3.280.0090.00816.58
7.3.270.0130.00917.40
7.3.260.0090.00916.73
7.3.250.0090.01016.82
7.3.240.0080.00816.93
7.3.230.0070.01016.53
7.3.210.0070.01016.68
7.3.200.0170.00019.39
7.3.190.0070.01416.71
7.3.180.0140.00716.93
7.3.170.0100.00616.69
7.3.160.0060.00917.08
7.3.120.0030.01015.03
7.3.110.0150.00614.89
7.3.100.0040.00415.11
7.3.90.0100.01014.91
7.3.80.0090.00614.98
7.3.70.0080.00814.65
7.3.60.0090.00314.94
7.3.50.0070.00414.75
7.3.40.0040.01114.80
7.3.30.0090.00614.87
7.3.20.0060.00616.92
7.3.10.0060.00916.77
7.3.00.0110.00316.75
7.2.330.0120.00617.34
7.2.320.0070.01217.23
7.2.310.0070.01317.02
7.2.300.0100.00716.77
7.2.290.0030.01317.03
7.2.250.0060.01214.96
7.2.240.0070.00815.30
7.2.230.0070.01015.38
7.2.220.0070.01315.48
7.2.210.0060.00915.39
7.2.200.0030.01215.09
7.2.190.0060.00615.30
7.2.180.0030.01215.17
7.2.170.0000.01415.35
7.2.00.0030.00919.84
7.1.330.0030.01415.96
7.1.320.0110.00416.04
7.1.310.0000.01415.95
7.1.300.0100.00615.86
7.1.290.0070.00715.82
7.1.280.0030.01215.95
7.1.270.0040.01115.92
7.1.260.0060.00615.84
7.1.100.0280.00817.48
7.1.70.0030.00617.19
7.1.60.0100.01419.82
7.1.50.0090.00917.03
7.1.00.0000.08022.54
7.0.200.0000.00717.04
7.0.140.0030.07322.27
7.0.100.0070.08320.27
7.0.90.0100.05320.13
7.0.80.0130.08020.11
7.0.70.0170.07020.12
7.0.60.0170.08020.27
7.0.50.0030.07020.43
7.0.40.0170.07320.26
7.0.30.0100.08020.26
7.0.20.0030.09020.35
7.0.10.0100.07720.23
7.0.00.0130.06720.30
5.6.280.0030.07321.15
5.6.250.0000.05020.74
5.6.240.0130.06320.89
5.6.230.0130.07020.70
5.6.220.0130.07720.88
5.6.210.0100.08320.66
5.6.200.0170.07721.25
5.6.190.0030.09021.23
5.6.180.0170.08021.31
5.6.170.0070.08321.25
5.6.160.0030.08321.23
5.6.150.0100.08321.26
5.6.140.0170.08021.12
5.6.130.0070.06321.30
5.6.120.0170.07721.19
5.6.110.0100.08021.33
5.6.100.0100.07721.12
5.6.90.0100.08021.21
5.6.80.0030.07320.61
5.6.70.0070.08020.49
5.6.60.0070.04020.72
5.6.50.0130.07720.55
5.6.40.0030.08720.57
5.6.30.0030.08020.57
5.6.20.0070.07020.58
5.6.10.0070.04320.60
5.6.00.0170.07020.56
5.5.380.0130.07320.52
5.5.370.0100.08020.52
5.5.360.0130.07720.46
5.5.350.0030.07320.66
5.5.340.0100.08021.04
5.5.330.0100.04721.02
5.5.320.0070.06021.02
5.5.310.0000.09021.07
5.5.300.0030.06321.01
5.5.290.0070.09020.91
5.5.280.0100.08021.09
5.5.270.0130.07721.03
5.5.260.0100.08020.86
5.5.250.0070.08320.88
5.5.240.0170.06720.30
5.5.230.0070.04720.29
5.5.220.0170.03320.41
5.5.210.0130.05020.35
5.5.200.0130.07320.41
5.5.190.0070.06020.42
5.5.180.0100.08720.39
5.5.160.0130.07720.25
5.5.150.0070.08320.36
5.5.140.0030.08020.42
5.5.130.0200.06720.44
5.5.120.0200.06320.27
5.5.110.0030.05320.41
5.5.100.0130.07020.22
5.5.90.0100.05720.34
5.5.80.0170.06720.24
5.5.70.0200.07020.14
5.5.60.0100.07720.27
5.5.50.0100.08020.22
5.5.40.0100.07720.27
5.5.30.0100.07720.30
5.5.20.0100.06720.22
5.5.10.0170.07020.18
5.5.00.0030.08320.23
5.4.450.0000.08719.56
5.4.440.0070.06319.52
5.4.430.0100.07319.34
5.4.420.0000.08019.62
5.4.410.0030.07719.18
5.4.400.0100.07319.24
5.4.390.0030.08019.02
5.4.380.0030.06319.26
5.4.370.0070.07019.24
5.4.360.0130.07019.32
5.4.350.0070.06019.40
5.4.340.0030.04719.23
5.4.320.0070.06719.23
5.4.310.0070.06719.18
5.4.300.0130.05719.45
5.4.290.0030.07319.24
5.4.280.0170.07019.33
5.4.270.0000.08319.28
5.4.260.0170.06719.43
5.4.250.0000.05719.24
5.4.240.0130.06319.22
5.4.230.0170.06019.41
5.4.220.0000.08019.22
5.4.210.0100.07319.23
5.4.200.0100.07719.22
5.4.190.0130.03719.17
5.4.180.0070.06019.25
5.4.170.0100.07019.21
5.4.160.0130.07019.22
5.4.150.0000.08719.43
5.4.140.0030.07716.47
5.4.130.0070.07316.49
5.4.120.0100.07316.53
5.4.110.0070.06016.50
5.4.100.0070.07716.54
5.4.90.0130.06716.43
5.4.80.0070.07016.36
5.4.70.0130.07016.62
5.4.60.0070.05316.35
5.4.50.0100.04316.43
5.4.40.0100.06716.62
5.4.30.0030.07316.43
5.4.20.0070.05316.48
5.4.10.0000.08316.43
5.4.00.0000.07716.02
5.3.290.0100.07314.66
5.3.280.0100.07714.57
5.3.270.0030.08314.48
5.3.260.0030.08314.59
5.3.250.0170.06714.56
5.3.240.0030.07714.56
5.3.230.0100.06014.60
5.3.220.0070.07314.56
5.3.210.0030.05714.51
5.3.200.0030.06314.56
5.3.190.0170.06014.58
5.3.180.0170.06314.55
5.3.170.0070.07714.52
5.3.160.0030.06314.41
5.3.150.0200.06014.42
5.3.140.0030.07314.41
5.3.130.0000.07714.54
5.3.120.0070.07714.41
5.3.110.0000.08314.49
5.3.100.0170.06714.03
5.3.90.0070.06714.02
5.3.80.0070.04313.89
5.3.70.0130.06714.02
5.3.60.0070.07714.00
5.3.50.0100.07013.96
5.3.40.0030.07713.93
5.3.30.0070.07013.69
5.3.20.0070.06013.56
5.3.10.0100.05713.54
5.3.00.0070.07013.64
5.2.170.0100.05712.52
5.2.160.0030.06712.52
5.2.150.0030.06312.52
5.2.140.0070.06312.52
5.2.130.0070.06312.52
5.2.120.0070.05012.52
5.2.110.0070.05312.52
5.2.100.0070.06012.52
5.2.90.0070.03712.52
5.2.80.0070.06312.52
5.2.70.0030.06712.52
5.2.60.0070.03712.52
5.2.50.0030.05012.52
5.2.40.0000.04012.52
5.2.30.0070.06312.52
5.2.20.0130.05012.52
5.2.10.0030.06012.52
5.2.00.0000.04312.52
5.1.60.0070.05012.52
5.1.50.0100.03312.52
5.1.40.0030.03712.52
5.1.30.0030.05712.52
5.1.20.0070.05312.52
5.1.10.0000.03312.52
5.1.00.0070.05312.52
5.0.50.0030.04312.52
5.0.40.0030.02712.52
5.0.30.0000.07012.52
5.0.20.0100.03712.52
5.0.10.0070.03012.52
5.0.00.0000.06312.52
4.4.90.0030.03712.52
4.4.80.0000.04012.52
4.4.70.0000.03712.52
4.4.60.0030.03712.52
4.4.50.0030.03312.52
4.4.40.0030.05312.52
4.4.30.0100.02712.52
4.4.20.0000.04012.52
4.4.10.0000.03312.52
4.4.00.0070.05012.52
4.3.110.0000.03712.52
4.3.100.0000.03012.52
4.3.90.0070.03012.52
4.3.80.0070.05012.52
4.3.70.0000.03712.52
4.3.60.0070.03012.52
4.3.50.0070.03012.52
4.3.40.0000.05312.52
4.3.30.0030.03312.52
4.3.20.0000.03712.52
4.3.10.0030.03712.52
4.3.00.0000.03012.52

preferences:
34.09 ms | 401 KiB | 5 Q