3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlstr = <<<XML <?xml version='1.0' standalone='yes'?> <movies> <movie> <title>PHP: Behind the Parser</title> <characters> <character> <name>Ms. Coder</name> <actor>Onlivia Actora</actor> </character> <character> <name>Mr. Coder</name> <actor>El Act&#211;r</actor> </character> </characters> <plot> So, this language. It's like, a programming language. Or is it a scripting language? All is revealed in this thrilling horror spoof of a documentary. </plot> <great-lines> <line>PHP solves all my web problems</line> </great-lines> <rating type="thumbs">7</rating> <rating type="stars">5</rating> </movie> </movies> XML; $parsed = simplexml_load_string($xmlstr); $foo = isset($parsed->movies->movie->foo->bar->baz); var_dump($foo); ?>

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.0140.00018.55
8.3.50.0100.00822.07
8.3.40.0150.00019.02
8.3.30.0110.00319.19
8.3.20.0000.00920.29
8.3.10.0050.00320.75
8.3.00.0060.00319.91
8.2.180.0040.01116.75
8.2.170.0110.00322.96
8.2.160.0070.00719.24
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0030.00522.43
8.2.110.0000.00822.41
8.2.100.0040.00819.64
8.2.90.0080.00019.28
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0080.00019.47
8.2.20.0070.00017.95
8.2.10.0050.00318.38
8.2.00.0030.00517.82
8.1.280.0090.00625.92
8.1.270.0030.00522.31
8.1.260.0040.00426.35
8.1.250.0070.01128.09
8.1.240.0090.00024.23
8.1.230.0060.00619.27
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0070.00317.48
8.1.190.0080.00017.36
8.1.180.0000.00918.10
8.1.170.0030.00618.71
8.1.160.0070.00022.20
8.1.150.0040.00419.04
8.1.140.0000.00717.55
8.1.130.0000.00717.99
8.1.120.0000.00817.69
8.1.110.0070.00017.53
8.1.100.0000.00717.48
8.1.90.0060.00317.50
8.1.80.0040.00417.66
8.1.70.0000.00717.48
8.1.60.0080.00017.80
8.1.50.0000.00817.77
8.1.40.0060.00317.61
8.1.30.0040.00417.62
8.1.20.0040.00417.70
8.1.10.0000.00817.75
8.1.00.0060.00617.61
8.0.300.0060.00318.77
8.0.290.0000.00817.00
8.0.280.0000.00718.55
8.0.270.0000.00717.41
8.0.260.0050.00317.39
8.0.250.0040.00417.29
8.0.240.0000.00817.16
8.0.230.0030.00317.20
8.0.220.0030.00317.13
8.0.210.0040.00417.04
8.0.200.0040.00417.15
8.0.190.0070.00017.16
8.0.180.0040.00417.00
8.0.170.0000.00717.05
8.0.160.0040.00417.07
8.0.150.0040.00417.11
8.0.140.0070.00016.95
8.0.130.0000.00513.57
8.0.120.0030.00617.11
8.0.110.0040.00417.15
8.0.100.0000.00717.17
8.0.90.0040.00417.05
8.0.80.0140.01017.18
8.0.70.0000.00717.00
8.0.60.0070.00016.90
8.0.50.0020.00517.14
8.0.30.0100.01217.32
8.0.20.0100.00917.46
8.0.10.0000.00716.98
8.0.00.0120.00616.93
7.4.330.0030.00315.34
7.4.320.0060.00016.75
7.4.300.0000.00616.82
7.4.290.0080.00016.65
7.4.280.0080.00316.71
7.4.270.0030.00316.82
7.4.260.0000.00716.75
7.4.250.0040.00416.76
7.4.240.0020.00516.74
7.4.230.0030.00316.79
7.4.220.0180.00916.82
7.4.210.0070.00816.76
7.4.200.0030.00316.70
7.4.160.0140.00516.61
7.4.150.0130.00617.40
7.4.140.0090.00817.86
7.4.130.0070.01216.82
7.4.120.0080.00816.76
7.4.110.0070.01016.85
7.4.100.0110.00716.46
7.4.90.0030.01316.66
7.4.80.0090.00916.86
7.4.70.0060.01216.73
7.4.60.0080.00916.65
7.4.50.0050.00016.82
7.4.40.0070.01016.58
7.4.30.0060.01216.71
7.4.00.0040.01415.13
7.3.330.0020.00213.30
7.3.320.0000.00613.32
7.3.310.0070.00016.45
7.3.300.0030.00316.32
7.3.290.0090.00816.40
7.3.280.0080.00816.42
7.3.270.0120.00617.40
7.3.260.0080.00816.68
7.3.250.0110.00616.48
7.3.240.0130.00316.78
7.3.230.0180.00016.71
7.3.210.0110.01216.48
7.3.200.0180.00619.39
7.3.190.0140.00316.54
7.3.180.0090.01216.64
7.3.170.0140.00316.57
7.3.160.0080.00816.43
7.2.330.0090.01216.56
7.2.320.0090.01316.82
7.2.310.0070.01016.69
7.2.300.0070.01416.57
7.2.290.0060.01716.90
7.2.60.0060.00916.87
7.2.00.0080.00818.57
7.1.200.0040.00715.65
7.1.100.0000.01118.25
7.1.70.0000.00717.20
7.1.60.0180.00719.32
7.1.50.0180.01416.79
7.1.00.0030.07322.38
7.0.200.0040.00416.75
7.0.140.0070.07022.23
7.0.60.0100.04719.88
7.0.50.0070.04017.96
7.0.40.0130.07720.13
7.0.30.0530.06720.42
7.0.20.0230.07320.30
7.0.10.0000.09320.25
7.0.00.0030.06320.40
5.6.280.0030.07321.05
5.6.210.0000.04320.89
5.6.200.0030.08318.20
5.6.190.0170.03720.47
5.6.180.0570.04720.77
5.6.170.0370.04020.48
5.6.160.0070.08720.70
5.6.150.0030.05318.26
5.6.140.0100.04018.20
5.6.130.0000.05718.25
5.6.120.0170.07720.84
5.6.110.0070.06321.09
5.6.100.0100.08321.12
5.6.90.0130.08021.20
5.6.80.0200.07320.42
5.5.350.0170.07720.50
5.5.340.0070.05718.07
5.5.330.0000.09320.29
5.5.320.0300.08020.27
5.5.310.0070.05020.39
5.5.300.0070.06318.05
5.5.290.0030.06718.10
5.5.280.0030.08020.98
5.5.270.0100.06020.70
5.5.260.0070.05721.00
5.5.250.0070.08320.75
5.5.240.0100.03320.39
5.4.450.0170.06019.66
5.4.440.0800.05719.36
5.4.430.0970.05019.52
5.4.420.0930.05319.55
5.4.410.0970.06019.23
5.4.400.0830.06019.22
5.4.390.0900.05719.00
5.4.380.0330.05018.71
5.4.370.0330.05718.76
5.4.360.0400.06018.59
5.4.350.0230.06018.76
5.4.340.0300.06018.82
5.4.320.0060.04012.62
5.4.310.0060.04912.61
5.4.300.0050.03612.61
5.4.290.0120.04012.61
5.4.280.0060.03512.51
5.4.270.0050.03712.51
5.4.260.0070.04512.51
5.4.250.0080.03712.51
5.4.240.0040.04312.51
5.4.230.0060.04312.50
5.4.220.0080.03612.50
5.4.210.0050.03612.50
5.4.200.0090.04212.50
5.4.190.0050.03712.50
5.4.180.0070.03512.50
5.4.170.0060.04212.51
5.4.160.0100.04412.50
5.4.150.0080.04312.50
5.4.140.0070.04412.18
5.4.130.0110.04412.17
5.4.120.0070.03512.13
5.4.110.0080.03412.13
5.4.100.0040.03712.12
5.4.90.0050.03712.13
5.4.80.0080.03412.12
5.4.70.0070.03512.12
5.4.60.0030.03712.12
5.4.50.0050.03612.12
5.4.40.0050.03812.11
5.4.30.0070.04012.10
5.4.20.0110.03212.11
5.4.10.0090.03912.11
5.4.00.0060.03411.60
5.3.290.0120.04612.88
5.3.280.0110.04412.81
5.3.270.0120.03912.83
5.3.260.0050.04212.82
5.3.250.0150.03912.82
5.3.240.0050.04712.82
5.3.230.0070.04312.81
5.3.220.0060.03812.79
5.3.210.0050.03912.78
5.3.200.0120.03912.78
5.3.190.0050.03912.79
5.3.180.0050.04712.78
5.3.170.0060.04412.78
5.3.160.0090.03412.78
5.3.150.0080.04712.78
5.3.140.0060.04312.77
5.3.130.0070.04412.76
5.3.120.0070.04212.77
5.3.110.0080.03712.76
5.3.100.0040.03812.25
5.3.90.0100.03912.23
5.3.80.0060.04012.22
5.3.70.0070.03712.22
5.3.60.0090.04212.21
5.3.50.0080.03912.16
5.3.40.0110.03512.16
5.3.30.0060.04312.13
5.3.20.0040.03611.90
5.3.10.0050.03611.86
5.3.00.0050.03711.85
5.2.170.0050.0339.36
5.2.160.0060.0349.36
5.2.150.0090.0289.36
5.2.140.0060.0379.35
5.2.130.0030.0389.31
5.2.120.0050.0469.31
5.2.110.0070.0299.31
5.2.100.0060.0419.30
5.2.90.0040.0329.30
5.2.80.0060.0469.30
5.2.70.0080.0339.30
5.2.60.0050.0299.26
5.2.50.0040.0299.22
5.2.40.0030.0309.21
5.2.30.0080.0299.18
5.2.20.0050.0299.20
5.2.10.0040.0309.11
5.2.00.0050.0298.97
5.1.60.0060.0218.26
5.1.50.0070.0238.26
5.1.40.0030.0268.23
5.1.30.0050.0258.59
5.1.20.0050.0268.61
5.1.10.0040.0268.33
5.1.00.0030.0308.33
5.0.50.0070.0196.80
5.0.40.0040.0266.67
5.0.30.0030.0336.48
5.0.20.0050.0226.45
5.0.10.0060.0276.43
5.0.00.0060.0376.42
4.4.90.0050.0294.78
4.4.80.0030.0204.75
4.4.70.0070.0174.75
4.4.60.0040.0204.75
4.4.50.0060.0134.77
4.4.40.0060.0394.71
4.4.30.0000.0294.76
4.4.20.0030.0284.84
4.4.10.0030.0224.85
4.4.00.0040.0354.76
4.3.110.0040.0224.67
4.3.100.0030.0144.66
4.3.90.0010.0164.63
4.3.80.0020.0334.59
4.3.70.0040.0144.63
4.3.60.0050.0124.63
4.3.50.0030.0154.63
4.3.40.0030.0244.54
4.3.30.0050.0143.31
4.3.20.0020.0163.29
4.3.10.0020.0153.24
4.3.00.0070.0206.72

preferences:
58.74 ms | 401 KiB | 5 Q