3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<Users> <User _un='NewGuy'> <UserInfo _pw='pass' _cr='555550'/> </User> <User _un='Farach'> <UserInfo _pw='anthony1121@gmail.co' _cr='11110'/> </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.0110.00818.68
8.3.50.0140.00922.11
8.3.40.0070.00718.96
8.3.30.0070.00719.46
8.3.20.0040.00420.57
8.3.10.0080.00022.40
8.3.00.0080.00022.48
8.2.180.0100.01017.13
8.2.170.0160.00322.96
8.2.160.0100.00320.76
8.2.150.0050.00224.18
8.2.140.0060.00324.66
8.2.130.0100.00726.16
8.2.120.0050.00918.13
8.2.110.0060.00322.68
8.2.100.0000.01120.07
8.2.90.0000.00819.72
8.2.80.0000.00918.26
8.2.70.0000.00817.98
8.2.60.0040.00418.41
8.2.50.0000.01018.07
8.2.40.0040.00418.72
8.2.30.0000.00818.48
8.2.20.0000.00818.09
8.2.10.0050.00319.91
8.2.00.0040.00418.25
8.1.280.0100.01025.92
8.1.270.0060.00322.56
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0030.00524.37
8.1.230.0110.00019.57
8.1.220.0040.00418.29
8.1.210.0040.00418.77
8.1.200.0030.00617.60
8.1.190.0040.00417.89
8.1.180.0000.00818.10
8.1.170.0030.00618.96
8.1.160.0040.00422.39
8.1.150.0000.00919.05
8.1.140.0040.00417.74
8.1.130.0000.00718.20
8.1.120.0070.00017.83
8.1.110.0040.00417.63
8.1.100.0040.00417.66
8.1.90.0040.00417.72
8.1.80.0030.00517.63
8.1.70.0000.00817.82
8.1.60.0030.00618.02
8.1.50.0080.00017.94
8.1.40.0030.00517.95
8.1.30.0030.00617.92
8.1.20.0040.00417.88
8.1.10.0040.00417.76
8.1.00.0040.00417.98
8.0.300.0000.00718.77
8.0.290.0000.00717.55
8.0.280.0030.00318.77
8.0.270.0000.00717.63
8.0.260.0030.00317.23
8.0.250.0040.00417.18
8.0.240.0060.00317.44
8.0.230.0030.00317.26
8.0.220.0070.00017.13
8.0.210.0030.00317.23
8.0.200.0060.00017.42
8.0.190.0080.00017.21
8.0.180.0040.00417.36
8.0.170.0080.00017.35
8.0.160.0000.00817.35
8.0.150.0000.00717.15
8.0.140.0040.00417.27
8.0.130.0060.00013.59
8.0.120.0040.00417.07
8.0.110.0070.00017.22
8.0.100.0040.00417.25
8.0.90.0040.00317.25
8.0.80.0070.01017.32
8.0.70.0050.00217.02
8.0.60.0000.00717.29
8.0.50.0000.00717.34
8.0.30.0150.01117.53
8.0.20.0110.01317.53
8.0.10.0000.00917.30
8.0.00.0100.01017.07
7.4.330.0000.00715.00
7.4.320.0000.00716.98
7.4.300.0030.00316.87
7.4.290.0000.00716.89
7.4.280.0040.00417.06
7.4.270.0070.00017.00
7.4.260.0030.00316.95
7.4.250.0000.00716.93
7.4.240.0040.00316.97
7.4.230.0000.00717.06
7.4.220.0100.00716.97
7.4.210.0100.00716.95
7.4.200.0000.00716.75
7.4.190.0030.00516.93
7.4.160.0080.00816.82
7.4.150.0030.01417.40
7.4.140.0080.01117.86
7.4.130.0070.01016.79
7.4.120.0120.00516.91
7.4.110.0170.00017.02
7.4.100.0110.00816.95
7.4.90.0040.01216.74
7.4.80.0120.00919.39
7.4.70.0150.00516.91
7.4.60.0120.00416.93
7.4.50.0000.00816.70
7.4.40.0000.01322.77
7.4.30.0030.01416.96
7.4.00.0080.00815.20
7.3.330.0030.00313.40
7.3.320.0050.00013.54
7.3.310.0030.00316.45
7.3.300.0000.00616.61
7.3.290.0040.01116.75
7.3.280.0080.01216.68
7.3.270.0040.01217.40
7.3.260.0090.00916.77
7.3.250.0110.00716.73
7.3.240.0100.00716.57
7.3.230.0100.00816.57
7.3.210.0050.01716.93
7.3.200.0090.00619.39
7.3.190.0080.00816.65
7.3.180.0130.00316.66
7.3.170.0140.00716.82
7.3.160.0080.00816.93
7.3.120.0070.01014.83
7.2.330.0090.00916.89
7.2.320.0040.02116.88
7.2.310.0060.01617.02
7.2.300.0120.00616.80
7.2.290.0060.00917.08
7.2.00.0090.00619.20
7.1.100.0000.01118.18
7.1.70.0080.00317.23
7.1.60.0040.00817.22
7.1.50.0140.01135.00
7.1.00.0030.07322.66
7.0.200.0050.00516.85
7.0.140.0000.07722.39
7.0.60.0030.06720.08
7.0.50.0030.07718.04
7.0.40.0170.07320.52
7.0.30.0400.06720.38
7.0.20.0230.08320.36
7.0.10.0400.04020.26
7.0.00.0030.08720.36
5.6.280.0070.07021.23
5.6.210.0100.06320.81
5.6.200.0100.08318.37
5.6.190.0070.09020.63
5.6.180.4000.03720.84
5.6.170.0170.07320.58
5.6.160.0070.09020.64
5.6.150.0100.06718.34
5.6.140.0030.07318.34
5.6.130.0030.07718.37
5.6.120.0170.07021.23
5.6.110.0070.05021.16
5.6.100.0130.06021.20
5.6.90.0030.05021.25
5.6.80.0070.06020.51
5.6.70.0230.02720.56
5.5.350.0000.03720.64
5.5.340.0030.08318.10
5.5.330.0030.04020.29
5.5.320.0200.04320.52
5.5.310.0370.06720.39
5.5.300.0130.03718.19
5.5.290.0070.08318.16
5.5.280.0100.05721.09
5.5.270.0070.08020.95
5.5.260.0070.08320.93
5.5.250.0100.04020.89
5.5.240.0070.03320.33
5.4.450.0530.06719.79
5.4.440.0700.05719.31
5.4.430.0230.04719.71
5.4.420.0130.05319.66
5.4.410.0200.05719.63
5.4.400.0770.00018.84
5.4.390.0900.00018.93
5.4.380.0330.05018.92
5.4.370.0130.05318.68
5.4.360.0270.06318.62
5.4.350.0100.05718.68
5.4.340.0130.05318.93
5.4.320.0090.03412.70
5.4.310.0070.03712.70
5.4.300.0050.03712.70
5.4.290.0060.03812.70
5.4.280.0050.04312.59
5.4.270.0100.06019.09
5.4.260.0100.07719.05
5.4.250.0100.05719.07
5.4.240.0170.05019.03
5.4.230.0130.07019.23
5.4.220.0000.08719.07
5.4.210.0070.07718.98
5.4.200.0000.08718.86
5.4.190.0100.07319.20
5.4.180.0130.05019.02
5.4.170.0100.07018.98
5.4.160.0200.05319.06
5.4.150.0030.06718.96
5.4.140.0170.04316.61
5.4.130.0130.05316.37
5.4.120.0030.07716.32
5.4.110.0100.05316.53
5.4.100.0200.06316.45
5.4.90.0100.06316.65
5.4.80.0130.05016.51
5.4.70.0130.06716.55
5.4.60.0200.06016.63
5.4.50.0170.07016.64
5.4.40.0070.07716.67
5.4.30.0100.04716.64
5.4.20.0100.05016.38
5.4.10.0130.07016.66
5.4.00.0230.05015.80
5.3.290.0020.04312.80
5.3.280.0230.06014.63
5.3.270.0030.06314.46
5.3.260.0270.06014.62
5.3.250.0170.05714.61
5.3.240.0100.04714.46
5.3.230.0130.07014.62
5.3.220.0130.07014.63
5.3.210.0170.05714.45
5.3.200.0200.04314.56
5.3.190.0170.05014.43
5.3.180.0070.08014.48
5.3.170.0170.05714.45
5.3.160.0130.06714.71
5.3.150.0130.05014.56
5.3.140.0200.05314.57
5.3.130.0100.07014.44
5.3.120.0070.08014.40
5.3.110.0070.06014.59
5.3.100.0030.06014.03
5.3.90.0170.07313.89
5.3.80.0000.05714.04
5.3.70.0070.05313.72
5.3.60.0200.06013.87
5.3.50.0170.06713.97
5.3.40.0030.07013.96
5.3.30.0130.06713.95
5.3.20.0070.05013.62
5.3.10.0130.04013.80
5.3.00.0200.05713.50
5.2.170.0130.04011.06
5.2.160.0030.04711.06
5.2.150.0100.06011.16
5.2.140.0030.04311.06
5.2.130.0100.04011.11
5.2.120.0070.06311.20
5.2.110.0000.04711.02
5.2.100.0030.04711.00
5.2.90.0070.05311.19
5.2.80.0130.03711.10
5.2.70.0030.05011.09
5.2.60.0100.05310.89
5.2.50.0100.04311.02
5.2.40.0130.05010.88
5.2.30.0130.04710.88
5.2.20.0130.05010.89
5.2.10.0170.04310.75
5.2.00.0170.04010.87
5.1.60.0070.0409.85
5.1.50.0030.0379.93
5.1.40.0000.04310.15
5.1.30.0000.04310.55
5.1.20.0070.04310.57
5.1.10.0100.0379.98
5.1.00.0000.04010.11
5.0.50.0070.0408.73
5.0.40.0000.0338.30
5.0.30.0030.0478.28
5.0.20.0130.0308.38
5.0.10.0070.0408.41
5.0.00.0130.0408.12
4.4.90.0070.0205.77
4.4.80.0000.0275.85
4.4.70.0070.0275.74
4.4.60.0030.0275.79
4.4.50.0030.0305.79
4.4.40.0030.0335.90
4.4.30.0030.0205.92
4.4.20.0170.0175.84
4.4.10.0000.0305.82
4.4.00.0100.0375.79
4.3.110.0070.0205.72
4.3.100.0100.0235.71
4.3.90.0100.0235.67
4.3.80.0070.0305.68
4.3.70.0030.0205.81
4.3.60.0070.0275.66
4.3.50.0100.0175.70
4.3.40.0030.0375.64
4.3.30.0000.0305.52
4.3.20.0000.0275.52
4.3.10.0030.0235.52
4.3.00.0070.0276.54

preferences:
45.45 ms | 401 KiB | 5 Q