3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<XML <?xml version='1.0'?> <document> <title>Forty What?</title> <from>Joe</from> <to>Jane <body> I know that's the answer -- but what's the question? </body> </document> XML; $xml = simplexml_load_string($string); if($xml == false) { throw new \Exception(); } print_r($xml);

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.0150.00618.66
8.3.50.0090.00618.46
8.3.40.0120.00919.21
8.3.30.0090.00619.22
8.3.20.0040.00419.48
8.3.10.0040.00422.07
8.3.00.0080.00023.89
8.2.180.0110.00717.00
8.2.170.0150.00622.96
8.2.160.0060.00919.59
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0040.00419.21
8.2.120.0040.00426.35
8.2.110.0060.00321.30
8.2.100.0070.00418.16
8.2.90.0080.00019.34
8.2.80.0000.00818.00
8.2.70.0040.00418.05
8.2.60.0030.00518.15
8.2.50.0060.00618.10
8.2.40.0030.00519.68
8.2.30.0000.00819.41
8.2.20.0000.00718.25
8.2.10.0000.00720.10
8.2.00.0040.00419.67
8.1.280.0180.00625.92
8.1.270.0040.00724.23
8.1.260.0040.00426.35
8.1.250.0030.00728.09
8.1.240.0090.00022.32
8.1.230.0040.00719.14
8.1.220.0000.00917.80
8.1.210.0050.00318.77
8.1.200.0060.00317.49
8.1.190.0040.00417.60
8.1.180.0070.00418.10
8.1.170.0080.00018.88
8.1.160.0000.00719.08
8.1.150.0000.00819.03
8.1.140.0040.00417.89
8.1.130.0060.00317.75
8.1.120.0040.00417.65
8.1.110.0040.00417.70
8.1.100.0000.00717.75
8.1.90.0000.00717.56
8.1.80.0040.00417.76
8.1.70.0070.00017.67
8.1.60.0050.00317.82
8.1.50.0030.00617.72
8.1.40.0050.00217.71
8.1.30.0030.00517.80
8.1.20.0080.00017.86
8.1.10.0000.00817.80
8.1.00.0040.00417.60
8.0.300.0040.00418.96
8.0.290.0060.00317.00
8.0.280.0000.01018.54
8.0.270.0040.00417.46
8.0.260.0000.00716.96
8.0.250.0050.00317.30
8.0.240.0000.00617.32
8.0.230.0050.00217.35
8.0.220.0000.00717.14
8.0.210.0040.00417.06
8.0.200.0000.00817.32
8.0.190.0040.00417.21
8.0.180.0000.00817.29
8.0.170.0030.00517.17
8.0.160.0040.00417.16
8.0.150.0030.00617.09
8.0.140.0000.00717.14
8.0.130.0000.00813.71
8.0.120.0030.00617.19
8.0.110.0000.00717.16
8.0.100.0070.00016.98
8.0.90.0030.00517.13
8.0.80.0070.00917.21
8.0.70.0040.00417.09
8.0.60.0040.00416.95
8.0.50.0000.00717.04
8.0.30.0110.00617.31
8.0.20.0110.00917.40
8.0.10.0000.00717.11
8.0.00.0060.01217.00
7.4.330.0000.00415.55
7.4.320.0030.00316.77
7.4.300.0000.00616.74
7.4.290.0030.00316.89
7.4.280.0000.00816.75
7.4.270.0100.00016.69
7.4.260.0000.00716.80
7.4.250.0000.00716.78
7.4.240.0060.00316.68
7.4.230.0050.00317.00
7.4.220.0040.00416.60
7.4.210.0100.00516.75
7.4.200.0050.00216.72
7.4.160.0070.00816.70
7.4.140.0090.01117.86
7.4.130.0110.00716.74
7.4.120.0140.00816.78
7.4.110.0070.01016.98
7.4.100.0110.00616.79
7.4.90.0150.00316.81
7.4.80.0110.00819.39
7.4.70.0090.00916.85
7.4.60.0070.01016.81
7.4.50.0060.00916.71
7.4.40.0090.00916.82
7.4.00.0040.01215.00
7.3.330.0030.00313.64
7.3.320.0030.00313.57
7.3.310.0000.00816.68
7.3.300.0040.00416.52
7.3.290.0000.00716.59
7.3.280.0040.01116.56
7.3.260.0110.00716.66
7.3.240.0090.00916.65
7.3.230.0100.01016.53
7.3.210.0120.00616.55
7.3.200.0110.00516.58
7.3.190.0100.00616.55
7.3.180.0100.01116.62
7.3.170.0140.00316.54
7.3.160.0140.00316.75
7.3.120.0060.00814.87
7.3.110.0130.00614.81
7.3.100.0060.01115.03
7.3.90.0060.00614.91
7.3.80.0000.01414.92
7.3.70.0070.00715.07
7.3.60.0160.00014.88
7.3.50.0040.01114.95
7.3.40.0070.00714.88
7.3.30.0070.01114.64
7.3.20.0070.01116.68
7.3.10.0030.00616.76
7.3.00.0040.00816.64
7.2.330.0180.00616.72
7.2.320.0090.00916.61
7.2.310.0060.01216.82
7.2.300.0120.00716.82
7.2.290.0060.01216.74
7.2.250.0140.00015.29
7.2.240.0030.01315.27
7.2.230.0070.01014.73
7.2.220.0060.00615.15
7.2.210.0000.01815.25
7.2.200.0080.00815.23
7.2.190.0040.01115.04
7.2.180.0030.01015.00
7.2.170.0040.01415.06
7.2.70.1600.01615.33
7.2.60.1590.01215.14
7.2.50.1490.00315.23
7.2.40.1810.01015.25
7.2.30.1700.00314.99
7.2.20.1540.00715.34
7.2.10.1550.00614.68
7.2.00.1710.00015.05
7.1.330.0040.01115.87
7.1.320.0080.00415.72
7.1.310.0090.00615.77
7.1.300.0030.01015.75
7.1.290.0040.01115.55
7.1.280.0060.01215.72
7.1.270.0000.01515.39
7.1.260.0030.01115.61
7.1.200.0090.00615.82
7.1.170.1360.01013.81
7.1.160.1840.00913.91
7.1.150.1970.00314.02
7.1.140.1460.00714.00
7.1.130.1570.00713.69
7.1.120.1770.00013.68
7.1.110.1840.00313.65
7.1.100.1790.00313.73
7.1.90.1850.01614.05
7.1.80.2020.00613.82
7.1.70.2230.01313.75
7.1.60.2290.01031.62
7.1.50.2850.00731.78
7.1.40.3020.01031.84
7.1.30.1470.01331.63
7.1.20.2580.02031.74
7.1.10.3110.01313.79
7.1.00.1880.01014.20

preferences:
32.5 ms | 400 KiB | 5 Q