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->movie->characters[0]->character->name); 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.0090.00618.30
8.3.50.0090.00922.05
8.3.40.0040.01119.00
8.3.30.0110.00419.34
8.3.20.0060.00320.54
8.3.10.0080.00020.96
8.3.00.0000.00819.92
8.2.180.0040.01216.75
8.2.170.0110.00722.96
8.2.160.0140.00020.60
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.49
8.2.110.0090.00020.63
8.2.100.0080.00418.16
8.2.90.0050.00318.47
8.2.80.0040.00417.97
8.2.70.0080.00017.75
8.2.60.0030.00618.05
8.2.50.0040.00418.07
8.2.40.0060.00318.21
8.2.30.0030.00619.45
8.2.20.0060.00317.80
8.2.10.0000.00818.14
8.2.00.0060.00317.86
8.1.280.0070.00725.92
8.1.270.0080.00022.26
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.38
8.1.230.0070.00421.10
8.1.220.0000.00817.79
8.1.210.0000.00919.12
8.1.200.0050.00517.48
8.1.190.0000.00817.35
8.1.180.0030.00518.10
8.1.170.0060.00318.63
8.1.160.0070.00022.13
8.1.150.0080.00018.93
8.1.140.0020.00517.56
8.1.130.0000.00718.08
8.1.120.0000.00717.70
8.1.110.0040.00417.50
8.1.100.0070.00017.63
8.1.90.0050.00317.45
8.1.80.0080.00017.54
8.1.70.0030.00317.49
8.1.60.0030.00617.64
8.1.50.0030.00517.57
8.1.40.0030.00517.75
8.1.30.0000.00817.71
8.1.20.0080.00017.86
8.1.10.0060.00317.88
8.1.00.0040.00717.68
8.0.300.0060.00320.39
8.0.290.0040.00416.88
8.0.280.0070.00018.58
8.0.270.0070.00017.46
8.0.260.0070.00017.31
8.0.250.0000.00717.27
8.0.240.0050.00217.16
8.0.230.0080.00017.12
8.0.220.0070.00017.18
8.0.210.0040.00417.08
8.0.200.0060.00317.05
8.0.190.0070.00017.24
8.0.180.0030.00517.06
8.0.170.0050.00317.13
8.0.160.0000.00816.96
8.0.150.0030.00317.13
8.0.140.0030.00316.95
8.0.130.0000.00613.45
8.0.120.0030.00616.96
8.0.110.0040.00417.03
8.0.100.0000.00717.04
8.0.90.0000.00717.04
8.0.80.0100.01117.08
8.0.70.0050.00317.16
8.0.60.0030.00517.11
8.0.50.0040.00417.07
8.0.30.0110.00817.40
8.0.20.0120.00817.51
8.0.10.0040.00417.10
8.0.00.0100.00717.13
7.4.330.0000.00515.24
7.4.320.0060.00016.80
7.4.300.0000.00616.77
7.4.290.0060.00316.72
7.4.280.0100.00016.74
7.4.270.0040.00416.80
7.4.260.0070.00016.81
7.4.250.0040.00416.80
7.4.240.0050.00216.79
7.4.230.0040.00416.83
7.4.220.0130.00616.70
7.4.210.0090.01316.85
7.4.200.0000.00716.83
7.4.160.0130.00316.72
7.4.150.0140.00317.40
7.4.140.0090.01217.86
7.4.130.0100.00716.64
7.4.120.0080.01116.89
7.4.110.0100.00716.73
7.4.100.0070.01016.74
7.4.90.0060.01016.74
7.4.80.0060.01216.86
7.4.70.0060.01016.75
7.4.60.0100.01016.81
7.4.50.0030.00316.87
7.4.40.0100.00616.64
7.4.30.0030.01216.74
7.4.00.0060.00915.11
7.3.330.0030.00213.30
7.3.320.0000.00713.41
7.3.310.0000.00716.56
7.3.300.0060.00016.31
7.3.290.0180.00316.39
7.3.280.0090.00716.48
7.3.270.0080.01117.40
7.3.260.0150.00316.37
7.3.250.0110.00616.69
7.3.240.0090.00816.70
7.3.230.0030.01516.42
7.3.210.0120.00916.65
7.3.200.0090.01519.39
7.3.190.0000.01616.68
7.3.180.0080.00816.67
7.3.170.0110.00616.62
7.3.160.0090.00616.52
7.2.330.0090.00916.85
7.2.320.0080.00816.52
7.2.310.0100.00716.62
7.2.300.0170.00716.80
7.2.290.0090.00916.61
7.2.60.0070.00717.19
7.1.200.0060.00615.71
7.1.100.0110.00018.39
7.1.70.0030.00617.03
7.1.60.0110.01419.32
7.1.50.0070.01017.05
7.1.00.0030.07722.44
7.0.200.0150.00016.72
7.0.140.0070.07022.14
7.0.60.0100.06019.90
7.0.50.0070.04717.99
7.0.40.0070.08720.27
7.0.30.0400.07020.12
7.0.20.0230.06020.15
7.0.10.0100.08720.13
7.0.00.0070.05020.25
5.6.280.0070.07021.14
5.6.210.0000.05720.64
5.6.200.0130.07718.30
5.6.190.0130.07720.81
5.6.180.0430.03720.51
5.6.170.0200.04720.55
5.6.160.0070.08320.66
5.6.150.0030.04018.30
5.6.140.0070.08018.29
5.6.130.0030.08718.21
5.6.120.0130.07720.96
5.6.110.0130.05021.20
5.6.100.0130.07721.16
5.6.90.0070.08721.00
5.6.80.0100.05720.42
5.5.350.0130.08720.54
5.5.340.0200.06718.06
5.5.330.0100.08320.36
5.5.320.0370.06720.47
5.5.310.0200.04720.43
5.5.300.0030.08318.09
5.5.290.0070.08018.02
5.5.280.0170.05020.87
5.5.270.0100.05720.82
5.5.260.0170.08020.71
5.5.250.0100.05320.82
5.5.240.0130.04020.27
5.4.450.0370.06019.36
5.4.440.0670.06019.63
5.4.430.0730.06719.55
5.4.420.0200.04719.72
5.4.410.0970.05319.33
5.4.400.0800.05718.98
5.4.390.0900.05319.01
5.4.380.1070.05718.60
5.4.370.1170.04018.75
5.4.360.0900.06018.58
5.4.350.0770.05718.77
5.4.340.1100.04318.82
5.4.320.0050.03612.61
5.4.310.0010.04212.61
5.4.300.0090.03812.62
5.4.290.0090.04112.61
5.4.280.0060.03512.51
5.4.270.0060.03612.51
5.4.260.0080.03912.51
5.4.250.0040.04212.51
5.4.240.0080.03412.51
5.4.230.0110.03812.50
5.4.220.0100.03812.50
5.4.210.0040.03612.50
5.4.200.0040.03912.50
5.4.190.0060.03612.50
5.4.180.0060.03712.50
5.4.170.0050.04212.51
5.4.160.0060.04012.50
5.4.150.0080.04412.50
5.4.140.0040.04512.18
5.4.130.0070.03412.17
5.4.120.0080.03812.13
5.4.110.0100.03512.13
5.4.100.0080.04412.12
5.4.90.0060.03912.12
5.4.80.0050.04512.13
5.4.70.0040.04112.12
5.4.60.0080.03512.12
5.4.50.0050.04912.12
5.4.40.0060.03812.11
5.4.30.0040.03712.10
5.4.20.0070.03512.11
5.4.10.0080.04012.10
5.4.00.0080.03111.60
5.3.290.0090.04712.88
5.3.280.0080.04312.82
5.3.270.0110.04112.82
5.3.260.0070.04612.82
5.3.250.0060.03912.82
5.3.240.0060.03612.82
5.3.230.0100.03412.81
5.3.220.0070.03612.78
5.3.210.0060.03912.78
5.3.200.0060.03712.78
5.3.190.0070.03712.79
5.3.180.0070.03712.78
5.3.170.0120.03712.78
5.3.160.0050.03912.78
5.3.150.0100.03212.78
5.3.140.0050.03812.77
5.3.130.0050.03912.77
5.3.120.0070.04212.76
5.3.110.0050.04112.77
5.3.100.0090.04312.25
5.3.90.0100.04012.23
5.3.80.0020.04112.23
5.3.70.0090.03812.23
5.3.60.0020.04012.21
5.3.50.0050.03912.16
5.3.40.0080.03912.16
5.3.30.0060.04012.13
5.3.20.0080.04211.90
5.3.10.0080.04511.86
5.3.00.0070.03611.85
5.2.170.0040.0319.36
5.2.160.0060.0279.35
5.2.150.0040.0309.36
5.2.140.0040.0399.36
5.2.130.0040.0299.31
5.2.120.0010.0319.31
5.2.110.0080.0289.32
5.2.100.0080.0319.30
5.2.90.0080.0289.30
5.2.80.0030.0409.30
5.2.70.0040.0309.30
5.2.60.0070.0379.26
5.2.50.0050.0299.23
5.2.40.0070.0299.21
5.2.30.0040.0339.18
5.2.20.0080.0339.19
5.2.10.0060.0319.12
5.2.00.0070.0298.97
5.1.60.0060.0298.26
5.1.50.0040.0268.26
5.1.40.0030.0298.23
5.1.30.0050.0298.59
5.1.20.0030.0308.61
5.1.10.0050.0258.33
5.1.00.0040.0318.33
5.0.50.0050.0256.80
5.0.40.0040.0236.67
5.0.30.0040.0326.49
5.0.20.0050.0206.46
5.0.10.0040.0216.43
5.0.00.0040.0356.42
4.4.90.0040.0144.78
4.4.80.0060.0114.75
4.4.70.0040.0144.76
4.4.60.0030.0154.75
4.4.50.0030.0154.77
4.4.40.0060.0284.71
4.4.30.0040.0154.76
4.4.20.0020.0214.84
4.4.10.0030.0164.85
4.4.00.0020.0314.75
4.3.110.0070.0234.67
4.3.100.0030.0194.66
4.3.90.0040.0184.63
4.3.80.0020.0284.58
4.3.70.0030.0204.63
4.3.60.0040.0144.63
4.3.50.0040.0194.63
4.3.40.0040.0324.54
4.3.30.0010.0163.31
4.3.20.0050.0133.29
4.3.10.0020.0193.23
4.3.00.0070.0236.72

preferences:
44.45 ms | 401 KiB | 5 Q