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[2]["value"]; */ $a = 0; for($i=0; $i < 3; $i++){ $a = "1"; } echo $a;

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.0130.00616.59
8.3.50.0140.00717.95
8.3.40.0040.01218.47
8.3.30.0150.00619.04
8.3.20.0110.00720.30
8.3.10.0150.00321.81
8.3.00.0060.00319.25
8.2.180.0060.01218.54
8.2.170.0110.00418.72
8.2.160.0070.00722.96
8.2.150.0080.00024.18
8.2.140.0120.00624.66
8.2.130.0100.00726.16
8.2.120.0000.00819.48
8.2.110.0030.00620.45
8.2.100.0040.00819.36
8.2.90.0040.00419.26
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0040.00418.04
8.2.50.0030.00518.07
8.2.40.0040.00419.88
8.2.30.0000.00817.98
8.2.20.0070.00017.75
8.2.10.0030.00618.11
8.2.00.0040.00417.57
8.1.280.0100.01025.92
8.1.270.0030.00620.43
8.1.260.0100.00326.35
8.1.250.0110.00828.09
8.1.240.0090.00023.91
8.1.230.0060.00617.66
8.1.220.0050.00317.79
8.1.210.0050.00318.77
8.1.200.0040.00417.23
8.1.190.0050.00317.22
8.1.180.0080.00018.10
8.1.170.0040.00420.43
8.1.160.0030.00521.83
8.1.150.0040.00418.79
8.1.140.0000.00717.32
8.1.130.0030.00317.74
8.1.120.0030.00317.41
8.1.110.0040.00417.30
8.1.100.0080.00017.27
8.1.90.0040.00417.43
8.1.80.0070.00017.33
8.1.70.0030.00617.28
8.1.60.0040.00417.41
8.1.50.0000.00817.34
8.1.40.0040.00417.49
8.1.30.0000.00817.62
8.1.20.0050.00217.57
8.1.10.0100.00017.39
8.1.00.0000.00817.34
8.0.300.0020.00518.77
8.0.290.0000.00716.75
8.0.280.0030.00318.56
8.0.270.0070.00017.27
8.0.260.0060.00017.20
8.0.250.0060.00016.84
8.0.240.0040.00416.95
8.0.230.0030.00316.90
8.0.220.0000.00716.83
8.0.210.0000.00716.82
8.0.200.0030.00316.77
8.0.190.0070.00016.77
8.0.180.0040.00416.76
8.0.170.0000.00816.86
8.0.160.0030.00316.84
8.0.150.0000.00716.75
8.0.140.0040.00416.69
8.0.130.0050.00313.32
8.0.120.0040.00416.84
8.0.110.0070.00016.74
8.0.100.0040.00416.82
8.0.90.0030.00516.73
8.0.80.0120.00916.80
8.0.70.0050.00216.73
8.0.60.0000.00816.72
8.0.50.0040.00416.71
8.0.30.0090.01117.09
8.0.20.0090.00817.40
8.0.10.0030.00516.93
8.0.00.0110.01016.65
7.4.330.0000.00515.08
7.4.320.0000.00716.43
7.4.300.0000.00616.42
7.4.290.0000.00816.46
7.4.280.0000.00716.58
7.4.270.0000.00816.49
7.4.260.0030.00316.43
7.4.250.0040.00416.39
7.4.240.0020.00516.37
7.4.230.0070.00016.44
7.4.220.0030.01416.60
7.4.210.0030.01216.47
7.4.200.0030.00316.35
7.4.160.0140.00716.32
7.4.150.0130.00517.40
7.4.140.0110.01017.86
7.4.130.0060.01116.37
7.4.120.0070.01016.34
7.4.110.0130.01016.45
7.4.100.0090.00916.30
7.4.90.0070.01016.32
7.4.80.0150.00319.39
7.4.70.0100.00716.42
7.4.60.0130.00716.36
7.4.50.0000.00416.44
7.4.40.0050.01116.33
7.4.30.0120.00916.43
7.4.00.0130.00015.03
7.3.330.0000.00513.04
7.3.320.0000.01213.16
7.3.310.0000.00716.35
7.3.300.0030.00316.25
7.3.290.0000.00616.25
7.3.280.0040.01316.27
7.3.270.0090.01717.40
7.3.260.0040.01216.49
7.3.250.0030.01416.23
7.3.240.0070.01316.30
7.3.230.0190.00616.58
7.3.210.0090.00916.22
7.3.200.0130.00719.39
7.3.190.0100.01216.21
7.3.180.0110.00516.24
7.3.170.0150.00616.46
7.3.160.0110.00516.38
7.2.330.0120.01116.73
7.2.320.0160.00016.50
7.2.310.0060.01616.65
7.2.300.0130.00316.69
7.2.290.0110.00716.44
7.2.00.0030.01019.26
7.1.100.0140.00717.70
7.1.70.0050.00516.79
7.1.60.0130.00019.50
7.1.50.0220.01834.72
7.1.00.0000.08022.48
7.0.200.0050.00514.89
7.0.140.0000.07022.12
7.0.60.0070.08319.91
7.0.50.0030.04717.79
7.0.40.0070.08720.42
7.0.30.0300.04020.04
7.0.20.0300.03720.27
7.0.10.0270.07720.09
7.0.00.0070.07719.99
5.6.280.0070.07021.10
5.6.210.0100.06320.74
5.6.200.0030.05018.15
5.6.190.0100.05720.39
5.6.180.0230.06720.56
5.6.170.0500.06320.71
5.6.160.0100.07020.41
5.6.150.0070.08018.11
5.6.140.0030.03718.22
5.6.130.0130.08318.12
5.6.120.0100.08020.97
5.6.110.0030.06721.13
5.6.100.0030.07020.88
5.6.90.0100.08721.01
5.6.80.0000.05320.43
5.6.70.0370.06720.27
5.5.350.0230.06320.41
5.5.340.0070.07717.91
5.5.330.0130.07020.43
5.5.320.0030.05020.43
5.5.310.0370.07020.21
5.5.300.0100.03718.00
5.5.290.0070.08318.00
5.5.280.0200.04720.66
5.5.270.0070.03720.96
5.5.260.0200.07320.79
5.5.250.0030.07720.48
5.5.240.0070.04020.27
5.4.450.0670.05719.43
5.4.440.1030.06019.63
5.4.430.0870.04719.48
5.4.420.0670.05319.24
5.4.410.0130.05318.91
5.4.400.0400.05318.77
5.4.390.0600.04718.68
5.4.380.0600.05718.79
5.4.370.0630.04318.43
5.4.360.0530.05718.74
5.4.350.0530.05318.52
5.4.340.0470.07018.74
5.4.320.0530.07718.71
5.4.310.0600.06018.59
5.4.300.0330.06318.56
5.4.290.0600.06318.66
5.4.280.0500.06318.68
5.4.270.0530.06018.74
5.4.260.0370.05318.78
5.4.250.0500.07718.50
5.4.240.0470.05318.62
5.4.230.0400.06718.55
5.4.220.0370.05318.45
5.4.210.0370.07718.57
5.4.200.0370.07316.43
5.4.190.0430.06318.70
5.4.180.0500.05018.63
5.4.170.0370.05018.67
5.4.160.0270.05718.62
5.4.150.0430.07018.61
5.4.140.0470.06716.17
5.4.130.0430.05016.04
5.4.120.0600.06316.17
5.4.110.0370.06016.29
5.4.100.0570.06316.25
5.4.90.0470.06016.17
5.4.80.0430.06716.33
5.4.70.0400.05016.29
5.4.60.0530.04716.20
5.4.50.0370.07016.23
5.4.40.0470.07316.23
5.4.30.0430.06016.28
5.4.20.0470.03716.10
5.4.10.0530.04016.27
5.4.00.0530.05315.73
5.3.290.0470.05314.61
5.3.280.0330.05714.57
5.3.270.0200.08314.49
5.3.260.0470.06714.60
5.3.250.0470.07014.50
5.3.240.0630.06014.62
5.3.230.0470.06014.51
5.3.220.0270.06714.56
5.3.210.0430.08014.59
5.3.200.0600.05714.59
5.3.190.0430.06314.59
5.3.180.0370.06014.59
5.3.170.0470.05314.47
5.3.160.0570.04314.55
5.3.150.0400.07014.59
5.3.140.0530.05314.52
5.3.130.0400.05314.46
5.3.120.0300.06314.45
5.3.110.0270.07714.61
5.3.100.0430.07013.95
5.3.90.0630.06314.05
5.3.80.0400.07013.99
5.3.70.0500.05713.95
5.3.60.0470.05713.95
5.3.50.0300.06013.93
5.3.40.0570.06013.92
5.3.30.0300.07014.00
5.3.20.0430.06313.67
5.3.10.0570.05313.59
5.3.00.0470.04013.73
5.2.170.0300.04311.29
5.2.160.0300.04711.13
5.2.150.0300.05711.12
5.2.140.0270.05011.04
5.2.130.0370.04011.01
5.2.120.0370.06011.14
5.2.110.0300.05011.04
5.2.100.0300.04311.27
5.2.90.0230.05711.12
5.2.80.0300.04311.15
5.2.70.0330.04311.08
5.2.60.0470.04011.08
5.2.50.0330.05310.96
5.2.40.0100.05010.95
5.2.30.0170.05010.97
5.2.20.0200.04011.07
5.2.10.0200.04710.81
5.2.00.0330.05010.77
5.1.60.0400.03010.11
5.1.50.0330.03010.11
5.1.40.0200.0379.93
5.1.30.0370.03710.34
5.1.20.0370.03310.41
5.1.10.0270.03710.11
5.1.00.0330.04010.04
5.0.50.0170.0378.59
5.0.40.0100.0308.42
5.0.30.0200.0408.23
5.0.20.0200.0408.21
5.0.10.0200.0308.24
5.0.00.0200.0478.36
4.4.90.0200.0136.30
4.4.80.0130.0206.30
4.4.70.0230.0176.30
4.4.60.0170.0236.30
4.4.50.0170.0176.30
4.4.40.0200.0376.30
4.4.30.0070.0306.30
4.4.20.0200.0236.30
4.4.10.0130.0306.30
4.4.00.0130.0376.30
4.3.110.0230.0206.30
4.3.100.0070.0276.30
4.3.90.0130.0206.30
4.3.80.0200.0336.30
4.3.70.0100.0236.30
4.3.60.0230.0236.30
4.3.50.0170.0206.30
4.3.40.0130.0406.30
4.3.30.0000.0276.30
4.3.20.0030.0236.30
4.3.10.0130.0236.30
4.3.00.0030.0206.74

preferences:
50.74 ms | 400 KiB | 5 Q