3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlData = "<?xml version='1.0'?> <methodResponse> <params> <param> <value><array><data> <value><struct> <member> <name>description</name> <value><string></string></value> </member> </struct></value> </data></array></value> </param> </params> </methodResponse>"; $plainParsed = simplexml_load_string($xmlData); $NoNewLineParsed = simplexml_load_string(str_replace(array("\n", "\r"), '', $xmlData)); $testArray = array($plainParsed, $NoNewLineParsed); foreach ($testArray as $test) { var_dump( $test->params->param->value->array->data->value->struct->member->value ); } //first pass (new lines not removed) returns array //second pass (new lines removed) returns element

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.4.130.0050.00618.85
8.4.120.0080.01124.47
8.4.110.0110.00319.00
8.4.100.0120.00917.72
8.4.90.0130.00817.96
8.4.80.0120.00819.09
8.4.70.0040.00717.94
8.4.60.0120.01018.96
8.4.50.0070.01122.54
8.4.40.0130.00320.75
8.4.30.0120.00920.74
8.4.20.0100.01020.81
8.4.10.0160.00319.51
8.3.260.0080.01216.55
8.3.250.0110.00319.31
8.3.240.0110.00717.46
8.3.230.0070.00116.70
8.3.220.0140.00417.29
8.3.210.0120.00716.81
8.3.200.0050.00316.78
8.3.190.0110.00517.21
8.3.180.0110.00816.46
8.3.170.0070.00317.33
8.3.160.0120.00916.63
8.3.150.0110.00719.24
8.3.140.0080.00816.77
8.3.130.0090.00016.65
8.3.120.0060.00318.95
8.3.110.0060.00317.05
8.3.100.0040.00416.89
8.3.90.0030.00626.77
8.3.80.0070.00319.36
8.3.70.0150.00018.55
8.3.60.0060.01018.80
8.3.50.0140.00317.91
8.3.40.0060.00918.79
8.3.30.0150.00018.84
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0050.00320.90
8.2.280.0070.00418.75
8.2.270.0100.01018.59
8.2.260.0040.01120.87
8.2.250.0080.00816.86
8.2.240.0000.00819.48
8.2.230.0100.00720.94
8.2.220.0090.00924.06
8.2.210.0070.00726.77
8.2.200.0070.00318.88
8.2.190.0040.01116.75
8.2.180.0150.00025.92
8.2.170.0120.00319.21
8.2.160.0140.00022.96
8.2.150.0000.00725.66
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0080.00020.60
8.2.110.0040.00722.41
8.2.100.0060.00618.09
8.2.90.0050.00318.09
8.2.80.0050.00317.97
8.2.70.0000.00917.75
8.2.60.0050.00317.90
8.2.50.0050.00318.07
8.2.40.0080.00020.09
8.2.30.0040.00418.18
8.2.20.0030.00518.41
8.2.10.0050.00219.54
8.2.00.0070.00019.63
8.1.330.0120.00722.19
8.1.320.0080.01216.16
8.1.310.0060.00917.15
8.1.300.0070.00317.84
8.1.290.0060.00330.84
8.1.280.0110.00725.92
8.1.270.0040.00424.16
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0100.00019.21
8.1.230.0090.00322.75
8.1.220.0000.00817.79
8.1.210.0060.00318.84
8.1.200.0060.00317.50
8.1.190.0040.00417.47
8.1.180.0030.00618.10
8.1.170.0030.00518.66
8.1.160.0000.00819.13
8.1.150.0070.00019.11
8.1.140.0000.00819.07
8.1.130.0000.00719.34
8.1.120.0030.00517.58
8.1.110.0030.00617.56
8.1.100.0000.00817.69
8.1.90.0040.00417.70
8.1.80.0030.00717.67
8.1.70.0050.00217.62
8.1.60.0040.00417.80
8.1.50.0060.00317.70
8.1.40.0030.00917.78
8.1.30.0000.00817.84
8.1.20.0050.00317.81
8.1.10.0040.00417.64
8.1.00.0080.00017.50
8.0.300.0000.00720.29
8.0.290.0040.00416.88
8.0.280.0030.00318.62
8.0.270.0080.00018.18
8.0.260.0000.00916.95
8.0.250.0030.00317.19
8.0.240.0020.00517.20
8.0.230.0000.00717.17
8.0.220.0040.00417.00
8.0.210.0000.00717.12
8.0.200.0040.00417.08
8.0.190.0000.00717.16
8.0.180.0000.00717.05
8.0.170.0030.00617.16
8.0.160.0040.00417.04
8.0.150.0000.00717.04
8.0.140.0000.00817.12
8.0.130.0000.00613.50
8.0.120.0060.00317.07
8.0.110.0040.00417.06
8.0.100.0040.00417.16
8.0.90.0000.00716.91
8.0.80.0070.01117.07
8.0.70.0100.00817.06
8.0.60.0080.00917.10
8.0.50.0070.00717.02
8.0.30.0100.00817.00
8.0.20.0120.00717.11
8.0.10.0060.01317.20
8.0.00.0130.00617.26
7.4.330.0020.00215.55
7.4.320.0000.00616.74
7.4.300.0030.00316.68
7.4.290.0030.00316.54
7.4.280.0050.00516.83
7.4.270.0000.00616.64
7.4.260.0030.00313.52
7.4.250.0000.00816.75
7.4.240.0080.00016.65
7.4.230.0000.00816.84
7.4.220.0030.00316.70
7.4.210.0050.01016.72
7.4.200.0120.00716.79
7.4.190.0090.01016.89
7.4.180.0090.00816.93
7.4.160.0110.00416.72
7.4.150.0100.00816.68
7.4.140.0120.00416.76
7.4.130.0090.00716.64
7.4.120.0090.00816.57
7.4.110.0110.00816.66
7.4.100.0080.00916.75
7.4.90.0080.00816.71
7.4.80.0100.00516.74
7.4.70.0160.00716.52
7.4.60.0060.01016.60
7.4.50.0060.01016.54
7.4.40.0040.01516.61
7.4.30.0150.00716.70
7.4.20.0100.01116.67
7.4.10.0110.00716.57
7.4.00.0120.00716.76
7.3.330.0030.00616.53
7.3.320.0000.00513.27
7.3.310.0000.00716.42
7.3.300.0000.00616.43
7.3.290.0060.01116.49
7.3.280.0040.01116.50
7.3.270.0060.00916.41
7.3.260.0070.01116.49
7.3.250.0070.00916.48
7.3.240.0080.00616.51
7.3.230.0080.00716.49
7.3.220.0020.01616.43
7.3.210.0070.00916.37
7.3.200.0070.01116.37
7.3.190.0060.01016.40
7.3.180.0110.00316.47
7.3.170.0040.01116.34
7.3.160.0080.00616.38
7.3.150.0100.00516.44
7.3.140.0040.01216.43
7.3.130.0080.00716.38
7.3.120.0070.00716.39
7.3.110.0070.00816.29
7.3.100.0080.00716.34
7.3.90.0040.01116.68
7.3.80.0090.00816.45
7.3.70.0070.00816.54
7.3.60.0100.00716.56
7.3.50.0050.01216.60
7.3.40.0060.00916.62
7.3.30.0030.01316.54
7.3.20.0090.00816.60
7.3.10.0090.00916.60
7.3.00.0110.00716.57
7.2.340.0140.00716.61
7.2.330.0180.00816.60
7.2.320.0120.01216.62
7.2.310.0070.01316.58
7.2.300.0240.00316.57
7.2.290.0180.00916.57
7.2.280.0090.01716.57
7.2.270.0100.01216.61
7.2.260.0140.00716.52
7.2.250.0160.00816.53
7.2.240.0110.01716.67
7.2.230.0100.00816.60
7.2.220.0190.00316.66
7.2.210.0100.00816.60
7.2.200.0150.00516.77
7.2.190.0140.01416.57
7.2.180.0030.01216.73
7.2.170.0090.00616.76
7.2.160.0090.01416.76
7.2.150.0180.01116.78
7.2.140.0230.00316.88
7.2.130.0110.01517.00
7.2.120.0190.00416.89
7.2.110.0160.00716.95
7.2.100.0170.01016.88
7.2.90.0140.00716.73
7.2.80.0240.00616.79
7.2.70.0090.00616.86
7.2.60.0530.00316.75
7.2.50.0160.00516.80
7.2.40.0150.00616.77
7.2.30.0120.00816.81
7.2.20.0150.00316.76
7.2.10.0060.01216.48
7.2.00.0110.01216.88
7.1.330.0150.00915.71
7.1.320.0100.01515.74
7.1.310.0070.01015.50
7.1.300.0080.00815.56
7.1.290.0260.00015.50
7.1.280.0160.00315.46
7.1.270.0260.00015.53
7.1.260.0160.00415.73
7.1.250.0170.00515.36
7.1.240.0110.00315.67
7.1.230.0120.00815.40
7.1.220.0110.00515.71
7.1.210.0210.00315.74
7.1.200.0100.01315.58
7.1.190.0160.01015.41
7.1.180.0100.01015.21
7.1.170.0080.00815.31
7.1.160.0130.00415.21
7.1.150.0110.00615.61
7.1.140.0160.00515.71
7.1.130.0110.00615.46
7.1.120.0120.00815.57
7.1.110.0090.01415.27
7.1.100.0060.01215.46
7.1.90.0120.00815.53
7.1.80.0150.00715.72
7.1.70.0280.00015.50
7.1.60.0170.00815.72
7.1.50.0120.00615.62
7.1.40.0060.01615.69
7.1.30.0140.01115.30
7.1.20.0070.01115.65
7.1.10.0060.00915.68
7.1.00.0160.00615.38
7.0.330.0080.01515.30
7.0.320.0080.01115.39
7.0.310.0160.01215.23
7.0.300.0090.00915.24
7.0.290.0150.00715.21
7.0.280.0260.00015.37
7.0.270.0140.00315.38
7.0.260.0190.00415.25
7.0.250.0090.00915.52
7.0.240.0190.00315.30
7.0.230.0050.01315.43
7.0.220.0090.00615.50
7.0.210.0170.00415.46
7.0.200.0170.01015.31
7.0.190.0060.01315.52
7.0.180.0150.00515.49
7.0.170.0110.01115.50
7.0.160.0070.01115.47
7.0.150.0090.00715.38
7.0.140.0170.00515.48
7.0.130.0120.01215.52
7.0.120.0100.01015.40
7.0.110.0140.00415.39
7.0.100.0200.00015.32
7.0.90.0040.01215.21
7.0.80.0110.01115.30
7.0.70.0130.01015.41
7.0.60.0070.01715.38
7.0.50.0060.01515.23
7.0.40.0720.00615.41
7.0.30.0070.01115.34
7.0.20.0100.01215.33
7.0.10.0120.00815.41
7.0.00.0090.01215.34
5.6.400.0070.00815.88
5.6.390.0100.01315.91
5.6.380.0100.00716.02
5.6.370.0060.01015.81
5.6.360.0080.01115.84
5.6.350.0170.00815.80
5.6.340.0170.00015.90
5.6.330.0110.00815.88
5.6.320.0060.00916.04
5.6.310.0170.00415.90
5.6.300.0050.01515.82
5.6.290.0110.00915.78
5.6.280.0150.00915.91
5.6.270.0140.00915.96
5.6.260.0120.00416.01
5.6.250.0140.01316.02
5.6.240.0150.01516.02
5.6.230.0070.01516.08
5.6.220.0100.01016.01
5.6.210.0220.01016.12
5.6.200.0090.01416.06
5.6.190.0140.00516.12
5.6.180.0130.00816.02
5.6.170.0060.01416.07
5.6.160.0090.00916.20
5.6.150.0130.00916.11
5.6.140.0160.00416.07
5.6.130.0190.00716.09
5.6.120.0130.01016.06
5.6.110.0160.00516.02
5.6.100.0090.00915.96
5.6.90.0120.00816.07
5.6.80.0170.00415.96
5.6.70.0130.00416.11
5.6.60.0100.00516.05
5.6.50.0120.00915.95
5.6.40.0110.01116.01
5.6.30.0240.00615.94
5.6.20.0300.00015.76
5.6.10.0150.01215.95
5.6.00.0080.01415.88
5.5.380.0240.00016.07
5.5.370.0130.00816.16
5.5.360.0160.00815.95
5.5.350.0120.02015.89
5.5.340.0180.00915.93
5.5.330.0120.00916.01
5.5.320.0120.00815.75
5.5.310.0110.00715.94
5.5.300.0100.00715.87
5.5.290.0180.00415.81
5.5.280.0090.01015.96
5.5.270.0130.00915.80
5.5.260.0140.01415.91
5.5.250.0060.01716.10
5.5.240.0220.00816.00
5.5.230.0210.00915.85
5.5.220.0250.00015.70
5.5.210.0050.01816.02
5.5.200.0100.01015.77
5.5.190.0040.01915.95
5.5.180.0170.00815.96
5.5.170.0090.00915.81
5.5.160.0130.01215.77
5.5.150.0150.00315.80
5.5.140.0070.01615.45
5.5.130.0150.00615.59
5.5.120.0080.01315.72
5.5.110.0060.00915.58
5.5.100.0060.01815.98
5.5.90.0160.00015.91
5.5.80.0070.01515.94
5.5.70.0120.00815.80
5.5.60.0120.00515.84
5.5.50.0120.01215.77
5.5.40.0110.01115.89
5.5.30.0110.00815.97
5.5.20.0140.00515.84
5.5.10.0080.01215.87
5.5.00.0150.01015.82
5.4.450.0180.00012.75
5.4.440.0110.00712.78
5.4.430.0120.00612.77
5.4.420.0090.00912.78
5.4.410.0120.00912.75
5.4.400.0180.00312.82
5.4.390.0200.00012.82
5.4.380.0210.00012.59
5.4.370.0220.00012.68
5.4.360.0150.00412.70
5.4.350.0140.00512.73
5.4.340.0170.00612.76
5.4.330.0080.01112.82
5.4.320.0160.00912.79
5.4.310.0090.01312.75
5.4.300.0140.01112.81
5.4.290.0220.00312.74
5.4.280.0120.00812.73
5.4.270.0150.00412.70
5.4.260.0100.01012.69
5.4.250.0140.00412.81
5.4.240.0100.01112.63
5.4.230.0140.00412.51
5.4.220.0030.01312.49
5.4.210.0080.01312.43
5.4.200.0100.00712.45
5.4.190.0110.00612.54
5.4.180.0180.00012.53
5.4.170.0160.00312.56
5.4.160.0160.00012.57
5.4.150.0050.01112.57
5.4.140.0100.00612.68
5.4.130.0140.00312.75
5.4.120.0110.00612.76
5.4.110.0170.00012.84
5.4.100.0120.00612.81
5.4.90.0090.00912.80
5.4.80.0100.00712.90
5.4.70.0070.01112.86
5.4.60.0130.00412.89
5.4.50.0110.00612.71
5.4.40.0130.00712.73
5.4.30.0170.00712.78
5.4.20.0090.01312.84
5.4.10.0070.01012.80
5.4.00.0110.00912.55
5.3.290.0100.00713.50
5.3.280.0090.00813.26
5.3.270.0120.00513.22
5.3.260.0200.00313.43
5.3.250.0090.00913.26
5.3.240.0080.00813.20
5.3.230.0070.01013.22
5.3.220.0090.00913.04
5.3.210.0070.01013.14
5.3.200.0100.00713.14
5.3.190.0080.01113.32
5.3.180.0120.00513.16
5.3.170.0140.00713.28
5.3.160.0090.01313.45
5.3.150.0080.01113.33
5.3.140.0070.01513.12
5.3.130.0210.00613.19
5.3.120.0160.00513.20
5.3.110.0130.00713.03
5.3.100.0090.01213.29
5.3.90.0120.01213.43
5.3.80.0170.00713.12
5.3.70.0150.00712.97
5.3.60.0110.01113.31
5.3.50.0160.00813.11
5.3.40.0170.00712.91
5.3.30.0130.01013.18
5.3.20.0150.00613.11
5.3.10.0180.00612.96
5.3.00.0070.01712.95
5.2.170.0040.01312.26
5.2.160.0120.01212.23
5.2.150.0110.00712.29
5.2.140.0130.00812.06
5.2.130.0160.00012.06
5.2.120.0050.01112.27
5.2.110.0100.00712.18
5.2.100.0070.01012.19
5.2.90.0080.00812.20
5.2.80.0080.00812.05
5.2.70.0040.01112.05
5.2.60.0140.00011.90
5.2.50.0100.00512.13
5.2.40.0070.00812.09
5.2.30.0080.00811.89
5.2.20.0150.00412.11
5.2.10.0160.00511.88
5.2.00.0040.01311.91
5.1.60.0150.00311.16
5.1.50.0130.00311.45
5.1.40.0130.00411.39
5.1.30.0100.00311.45
5.1.20.0060.00711.43
5.1.10.0100.00711.20
5.1.00.0060.00710.77
5.0.50.0100.00710.52
5.0.40.0100.00510.52
5.0.30.0120.00510.52
5.0.20.0070.01010.52
5.0.10.0080.00810.52
5.0.00.0050.01110.52
4.4.90.0040.00710.52
4.4.80.0000.00810.52
4.4.70.0030.00710.52
4.4.60.0050.00510.52
4.4.50.0060.00310.52
4.4.40.0050.00310.52
4.4.30.0050.00210.52
4.4.20.0030.00310.52
4.4.10.0070.00010.52
4.4.00.0070.00010.52
4.3.110.0100.00010.52
4.3.100.0000.00910.52
4.3.90.0100.00010.52
4.3.80.0050.00510.52
4.3.70.0070.00010.52
4.3.60.0050.00210.52
4.3.50.0050.00510.52
4.3.40.0050.00210.52
4.3.30.0040.00410.52
4.3.20.0030.00310.52
4.3.10.0030.00310.52
4.3.00.0080.00010.52

preferences:
46.81 ms | 403 KiB | 5 Q