3v4l.org

run code in 300+ PHP versions simultaneously
<?php $response = '<?xml version="1.0" encoding="utf-8"?> <PostResponse><Status>success</Status><Price>10.00</Price><Message>Test successful.</Message><ConfirmationId>6</ConfirmationId></PostResponse>'; $xmlResponse = new SimpleXMLElement($response); $errorCode = $xmlResponse->Status; var_dump($errorCode == "success");

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.40.0040.01118.79
8.3.30.0070.00718.95
8.3.20.0040.00420.26
8.3.10.0040.00423.96
8.3.00.0040.00719.22
8.2.170.0070.01422.96
8.2.160.0030.01020.72
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00422.23
8.2.110.0030.00619.44
8.2.100.0000.01117.75
8.2.90.0040.00419.32
8.2.80.0000.00817.97
8.2.70.0080.00417.63
8.2.60.0030.00718.04
8.2.50.0050.00518.07
8.2.40.0000.00820.04
8.2.30.0040.00418.41
8.2.20.0040.00417.77
8.2.10.0040.00418.33
8.2.00.0050.00317.93
8.1.270.0060.00324.09
8.1.260.0030.00526.35
8.1.250.0000.00828.09
8.1.240.0030.00621.22
8.1.230.0040.00819.34
8.1.220.0000.00817.90
8.1.210.0060.00618.77
8.1.200.0070.00317.36
8.1.190.0000.00817.48
8.1.180.0040.00418.10
8.1.170.0060.00320.48
8.1.160.0060.00322.28
8.1.150.0020.00519.13
8.1.140.0070.00017.66
8.1.130.0070.00017.66
8.1.120.0000.00717.61
8.1.110.0000.00817.53
8.1.100.0000.00717.70
8.1.90.0040.00417.56
8.1.80.0000.00717.61
8.1.70.0000.00717.50
8.1.60.0040.00817.73
8.1.50.0000.00817.64
8.1.40.0020.00517.67
8.1.30.0040.00417.81
8.1.20.0040.00417.75
8.1.10.0040.00417.68
8.1.00.0050.00217.52
8.0.300.0000.00718.77
8.0.290.0000.00716.88
8.0.280.0070.00018.57
8.0.270.0030.00317.04
8.0.260.0030.00317.03
8.0.250.0000.00817.11
8.0.240.0000.00717.05
8.0.230.0030.00316.99
8.0.220.0040.00416.97
8.0.210.0030.00316.97
8.0.200.0000.00717.14
8.0.190.0030.00717.04
8.0.180.0000.00717.06
8.0.170.0050.00317.12
8.0.160.0000.00816.97
8.0.150.0030.00316.99
8.0.140.0050.00317.02
8.0.130.0030.00313.48
8.0.120.0050.00316.98
8.0.110.0040.00417.01
8.0.100.0040.00416.91
8.0.90.0000.00717.05
8.0.80.0110.01117.04
8.0.70.0000.00816.95
8.0.60.0000.00716.96
8.0.50.0070.00017.16
8.0.30.0110.01217.21
8.0.20.0110.01117.41
8.0.10.0050.00217.02
8.0.00.0060.01116.99
7.4.330.0030.00515.02
7.4.320.0000.00616.73
7.4.300.0030.00316.62
7.4.290.0030.00716.80
7.4.280.0000.00716.66
7.4.270.0030.00316.57
7.4.260.0030.00316.68
7.4.250.0000.00716.70
7.4.240.0030.00316.70
7.4.230.0000.00716.81
7.4.220.0090.00916.81
7.4.210.0140.00016.56
7.4.200.0030.00316.82
7.4.160.0180.00316.68
7.4.150.0130.01317.40
7.4.140.0150.00817.86
7.4.130.0120.00716.77
7.4.120.0120.00616.85
7.4.110.0180.00716.47
7.4.100.0100.00716.50
7.4.90.0170.00716.66
7.4.80.0110.00719.39
7.4.70.0130.01016.51
7.4.60.0120.00416.69
7.4.50.0030.00516.52
7.4.40.0040.01216.41
7.4.30.0060.01616.78
7.4.00.0060.01115.11
7.3.330.0030.00313.19
7.3.320.0020.00213.30
7.3.310.0030.00316.47
7.3.300.0000.00716.36
7.3.290.0060.00816.36
7.3.280.0090.00916.36
7.3.270.0070.01317.40
7.3.260.0130.00316.67
7.3.250.0040.01316.43
7.3.240.0000.01516.39
7.3.230.0150.00416.39
7.3.210.0100.00716.73
7.3.200.0120.00316.35
7.3.190.0090.00916.31
7.3.180.0080.00816.69
7.3.170.0110.00616.36
7.3.160.0100.00716.48
7.3.120.0060.01214.88
7.3.110.0050.01214.83
7.3.100.0070.00614.94
7.3.90.0100.00714.72
7.3.80.0040.00814.68
7.3.70.0080.00614.83
7.3.60.0040.01114.69
7.3.50.0060.00814.70
7.3.40.0050.01014.86
7.3.30.0050.00814.79
7.3.20.0060.00716.61
7.3.10.0030.01216.75
7.3.00.0050.00916.69
7.2.330.0070.01416.60
7.2.320.0160.00316.70
7.2.310.0120.00616.84
7.2.300.0100.00616.90
7.2.290.0150.00416.96
7.2.250.0090.01015.23
7.2.240.0090.00915.01
7.2.230.0030.01114.95
7.2.220.0070.01114.71
7.2.210.0070.00315.02
7.2.200.0050.01314.83
7.2.190.0030.01415.04
7.2.180.0000.01014.92
7.2.170.0050.01014.93
7.2.130.0000.01517.03
7.2.120.0070.00316.95
7.2.110.0070.00717.01
7.2.100.0070.00716.96
7.2.90.0080.00316.80
7.2.80.0110.00416.89
7.2.70.0030.01016.86
7.2.60.0050.01016.93
7.2.50.0000.01417.00
7.2.40.0070.01017.02
7.2.30.0030.01317.11
7.2.20.0110.00716.64
7.2.10.0080.00417.01
7.2.00.0010.01018.04
7.1.330.0090.00515.82
7.1.320.0050.00615.80
7.1.310.0040.00715.89
7.1.300.0030.01215.88
7.1.290.0050.00515.81
7.1.280.0070.00715.81
7.1.270.0070.00715.92
7.1.260.0090.00615.82
7.1.250.0000.01416.09
7.1.200.0070.00715.86
7.1.100.0060.00618.11
7.1.70.0030.00717.06
7.1.60.0030.02019.32
7.1.50.0100.01417.20
7.1.00.0070.07322.51
7.0.200.0030.00716.96
7.0.140.0070.07022.08
7.0.60.0070.08719.97
7.0.50.0070.07717.94
7.0.40.0130.08320.47
7.0.30.0500.07720.14
7.0.20.0200.08020.28
7.0.10.0130.04320.13
7.0.00.0070.08020.28
5.6.280.0070.07021.05
5.6.210.0070.05320.54
5.6.200.0000.08018.26
5.6.190.0030.08720.46
5.6.180.0330.06320.71
5.6.170.0300.07020.68
5.6.160.0100.04320.47
5.6.150.0000.04318.24
5.6.140.0030.04018.27
5.6.130.0030.04018.29
5.6.120.0170.07021.12
5.6.110.0070.04321.15
5.6.100.0030.09321.16
5.6.90.0100.07021.13
5.6.80.0070.08020.54
5.6.70.0330.07320.39
5.5.350.0130.04020.54
5.5.340.0070.04718.09
5.5.330.0130.08720.28
5.5.320.0000.04320.64
5.5.310.0370.05320.38
5.5.300.0030.08018.09
5.5.290.0000.04317.98
5.5.280.0070.09320.79
5.5.270.0000.08720.77
5.5.260.0070.08021.00
5.5.250.0070.07720.65
5.5.240.0130.05020.21
5.4.450.0200.05319.32
5.4.440.0830.06319.32
5.4.430.0400.06019.68
5.4.420.0730.04719.65
5.4.410.0300.07719.42
5.4.400.0070.07019.36
5.4.390.0170.05319.20
5.4.380.0170.05019.38
5.4.370.0170.05019.02
5.4.360.0230.07019.23
5.4.350.0400.03719.39
5.4.340.0080.03312.10
5.4.320.0060.03712.59
5.4.310.0080.03612.59
5.4.300.0050.03712.59
5.4.290.0070.03512.58
5.4.280.0020.03812.48
5.4.270.0130.03112.48
5.4.260.0050.04012.48
5.4.250.0050.03712.48
5.4.240.0070.03512.48
5.4.230.0090.03512.47
5.4.220.0070.03512.47
5.4.210.0040.03712.48
5.4.200.0070.03712.48
5.4.190.0060.03712.47
5.4.180.0060.03712.47
5.4.170.0070.03612.48
5.4.160.0050.03812.48
5.4.150.0040.03812.47
5.4.140.0080.03512.16
5.4.130.0030.03912.15
5.4.120.0050.03612.11
5.4.110.0050.03612.10
5.4.100.0080.03312.10
5.4.90.0050.03712.10
5.4.80.0080.03412.10
5.4.70.0080.04012.10
5.4.60.0090.04212.10
5.4.50.0050.03812.10
5.4.40.0040.03512.09
5.4.30.0060.03512.09
5.4.20.0080.03412.09
5.4.10.0050.03512.09
5.4.00.0040.03711.57
5.3.290.0050.04012.86
5.3.280.0090.03512.78
5.3.270.0100.03512.79
5.3.260.0090.03512.80
5.3.250.0080.03512.80
5.3.240.0070.03612.80
5.3.230.0070.03612.79
5.3.220.0050.03712.76
5.3.210.0070.03812.76
5.3.200.0060.03612.76
5.3.190.0070.03612.76
5.3.180.0120.03112.75
5.3.170.0070.03612.76
5.3.160.0070.03512.75
5.3.150.0050.03812.75
5.3.140.0020.04012.75
5.3.130.0060.04212.74
5.3.120.0070.03812.74
5.3.110.0070.04012.74
5.3.100.0080.03412.23
5.3.90.0050.03612.21
5.3.80.0060.03612.20
5.3.70.0050.03712.20
5.3.60.0060.03912.18
5.3.50.0050.04212.13
5.3.40.0050.03612.13
5.3.30.0060.03512.09
5.3.20.0080.03211.87
5.3.10.0060.03411.84
5.3.00.0060.03511.83
5.2.170.0020.0339.32
5.2.160.0070.0269.33
5.2.150.0050.0309.32
5.2.140.0050.0309.32
5.2.130.0070.0269.28
5.2.120.0040.0289.29
5.2.110.0050.0289.29
5.2.100.0040.0299.28
5.2.90.0060.0289.29
5.2.80.0090.0269.28
5.2.70.0040.0309.28
5.2.60.0020.0329.24
5.2.50.0050.0299.21
5.2.40.0040.0289.18
5.2.30.0030.0319.16
5.2.20.0040.0299.15
5.2.10.0030.0309.07
5.2.00.0050.0288.93
5.1.60.0040.0248.21
5.1.50.0020.0278.21
5.1.40.0040.0258.19
5.1.30.0090.0248.54
5.1.20.0050.0268.56
5.1.10.0040.0258.28
5.1.00.0060.0238.28
5.0.50.0050.0196.76
5.0.40.0030.0206.62
5.0.30.0020.0326.44
5.0.20.0030.0206.41
5.0.10.0040.0196.39
5.0.00.0040.0306.38
4.4.90.0020.0164.78
4.4.80.0010.0164.76
4.4.70.0030.0154.75
4.4.60.0030.0154.75
4.4.50.0070.0124.77
4.4.40.0030.0244.71
4.4.30.0070.0114.76
4.4.20.0030.0154.84
4.4.10.0050.0144.85
4.4.00.0060.0224.76
4.3.110.0050.0144.67
4.3.100.0030.0164.66
4.3.90.0000.0184.64
4.3.80.0030.0244.59
4.3.70.0030.0144.63
4.3.60.0030.0144.63
4.3.50.0080.0114.63
4.3.40.0040.0234.54
4.3.30.0020.0173.28
4.3.20.0020.0163.26
4.3.10.0020.0163.22
4.3.00.0030.0237.36

preferences:
39.26 ms | 400 KiB | 5 Q