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) { 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.0050.01018.68
8.3.50.0100.00922.19
8.3.40.0150.00019.34
8.3.30.0100.00319.50
8.3.20.0030.00520.59
8.3.10.0040.00422.21
8.3.00.0040.00422.89
8.2.180.0180.00417.00
8.2.170.0120.00622.96
8.2.160.0030.01020.70
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0160.00326.16
8.2.120.0080.00418.00
8.2.110.0060.00322.59
8.2.100.0130.00020.07
8.2.90.0030.00619.55
8.2.80.0030.00518.30
8.2.70.0050.00318.00
8.2.60.0000.00818.30
8.2.50.0060.00318.07
8.2.40.0000.00818.72
8.2.30.0000.00818.43
8.2.20.0080.00018.13
8.2.10.0000.00819.83
8.2.00.0040.00418.17
8.1.280.0110.00325.92
8.1.270.0030.00622.38
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0080.00024.21
8.1.230.0000.01119.54
8.1.220.0040.00418.16
8.1.210.0060.00318.77
8.1.200.0030.00617.73
8.1.190.0000.00817.79
8.1.180.0000.00918.10
8.1.170.0030.00618.95
8.1.160.0000.00722.35
8.1.150.0000.00818.98
8.1.140.0040.00417.79
8.1.130.0040.00418.22
8.1.120.0050.00317.92
8.1.110.0070.00017.88
8.1.100.0000.00817.90
8.1.90.0050.00317.71
8.1.80.0040.00417.95
8.1.70.0050.00317.87
8.1.60.0030.00517.82
8.1.50.0030.00517.84
8.1.40.0040.00417.97
8.1.30.0000.00817.93
8.1.20.0040.00417.96
8.1.10.0040.00417.79
8.1.00.0080.00017.86
8.0.300.0070.00018.77
8.0.290.0060.00317.55
8.0.280.0000.00718.79
8.0.270.0070.00017.73
8.0.260.0030.00317.25
8.0.250.0000.00717.27
8.0.240.0000.01017.26
8.0.230.0000.00817.16
8.0.220.0030.00317.32
8.0.210.0040.00417.11
8.0.200.0000.00617.30
8.0.190.0060.00317.41
8.0.180.0070.00017.18
8.0.170.0050.00317.34
8.0.160.0000.00717.34
8.0.150.0000.00717.32
8.0.140.0050.00217.07
8.0.130.0030.00313.60
8.0.120.0060.00317.22
8.0.110.0050.00217.30
8.0.100.0040.00417.32
8.0.90.0040.00417.03
8.0.80.0140.00317.36
8.0.70.0040.00417.14
8.0.60.0070.00017.26
8.0.50.0000.00717.23
8.0.30.0150.00417.37
8.0.20.0150.01217.81
8.0.10.0000.00717.47
8.0.00.0120.00917.26
7.4.330.0070.00015.00
7.4.320.0070.00016.80
7.4.300.0050.00216.81
7.4.290.0070.00016.78
7.4.280.0000.00716.88
7.4.270.0040.00417.07
7.4.260.0000.00716.95
7.4.250.0040.00416.95
7.4.240.0000.00716.90
7.4.230.0030.00316.90
7.4.220.0120.00617.00
7.4.210.0070.00716.94
7.4.200.0030.00316.99
7.4.190.0000.00917.16
7.4.160.0030.01516.83
7.4.150.0130.00617.40
7.4.140.0170.00517.86
7.4.130.0120.00817.05
7.4.120.0110.00616.84
7.4.110.0030.01316.80
7.4.100.0120.00616.92
7.4.90.0120.00616.91
7.4.80.0080.01219.39
7.4.70.0060.00916.89
7.4.60.0140.00316.80
7.4.50.0000.00716.83
7.4.40.0030.01022.77
7.4.30.0030.01316.95
7.4.00.0030.01315.22
7.3.330.0000.00513.54
7.3.320.0030.00313.31
7.3.310.0030.00316.66
7.3.300.0030.00316.48
7.3.290.0140.00016.60
7.3.280.0080.00916.65
7.3.270.0070.01117.40
7.3.260.0120.00616.93
7.3.250.0100.00716.83
7.3.240.0070.01016.64
7.3.230.0170.00316.91
7.3.210.0090.00916.60
7.3.200.0150.00019.39
7.3.190.0080.00816.76
7.3.180.0040.01116.65
7.3.170.0150.00316.77
7.3.160.0100.00716.61
7.3.120.0100.00715.07
7.2.330.0090.01417.01
7.2.320.0230.00316.86
7.2.310.0080.00816.92
7.2.300.0100.01016.95
7.2.290.0170.00017.06
7.2.60.0110.00317.02
7.2.00.0100.00719.61
7.1.200.0130.00015.88
7.1.100.0000.01218.21
7.1.70.0070.00017.33
7.1.60.0040.00719.82
7.1.50.0150.01117.06
7.1.00.0070.06722.63
7.0.200.0070.00716.75
7.0.140.0070.06722.23
7.0.60.0170.04320.23
7.0.50.0000.09018.04
7.0.40.0030.05320.23
7.0.30.0330.03720.21
7.0.20.0230.05320.36
7.0.10.0000.04720.39
7.0.00.0070.04020.24
5.6.280.0100.06721.16
5.6.210.0100.08020.79
5.6.200.0130.07718.38
5.6.190.0100.06720.62
5.6.180.3100.04020.48
5.6.170.0270.07720.62
5.6.160.0030.08720.53
5.6.150.0170.09018.42
5.6.140.0030.08018.42
5.6.130.0030.05718.27
5.6.120.0070.08721.28
5.6.110.0100.08021.17
5.6.100.0100.04021.14
5.6.90.0030.09021.28
5.6.80.0070.05720.62
5.6.70.0070.05320.63
5.5.350.0170.08320.60
5.5.340.0030.05718.22
5.5.330.0130.07720.64
5.5.320.0270.03720.39
5.5.310.0200.04020.39
5.5.300.0070.03718.17
5.5.290.0100.07718.17
5.5.280.0030.08320.98
5.5.270.0070.03720.91
5.5.260.0030.06720.91
5.5.250.0100.07320.72
5.5.240.0170.05320.33
5.4.450.0530.06319.68
5.4.440.0130.06319.45
5.4.430.0170.05019.63
5.4.420.0130.05719.77
5.4.410.0100.06719.46
5.4.400.0830.00018.94
5.4.390.0770.00018.68
5.4.380.0230.06718.77
5.4.370.0170.05018.91
5.4.360.0130.05318.70
5.4.350.0170.05318.83
5.4.340.0130.05318.62
5.4.320.0030.03812.71
5.4.310.0060.04712.70
5.4.300.0040.03812.71
5.4.290.0070.03712.71
5.4.280.0060.03612.61
5.4.270.0170.06718.85
5.4.260.0130.07718.99
5.4.250.0100.07718.94
5.4.240.0170.06018.88
5.4.230.0030.06318.88
5.4.220.0100.07018.79
5.4.210.0100.08018.97
5.4.200.0100.06319.30
5.4.190.0100.07718.87
5.4.180.0100.06018.97
5.4.170.0070.05718.98
5.4.160.0170.06319.00
5.4.150.0170.08019.05
5.4.140.0100.07316.36
5.4.130.0130.04716.58
5.4.120.0170.05016.45
5.4.110.0030.07316.45
5.4.100.0130.05016.70
5.4.90.0130.07016.59
5.4.80.0170.06316.66
5.4.70.0070.05016.52
5.4.60.0170.05316.63
5.4.50.0100.04716.33
5.4.40.0000.07316.50
5.4.30.0000.05716.35
5.4.20.0170.04716.38
5.4.10.0130.05716.52
5.4.00.0170.06316.18
5.3.290.0100.04112.80
5.3.280.0070.07314.61
5.3.270.0130.05714.38
5.3.260.0130.07314.60
5.3.250.0100.05014.52
5.3.240.0030.08314.53
5.3.230.0030.05714.50
5.3.220.0130.05314.58
5.3.210.0030.07714.41
5.3.200.0130.05014.57
5.3.190.0130.05314.43
5.3.180.0070.07714.45
5.3.170.0100.06314.50
5.3.160.0100.06014.45
5.3.150.0070.05314.42
5.3.140.0130.06714.25
5.3.130.0170.04714.55
5.3.120.0130.07314.55
5.3.110.0100.06014.25
5.3.100.0130.05713.74
5.3.90.0170.04014.07
5.3.80.0100.06313.89
5.3.70.0100.06713.91
5.3.60.0030.06713.88
5.3.50.0070.04713.89
5.3.40.0170.04314.00
5.3.30.0170.04313.92
5.3.20.0130.04713.73
5.3.10.0130.06013.66
5.3.00.0000.06013.68
5.2.170.0130.05311.06
5.2.160.0100.05311.06
5.2.150.0030.05311.06
5.2.140.0030.05711.02
5.2.130.0030.06011.00
5.2.120.0130.04311.10
5.2.110.0100.05011.09
5.2.100.0030.04311.11
5.2.90.0030.06311.21
5.2.80.0030.05310.99
5.2.70.0070.05311.24
5.2.60.0100.05311.16
5.2.50.0130.05311.12
5.2.40.0070.04711.15
5.2.30.0070.04710.86
5.2.20.0170.04310.85
5.2.10.0030.05010.94
5.2.00.0070.05710.73
5.1.60.0130.03710.09
5.1.50.0100.0439.92
5.1.40.0100.04310.04
5.1.30.0070.03310.31
5.1.20.0070.04010.33
5.1.10.0070.0379.98
5.1.00.0030.04310.13
5.0.50.0070.0308.46
5.0.40.0070.0238.38
5.0.30.0100.0508.24
5.0.20.0070.0278.19
5.0.10.0000.0338.23
5.0.00.0070.0438.07
4.4.90.0070.0276.79
4.4.80.0000.0306.79
4.4.70.0070.0306.79
4.4.60.0030.0276.79
4.4.50.0030.0236.79
4.4.40.0070.0406.79
4.4.30.0000.0306.79
4.4.20.0030.0336.79
4.4.10.0000.0336.79
4.4.00.0000.0376.79
4.3.110.0030.0306.79
4.3.100.0070.0236.79
4.3.90.0100.0236.79
4.3.80.0000.0506.79
4.3.70.0070.0276.79
4.3.60.0000.0306.79
4.3.50.0000.0376.79
4.3.40.0070.0336.79
4.3.30.0030.0276.79
4.3.20.0030.0306.79
4.3.10.0030.0306.79
4.3.00.0130.0206.55

preferences:
39.13 ms | 401 KiB | 5 Q