3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* $xml_string = "<?xml version=\"1.0\" encoding=\"UTF-8\"?> <methodResponse><params><param><value><struct><member><name>Result</name><value><array><data><value><array><data><value><string>29</string></value></data></array></value></data></array></value></member></struct></value></param></params></methodResponse>"; $parser = xml_parser_create(); xml_parse_into_struct($parser , $xml_string, $array_result, $index); ob_start(); var_dump($array_result); $result = ob_get_clean(); echo $array_result[14]["value"]; */ $simple = "<root><returnCode>0000</returnCode><description></description></root>"; $p = xml_parser_create(); xml_parse_into_struct($p, $simple, $vals, $index); xml_parser_free($p); print_r($vals); echo $vals[1]["returnCode"];

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.0030.01018.80
8.3.50.0140.00718.17
8.3.40.0120.00619.10
8.3.30.0070.00719.13
8.3.20.0070.00020.38
8.3.10.0040.00422.02
8.3.00.0080.00019.39
8.2.180.0070.00718.79
8.2.170.0180.00419.34
8.2.160.0130.00322.96
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0090.00026.16
8.2.120.0040.00419.61
8.2.110.0080.00419.16
8.2.100.0000.01217.88
8.2.90.0040.00419.41
8.2.80.0050.00318.00
8.2.70.0040.00417.88
8.2.60.0050.00318.05
8.2.50.0050.00318.07
8.2.40.0050.00320.14
8.2.30.0000.00718.32
8.2.20.0050.00317.92
8.2.10.0040.00418.17
8.2.00.0040.00417.89
8.1.280.0140.00425.92
8.1.270.0030.00620.58
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.30
8.1.230.0070.00417.91
8.1.220.0050.00317.91
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0040.00417.38
8.1.180.0000.00818.10
8.1.170.0050.00520.54
8.1.160.0040.00422.10
8.1.150.0000.00718.87
8.1.140.0040.00417.53
8.1.130.0000.00718.01
8.1.120.0100.00017.45
8.1.110.0000.00717.63
8.1.100.0000.00717.49
8.1.90.0000.00717.58
8.1.80.0040.00417.55
8.1.70.0000.00717.53
8.1.60.0040.00417.70
8.1.50.0060.00317.61
8.1.40.0060.00317.57
8.1.30.0060.00317.84
8.1.20.0040.00417.56
8.1.10.0040.00717.62
8.1.00.0030.00617.51
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0040.00418.61
8.0.270.0000.00717.41
8.0.260.0030.00318.55
8.0.250.0080.00017.05
8.0.240.0000.00717.14
8.0.230.0030.00317.19
8.0.220.0030.00317.07
8.0.210.0000.00717.04
8.0.200.0000.00617.12
8.0.190.0000.00817.14
8.0.180.0070.00017.02
8.0.170.0050.00217.19
8.0.160.0000.00717.08
8.0.150.0000.00717.14
8.0.140.0050.00216.99
8.0.130.0000.00813.51
8.0.120.0050.00317.05
8.0.110.0000.00716.92
8.0.100.0070.00017.03
8.0.90.0000.00717.14
8.0.80.0070.01517.05
8.0.70.0000.00717.11
8.0.60.0000.00817.04
8.0.50.0030.00517.11
8.0.30.0120.00917.19
8.0.20.0120.00917.40
8.0.10.0050.00217.10
8.0.00.0080.00917.01
7.4.330.0030.00315.03
7.4.320.0000.00616.60
7.4.300.0030.00316.73
7.4.290.0030.00316.74
7.4.280.0040.00416.55
7.4.270.0000.00716.66
7.4.260.0050.00316.68
7.4.250.0040.00416.75
7.4.240.0020.00516.63
7.4.230.0030.00316.64
7.4.220.0040.01816.74
7.4.210.0060.00916.72
7.4.200.0040.00316.86
7.4.160.0120.00616.59
7.4.150.0140.01117.40
7.4.140.0130.01017.86
7.4.130.0130.00816.66
7.4.120.0080.01016.88
7.4.110.0150.00616.68
7.4.100.0130.01016.61
7.4.90.0080.01216.58
7.4.80.0100.00719.39
7.4.70.0060.01316.50
7.4.60.0150.00916.76
7.4.50.0000.00716.74
7.4.40.0120.01016.72
7.4.30.0030.02016.76
7.4.00.0000.01315.38
7.3.330.0030.00313.12
7.3.320.0040.00913.40
7.3.310.0030.00316.24
7.3.300.0070.00016.46
7.3.290.0040.00416.45
7.3.280.0120.00516.49
7.3.270.0150.00817.40
7.3.260.0120.01216.50
7.3.250.0150.00516.47
7.3.240.0110.00516.59
7.3.230.0110.01116.69
7.3.210.0060.00916.51
7.3.200.0060.01019.39
7.3.190.0090.00616.63
7.3.180.0100.00616.50
7.3.170.0120.00616.72
7.3.160.0130.00316.80
7.3.10.0090.00616.88
7.3.00.0060.01116.69
7.2.330.0140.00316.82
7.2.320.0100.00716.80
7.2.310.0090.00916.53
7.2.300.0070.01116.61
7.2.290.0140.00616.71
7.2.130.0030.00717.13
7.2.120.0030.00916.98
7.2.110.0030.01317.03
7.2.100.0070.00316.89
7.2.90.0030.01117.00
7.2.80.0000.01616.74
7.2.70.0060.01016.56
7.2.60.0060.00316.84
7.2.50.0040.01116.80
7.2.40.0040.00717.11
7.2.30.0060.01217.31
7.2.20.0060.00917.07
7.2.10.0000.01217.02
7.2.00.0100.00518.04
7.1.250.0030.01415.95
7.1.100.0040.01117.87
7.1.70.0050.00517.10
7.1.60.0140.01019.50
7.1.50.0080.01117.13
7.1.00.0030.07722.56
7.0.200.0060.00614.94
7.0.140.0000.06322.25
7.0.60.0030.04019.89
7.0.50.0000.04718.06
7.0.40.0100.04020.21
7.0.30.0530.05020.28
7.0.20.0130.04720.32
7.0.10.0130.08020.21
7.0.00.0170.07720.30
5.6.280.0070.06721.13
5.6.210.0030.07720.91
5.6.200.0130.05718.23
5.6.190.0130.07720.63
5.6.180.3730.04720.48
5.6.170.0370.06020.66
5.6.160.0030.08720.59
5.6.150.0170.07018.27
5.6.140.0130.07318.18
5.6.130.0030.07018.30
5.6.120.0100.05721.13
5.6.110.0070.05321.19
5.6.100.0130.06021.09
5.6.90.0070.04021.17
5.6.80.0100.04320.40
5.5.350.0030.08020.34
5.5.340.0030.08718.05
5.5.330.0130.07020.38
5.5.320.0230.04020.39
5.5.310.0170.04320.31
5.5.300.0030.08718.15
5.5.290.0030.07018.15
5.5.280.0130.06720.76
5.5.270.0030.08320.87
5.5.260.0130.08320.91
5.5.250.0070.06720.73
5.5.240.4030.03720.16
5.4.450.0430.06319.71
5.4.440.0270.05019.68
5.4.430.0300.07319.70
5.4.420.0270.06019.64
5.4.410.0330.03719.39
5.4.400.0230.03719.08
5.4.390.0370.07019.07
5.4.380.0300.07319.13
5.4.370.0300.07719.12
5.4.360.0330.07019.20
5.4.350.0430.05019.05
5.4.340.0330.04019.04
5.4.320.0230.06019.27
5.4.310.0270.06719.16
5.4.300.0400.04719.16
5.4.290.0230.05319.06
5.4.280.0270.06019.15
5.4.270.0300.06719.38
5.4.260.0230.04019.38
5.4.250.0400.07019.30
5.4.240.0430.05719.29
5.4.230.0200.04019.21
5.4.220.0330.06719.04
5.4.210.0330.06019.14
5.4.200.0270.03719.31
5.4.190.0230.04719.14
5.4.180.0230.04319.04
5.4.170.0270.07319.31
5.4.160.0270.04019.03
5.4.150.0300.07319.14
5.4.140.0300.03016.55
5.4.130.0230.04316.48
5.4.120.0270.05016.52
5.4.110.0230.03716.39
5.4.100.0330.06316.49
5.4.90.0300.06316.37
5.4.80.0300.06016.55
5.4.70.0300.06316.56
5.4.60.0300.06716.66
5.4.50.0470.05316.61
5.4.40.0330.05716.59
5.4.30.0330.06316.49
5.4.20.0230.04316.58
5.4.10.0300.07316.61
5.4.00.0230.04716.02
5.3.290.0370.06714.70
5.3.280.0270.05014.68
5.3.270.0330.04014.91
5.3.260.0300.06714.70
5.3.250.0370.06314.76
5.3.240.0400.06014.66
5.3.230.0330.07314.64
5.3.220.0230.04714.72
5.3.210.0270.05314.61
5.3.200.0370.06314.60
5.3.190.0270.04714.62
5.3.180.0300.03714.66
5.3.170.0270.05014.60
5.3.160.0300.06714.71
5.3.150.0230.06014.72
5.3.140.0330.04314.71
5.3.130.0230.06314.59
5.3.120.0300.07014.59
5.3.110.0270.07314.61
5.3.100.0270.04714.07
5.3.90.0300.04314.21
5.3.80.0330.06314.20
5.3.70.0200.05313.99
5.3.60.0230.07314.05
5.3.50.0430.05313.98
5.3.40.0370.03713.91
5.3.30.0300.05014.00
5.3.20.0200.04313.74
5.3.10.0230.04313.94
5.3.00.0170.04013.68
5.2.170.0270.05711.21
5.2.160.0230.06311.34
5.2.150.0230.04311.19
5.2.140.0200.03711.32
5.2.130.0270.05711.41
5.2.120.0200.03711.18
5.2.110.0230.02711.33
5.2.100.0230.05011.33
5.2.90.0270.03011.19
5.2.80.0230.03011.09
5.2.70.0270.03011.29
5.2.60.0200.04311.27
5.2.50.0200.03011.05
5.2.40.0200.02311.28
5.2.30.0200.02311.17
5.2.20.0170.04311.19
5.2.10.0230.04311.08
5.2.00.0200.04710.89
5.1.60.0230.04710.46
5.1.50.0170.03710.46
5.1.40.0270.04310.46
5.1.30.0200.04010.46
5.1.20.0230.05310.59
5.1.10.0200.03710.46
5.1.00.0200.03010.46
5.0.50.0130.03310.46
5.0.40.0070.02010.46
5.0.30.0070.06710.46
5.0.20.0130.02010.46
5.0.10.0100.03310.46
5.0.00.0100.06010.46
4.4.90.0130.01710.46
4.4.80.0100.02310.46
4.4.70.0100.01310.46
4.4.60.0130.02710.46
4.4.50.0070.01710.46
4.4.40.0170.04710.46
4.4.30.0130.03710.46
4.4.20.0100.03710.46
4.4.10.0070.02310.46
4.4.00.0100.05310.46
4.3.110.0130.03310.46
4.3.100.0070.01710.46
4.3.90.0070.01710.46
4.3.80.0100.02310.46
4.3.70.0100.01310.46
4.3.60.0130.03310.46
4.3.50.0130.01710.46
4.3.40.0070.05010.46
4.3.30.0070.02310.46
4.3.20.0030.02310.46
4.3.10.0070.03710.46
4.3.00.0030.03710.46

preferences:
36.59 ms | 400 KiB | 5 Q