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);

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.0000.01418.43
8.3.50.0080.01322.10
8.3.40.0100.00718.82
8.3.30.0070.00719.00
8.3.20.0050.00220.37
8.3.10.0030.00623.73
8.3.00.0050.00319.25
8.2.180.0170.00716.88
8.2.170.0110.00422.96
8.2.160.0080.00620.43
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00722.23
8.2.110.0060.00322.54
8.2.100.0060.00617.75
8.2.90.0000.00819.48
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0050.00517.93
8.2.50.0000.00818.07
8.2.40.0080.00018.47
8.2.30.0000.00818.17
8.2.20.0000.00817.84
8.2.10.0000.00718.27
8.2.00.0040.00417.79
8.1.280.0070.00725.92
8.1.270.0080.00023.90
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00024.07
8.1.230.0120.00019.30
8.1.220.0040.00417.92
8.1.210.0040.00418.77
8.1.200.0050.00517.47
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0050.00518.74
8.1.160.0000.00822.20
8.1.150.0000.00719.02
8.1.140.0040.00417.61
8.1.130.0100.00018.01
8.1.120.0040.00417.51
8.1.110.0000.00717.62
8.1.100.0040.00417.60
8.1.90.0030.00417.61
8.1.80.0000.00717.67
8.1.70.0000.00817.56
8.1.60.0100.00017.77
8.1.50.0000.00717.55
8.1.40.0050.00217.68
8.1.30.0040.00417.69
8.1.20.0000.00717.70
8.1.10.0040.00417.79
8.1.00.0060.00317.73
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.64
8.0.270.0070.00017.23
8.0.260.0000.00617.41
8.0.250.0040.00417.06
8.0.240.0000.00717.15
8.0.230.0030.00317.16
8.0.220.0030.00317.09
8.0.210.0000.00716.99
8.0.200.0000.00617.05
8.0.190.0080.00317.03
8.0.180.0070.00017.05
8.0.170.0030.00616.96
8.0.160.0070.00016.99
8.0.150.0000.00816.98
8.0.140.0080.00017.06
8.0.130.0000.00513.39
8.0.120.0080.00017.00
8.0.110.0030.00317.11
8.0.100.0040.00417.09
8.0.90.0050.00316.86
8.0.80.0080.01217.03
8.0.70.0000.00816.93
8.0.60.0000.00716.89
8.0.50.0000.00717.06
8.0.30.0080.01317.04
8.0.20.0130.01117.40
8.0.10.0000.00717.21
8.0.00.0110.00617.02
7.4.330.0000.00715.02
7.4.320.0030.00316.73
7.4.300.0030.00316.66
7.4.290.0090.00016.75
7.4.280.0040.00416.75
7.4.270.0060.00016.72
7.4.260.0000.00716.55
7.4.250.0000.00716.67
7.4.240.0020.00516.67
7.4.230.0030.00316.45
7.4.220.0030.01416.83
7.4.210.0090.00616.77
7.4.200.0040.00416.67
7.4.160.0170.00316.65
7.4.150.0140.00717.40
7.4.140.0070.01117.86
7.4.130.0110.00916.74
7.4.120.0070.01116.73
7.4.110.0160.00316.71
7.4.100.0030.01416.53
7.4.90.0070.01016.61
7.4.80.0030.01919.39
7.4.70.0030.01616.64
7.4.60.0140.00316.71
7.4.50.0040.00416.70
7.4.40.0120.00316.48
7.4.30.0130.00516.55
7.4.00.0070.00715.00
7.3.330.0000.00513.02
7.3.320.0000.00513.05
7.3.310.0080.00016.42
7.3.300.0060.00016.25
7.3.290.0070.00816.29
7.3.280.0080.00816.32
7.3.270.0210.00317.40
7.3.260.0140.00316.64
7.3.250.0080.00816.51
7.3.240.0060.00916.28
7.3.230.0080.01016.39
7.3.210.0030.01316.73
7.3.200.0160.00016.65
7.3.190.0160.00616.63
7.3.180.0060.01016.22
7.3.170.0080.00816.55
7.3.160.0120.00916.55
7.2.330.0150.00316.89
7.2.320.0100.01016.54
7.2.310.0130.00316.88
7.2.300.0120.00416.61
7.2.290.0100.00916.41
7.1.100.0070.00718.11
7.1.70.0030.00617.31
7.1.60.0110.01419.32
7.1.50.0070.01717.08
7.1.00.0070.07322.61
7.0.200.0000.00716.80
7.0.140.0000.07722.02
7.0.60.0030.08319.99
7.0.50.0130.07318.01
7.0.40.0100.04020.48
7.0.30.0130.05720.13
7.0.20.0270.04320.13
7.0.10.0070.08720.28
7.0.00.0170.07020.36
5.6.280.0030.07321.02
5.6.210.0070.07720.70
5.6.200.0030.05018.34
5.6.190.0130.04020.81
5.6.180.0230.03320.46
5.6.170.0330.07720.57
5.6.160.0070.08020.51
5.6.150.0070.06018.25
5.6.140.0070.06318.25
5.6.130.0070.08718.23
5.6.120.0070.08321.18
5.6.110.0070.09021.21
5.6.100.0070.05721.21
5.6.90.0130.06721.18
5.6.80.0100.07720.39
5.6.70.4500.04020.47
5.5.350.0170.03320.53
5.5.340.0030.08718.05
5.5.330.0030.09020.56
5.5.320.0230.05020.38
5.5.310.0170.04320.37
5.5.300.0030.06318.02
5.5.290.0100.08318.08
5.5.280.0030.04720.81
5.5.270.0100.07721.00
5.5.260.0100.08320.90
5.5.250.0130.08020.65
5.5.240.0200.08020.39
5.4.450.0870.06019.48
5.4.440.0730.06019.68
5.4.430.0800.04719.32
5.4.420.0600.05719.31
5.4.410.0830.05719.53
5.4.400.0670.06019.25
5.4.390.0400.06319.02
5.4.380.0570.05718.98
5.4.370.0930.05719.30
5.4.360.0630.06019.37
5.4.350.0130.05719.03
5.4.340.0040.03612.11
5.4.320.0060.03612.60
5.4.310.0080.03612.59
5.4.300.0080.03712.59
5.4.290.0060.03812.59
5.4.280.0060.03512.49
5.4.270.0060.03612.49
5.4.260.0060.03712.48
5.4.250.0080.03612.49
5.4.240.0070.03512.49
5.4.230.0020.04212.48
5.4.220.0070.03512.48
5.4.210.0080.03312.48
5.4.200.0060.03712.48
5.4.190.0050.03612.48
5.4.180.0050.03612.47
5.4.170.0070.03912.48
5.4.160.0060.03812.48
5.4.150.0060.03612.48
5.4.140.0050.03812.16
5.4.130.0070.03512.15
5.4.120.0090.03312.11
5.4.110.0070.03912.11
5.4.100.0060.04212.10
5.4.90.0070.04712.10
5.4.80.0070.03612.11
5.4.70.0050.03812.10
5.4.60.0060.03612.10
5.4.50.0050.03512.09
5.4.40.0040.03612.09
5.4.30.0050.03612.09
5.4.20.0040.03712.09
5.4.10.0020.03812.09
5.4.00.0090.03211.58
5.3.290.0040.04112.86
5.3.280.0040.03812.79
5.3.270.0040.04312.80
5.3.260.0050.04012.80
5.3.250.0060.03712.80
5.3.240.0100.03912.80
5.3.230.0100.03512.80
5.3.220.0090.03312.77
5.3.210.0060.04012.76
5.3.200.0070.04712.76
5.3.190.0050.03912.77
5.3.180.0050.03712.76
5.3.170.0050.03712.76
5.3.160.0050.03812.76
5.3.150.0070.03612.76
5.3.140.0060.03612.75
5.3.130.0060.03812.74
5.3.120.0040.04012.74
5.3.110.0060.04012.74
5.3.100.0080.03512.25
5.3.90.0060.03512.21
5.3.80.0090.04312.20
5.3.70.0070.04912.21
5.3.60.0090.04712.19
5.3.50.0060.03612.13
5.3.40.0070.03612.13
5.3.30.0050.03912.09
5.3.20.0070.03711.87
5.3.10.0070.03411.84
5.3.00.0090.04511.83
5.2.170.0050.0309.33
5.2.160.0040.0309.32
5.2.150.0030.0339.33
5.2.140.0080.0279.32
5.2.130.0050.0429.29
5.2.120.0080.0329.29
5.2.110.0040.0329.29
5.2.100.0090.0359.29
5.2.90.0040.0329.29
5.2.80.0030.0319.29
5.2.70.0050.0299.28
5.2.60.0050.0299.23
5.2.50.0070.0279.21
5.2.40.0050.0289.18
5.2.30.0040.0299.16
5.2.20.0060.0279.14
5.2.10.0040.0289.07
5.2.00.0050.0298.93
5.1.60.0040.0248.21
5.1.50.0040.0248.21
5.1.40.0050.0238.20
5.1.30.0020.0298.54
5.1.20.0060.0248.56
5.1.10.0050.0288.28
5.1.00.0060.0248.28
5.0.50.0030.0216.76
5.0.40.0020.0206.63
5.0.30.0040.0306.44
5.0.20.0030.0196.41
5.0.10.0040.0196.39
5.0.00.0040.0306.38
4.4.90.0020.0164.78
4.4.80.0030.0154.76
4.4.70.0010.0174.75
4.4.60.0040.0154.75
4.4.50.0060.0154.77
4.4.40.0020.0264.71
4.4.30.0050.0134.76
4.4.20.0040.0144.84
4.4.10.0040.0144.84
4.4.00.0030.0264.76
4.3.110.0030.0164.67
4.3.100.0030.0154.66
4.3.90.0020.0154.64
4.3.80.0010.0314.58
4.3.70.0040.0134.63
4.3.60.0020.0154.63
4.3.50.0050.0134.63
4.3.40.0050.0214.54
4.3.30.0020.0163.29
4.3.20.0030.0153.26
4.3.10.0000.0173.21
4.3.00.0130.0177.41

preferences:
32.92 ms | 401 KiB | 5 Q