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

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.00618.93
8.3.50.0080.00822.17
8.3.40.0090.00619.18
8.3.30.0070.00719.46
8.3.20.0080.00020.63
8.3.10.0040.00422.42
8.3.00.0080.00022.68
8.2.180.0110.01117.25
8.2.170.0130.00722.96
8.2.160.0090.00620.72
8.2.150.0080.00024.18
8.2.140.0040.01124.66
8.2.130.0050.00326.16
8.2.120.0000.00821.18
8.2.110.0060.00322.80
8.2.100.0040.00820.01
8.2.90.0000.00919.67
8.2.80.0040.00418.30
8.2.70.0040.00418.00
8.2.60.0000.00818.30
8.2.50.0030.00618.07
8.2.40.0080.00018.51
8.2.30.0000.00818.52
8.2.20.0050.00218.22
8.2.10.0080.00019.86
8.2.00.0070.00018.10
8.1.280.0160.00625.92
8.1.270.0040.00422.51
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00424.14
8.1.230.0040.00719.39
8.1.220.0040.00417.93
8.1.210.0050.00318.77
8.1.200.0070.00317.73
8.1.190.0000.00817.89
8.1.180.0060.00318.10
8.1.170.0040.00418.96
8.1.160.0030.00622.39
8.1.150.0000.00818.98
8.1.140.0000.00717.81
8.1.130.0000.00718.15
8.1.120.0070.00017.83
8.1.110.0030.00317.63
8.1.100.0040.00417.74
8.1.90.0070.00017.77
8.1.80.0000.00717.69
8.1.70.0000.00717.61
8.1.60.0000.01018.07
8.1.50.0050.00318.02
8.1.40.0030.00517.85
8.1.30.0000.00718.07
8.1.20.0040.00418.15
8.1.10.0040.00418.05
8.1.00.0030.00617.98
8.0.300.0000.00718.77
8.0.290.0070.00017.55
8.0.280.0030.00318.82
8.0.270.0070.00017.63
8.0.260.0000.00717.16
8.0.250.0000.00717.41
8.0.240.0100.00017.26
8.0.230.0070.00017.16
8.0.220.0000.00617.31
8.0.210.0040.00317.34
8.0.200.0030.00317.30
8.0.190.0040.00417.28
8.0.180.0040.00417.34
8.0.170.0000.00717.34
8.0.160.0040.00417.39
8.0.150.0050.00317.34
8.0.140.0000.00717.34
8.0.130.0060.00013.76
8.0.120.0030.00617.19
8.0.110.0070.00017.23
8.0.100.0030.00317.28
8.0.90.0040.00417.29
8.0.80.0130.00617.32
8.0.70.0040.00417.23
8.0.60.0030.00317.11
8.0.50.0000.00817.23
8.0.30.0060.01317.49
8.0.20.0100.01217.54
8.0.10.0080.00017.38
8.0.00.0120.00817.22
7.4.330.0030.00315.00
7.4.320.0000.00716.80
7.4.300.0030.00316.91
7.4.290.0030.00317.02
7.4.280.0030.00316.77
7.4.270.0030.00316.96
7.4.260.0070.00016.95
7.4.250.0000.00716.79
7.4.240.0040.00316.93
7.4.230.0030.00316.99
7.4.220.0060.01016.94
7.4.210.0040.01217.01
7.4.200.0050.00317.10
7.4.190.0040.00417.06
7.4.160.0070.01116.98
7.4.150.0090.01017.40
7.4.140.0120.00517.86
7.4.130.0070.01217.04
7.4.120.0070.01216.95
7.4.110.0120.01217.06
7.4.100.0060.01217.04
7.4.90.0070.01516.82
7.4.80.0110.00819.39
7.4.70.0060.01316.92
7.4.60.0060.01016.84
7.4.50.0060.00316.86
7.4.40.0060.00622.77
7.4.30.0000.01716.73
7.4.00.0000.01215.00
7.3.330.0030.00313.53
7.3.320.0000.00513.54
7.3.310.0030.00316.74
7.3.300.0030.00316.54
7.3.290.0070.01016.63
7.3.280.0120.00816.61
7.3.270.0060.00917.40
7.3.260.0130.00416.85
7.3.250.0160.00116.75
7.3.240.0120.00616.85
7.3.230.0090.00916.90
7.3.210.0030.01416.93
7.3.200.0140.00319.39
7.3.190.0100.00617.00
7.3.180.0090.00616.60
7.3.170.0060.01516.94
7.3.160.0000.01616.69
7.3.120.0080.00515.14
7.2.330.0080.01017.22
7.2.320.0140.01017.16
7.2.310.0090.01517.07
7.2.300.0180.00316.83
7.2.290.0130.00317.13
7.2.60.0060.01017.25
7.2.00.0030.01319.41
7.1.200.0060.00615.87
7.1.100.0100.00718.50
7.1.70.0040.00717.33
7.1.60.0040.01119.82
7.1.50.0100.00735.03
7.1.00.0030.07722.68
7.0.200.0070.01017.09
7.0.140.0030.07322.22
7.0.60.0100.08320.08
7.0.50.0100.07318.04
7.0.40.0100.08020.45
7.0.30.0270.04720.23
7.0.20.0200.06020.24
7.0.10.0200.06320.30
7.0.00.0100.05020.21
5.6.280.0030.06721.30
5.6.210.0100.05720.70
5.6.200.0000.05018.33
5.6.190.0070.04020.61
5.6.180.4200.04320.82
5.6.170.0270.06720.73
5.6.160.0070.08320.62
5.6.150.0070.08018.27
5.6.140.0170.07018.33
5.6.130.0130.06318.39
5.6.120.0030.05721.17
5.6.110.0030.04321.19
5.6.100.0030.05021.18
5.6.90.0030.04021.19
5.6.80.0130.07320.66
5.6.70.0170.04320.64
5.5.350.0000.10020.51
5.5.340.0000.04018.19
5.5.330.0070.06720.28
5.5.320.0200.07720.43
5.5.310.0400.07020.55
5.5.300.0070.04018.13
5.5.290.0070.07318.11
5.5.280.0170.08021.05
5.5.270.0100.08321.00
5.5.260.0070.07720.89
5.5.250.0070.04720.73
5.5.240.0030.05720.38
5.4.450.0530.06319.68
5.4.440.0130.05019.31
5.4.430.0100.07019.66
5.4.420.0200.05019.77
5.4.410.0100.05719.37
5.4.400.0900.00018.69
5.4.390.0700.00018.87
5.4.380.0270.05318.65
5.4.370.0100.05318.81
5.4.360.0170.04718.86
5.4.350.0070.06318.93
5.4.340.0100.05718.77
5.4.320.0040.03812.71
5.4.310.0050.03812.70
5.4.300.0050.03612.71
5.4.290.0030.04112.70
5.4.280.0020.03912.60
5.4.270.0230.05719.29
5.4.260.0030.07718.79
5.4.250.0200.06718.98
5.4.240.0070.06319.20
5.4.230.0200.07019.01
5.4.220.0130.07319.08
5.4.210.0270.05318.98
5.4.200.0030.07719.23
5.4.190.0170.05318.98
5.4.180.0070.07719.01
5.4.170.0130.06718.99
5.4.160.0230.05319.04
5.4.150.0070.07318.78
5.4.140.0070.07316.73
5.4.130.0170.06316.35
5.4.120.0100.07316.39
5.4.110.0100.05016.68
5.4.100.0100.06016.42
5.4.90.0130.06316.45
5.4.80.0030.07016.66
5.4.70.0070.05716.41
5.4.60.0030.06316.23
5.4.50.0130.05316.34
5.4.40.0230.05716.60
5.4.30.0170.05016.58
5.4.20.0170.04716.52
5.4.10.0100.06316.60
5.4.00.0230.04315.78
5.3.290.0050.04012.80
5.3.280.0070.07314.46
5.3.270.0200.04714.62
5.3.260.0170.05014.61
5.3.250.0200.06014.62
5.3.240.0200.04714.52
5.3.230.0100.05314.30
5.3.220.0170.07314.34
5.3.210.0070.05714.48
5.3.200.0030.06314.59
5.3.190.0200.05014.45
5.3.180.0130.05714.66
5.3.170.0030.05314.57
5.3.160.0100.06314.45
5.3.150.0200.06014.26
5.3.140.0130.05014.26
5.3.130.0100.06014.25
5.3.120.0070.06714.56
5.3.110.0100.07014.64
5.3.100.0070.05313.92
5.3.90.0230.05313.79
5.3.80.0100.07014.04
5.3.70.0070.05013.96
5.3.60.0170.06313.94
5.3.50.0100.05313.97
5.3.40.0130.07013.90
5.3.30.0070.07013.75
5.3.20.0170.06313.71
5.3.10.0130.04313.35
5.3.00.0070.05313.42
5.2.170.0030.04711.30
5.2.160.0070.04010.90
5.2.150.0030.05711.15
5.2.140.0130.05310.90
5.2.130.0100.05711.11
5.2.120.0130.05311.10
5.2.110.0100.03711.11
5.2.100.0100.03711.11
5.2.90.0100.05011.19
5.2.80.0000.05710.97
5.2.70.0100.05311.02
5.2.60.0200.04011.07
5.2.50.0130.04710.95
5.2.40.0000.06011.01
5.2.30.0070.04710.89
5.2.20.0130.04310.87
5.2.10.0030.05710.94
5.2.00.0000.05310.79
5.1.60.0100.04310.03
5.1.50.0070.04310.23
5.1.40.0130.0379.94
5.1.30.0030.05010.27
5.1.20.0130.03310.43
5.1.10.0100.03710.10
5.1.00.0000.0409.94
5.0.50.0000.0438.47
5.0.40.0070.0378.41
5.0.30.0030.0608.07
5.0.20.0070.0338.39
5.0.10.0130.0278.00
5.0.00.0070.0538.21
4.4.90.0070.0205.80
4.4.80.0100.0205.77
4.4.70.0000.0275.74
4.4.60.0100.0235.79
4.4.50.0070.0275.78
4.4.40.0130.0335.77
4.4.30.0030.0275.84
4.4.20.0030.0275.91
4.4.10.0030.0305.82
4.4.00.0000.0435.80
4.3.110.0030.0305.64
4.3.100.0030.0305.70
4.3.90.0030.0205.67
4.3.80.0070.0405.70
4.3.70.0030.0205.70
4.3.60.0030.0205.69
4.3.50.0070.0205.68
4.3.40.0000.0475.77
4.3.30.0000.0235.52
4.3.20.0070.0205.52
4.3.10.0070.0235.52
4.3.00.0030.0306.54

preferences:
43.79 ms | 401 KiB | 5 Q