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[1]->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.0070.00718.27
8.3.50.0080.01022.09
8.3.40.0110.00418.92
8.3.30.0070.00719.34
8.3.20.0040.00420.44
8.3.10.0040.00420.57
8.3.00.0030.00520.04
8.2.180.0060.01216.63
8.2.170.0180.00022.96
8.2.160.0070.00720.52
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0070.00022.43
8.2.110.0000.01021.02
8.2.100.0040.00817.97
8.2.90.0060.00318.00
8.2.80.0040.00418.86
8.2.70.0000.00817.50
8.2.60.0030.00617.75
8.2.50.0060.00318.05
8.2.40.0030.00618.41
8.2.30.0070.00019.63
8.2.20.0080.00017.91
8.2.10.0080.00018.28
8.2.00.0000.00817.85
8.1.280.0130.01025.92
8.1.270.0030.00624.04
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.00919.55
8.1.230.0090.00323.00
8.1.220.0000.00818.81
8.1.210.0060.00318.77
8.1.200.0030.00617.66
8.1.190.0030.00617.35
8.1.180.0000.00818.10
8.1.170.0060.00317.62
8.1.160.0090.00019.13
8.1.150.0050.00219.04
8.1.140.0040.00417.66
8.1.130.0070.00018.02
8.1.120.0030.00317.70
8.1.110.0080.00017.64
8.1.100.0000.00717.52
8.1.90.0050.00217.57
8.1.80.0040.00417.71
8.1.70.0070.00017.52
8.1.60.0000.00817.61
8.1.50.0040.00417.70
8.1.40.0080.00017.64
8.1.30.0030.00617.81
8.1.20.0050.00217.82
8.1.10.0030.00617.77
8.1.00.0030.00817.71
8.0.300.0040.00420.40
8.0.290.0030.00617.00
8.0.280.0000.00718.66
8.0.270.0030.00317.42
8.0.260.0000.00817.42
8.0.250.0030.00317.23
8.0.240.0000.00717.04
8.0.230.0000.00717.07
8.0.220.0040.00416.98
8.0.210.0040.00417.14
8.0.200.0080.00017.23
8.0.190.0040.00417.04
8.0.180.0040.00417.07
8.0.170.0050.00317.00
8.0.160.0050.00316.98
8.0.150.0030.00517.00
8.0.140.0040.00417.13
8.0.130.0030.00313.51
8.0.120.0040.00416.98
8.0.110.0000.00717.17
8.0.100.0040.00417.08
8.0.90.0040.00416.91
8.0.80.0100.01317.07
8.0.70.0040.00416.90
8.0.60.0000.00716.97
8.0.50.0040.00417.16
8.0.30.0100.01017.20
8.0.20.0090.01017.40
8.0.10.0000.00817.25
8.0.00.0060.01517.05
7.4.330.0000.00715.19
7.4.320.0000.00616.73
7.4.300.0000.00616.83
7.4.290.0000.00816.79
7.4.280.0000.01116.71
7.4.270.0000.00716.78
7.4.260.0070.00016.80
7.4.250.0040.00416.77
7.4.240.0060.00216.87
7.4.230.0070.00016.89
7.4.220.0060.01216.61
7.4.210.0110.00616.66
7.4.200.0050.00316.49
7.4.160.0240.00016.57
7.4.150.0070.01017.40
7.4.140.0060.01217.86
7.4.130.0080.00816.76
7.4.120.0130.00916.71
7.4.110.0100.00716.77
7.4.100.0110.00616.67
7.4.90.0140.00316.95
7.4.80.0080.01616.78
7.4.70.0160.00016.84
7.4.60.0100.01016.93
7.4.50.0000.00516.90
7.4.40.0110.00516.86
7.4.30.0100.00616.94
7.4.10.0090.00915.86
7.4.00.0060.01115.60
7.3.330.0030.00313.31
7.3.320.0040.00413.40
7.3.310.0070.00016.52
7.3.300.0000.00716.39
7.3.290.0070.00716.53
7.3.280.0060.00816.51
7.3.270.0110.00717.40
7.3.260.0130.00416.65
7.3.250.0140.00316.65
7.3.240.0090.00916.38
7.3.230.0030.01516.61
7.3.210.0140.00716.66
7.3.200.0140.00919.39
7.3.190.0080.00816.80
7.3.180.0000.01616.74
7.3.170.0160.00016.62
7.3.160.0060.01016.39
7.3.130.0060.01115.77
7.3.120.0060.00915.36
7.3.110.0100.00615.46
7.3.100.0050.01015.48
7.3.90.0070.00715.54
7.3.80.0020.00915.60
7.3.70.0070.00815.27
7.3.60.0050.01215.48
7.3.50.0080.00515.45
7.3.40.0040.00715.38
7.3.30.0040.01015.35
7.3.20.0080.00517.36
7.3.10.0030.00817.18
7.3.00.0040.00817.17
7.2.330.0070.01016.64
7.2.320.0100.01016.80
7.2.310.0070.01116.91
7.2.300.0120.00616.88
7.2.290.0150.00916.42
7.2.260.0060.01215.85
7.2.250.0080.00915.99
7.2.240.0050.01015.72
7.2.230.0070.00815.72
7.2.220.0060.00815.63
7.2.210.0050.00615.75
7.2.200.0080.00715.75
7.2.190.0080.00515.55
7.2.180.0050.00915.59
7.2.170.0040.01015.64
7.2.160.0010.01115.61
7.2.150.0040.00817.55
7.2.140.0050.00817.59
7.2.130.0020.01117.43
7.2.120.0020.01217.49
7.2.110.0090.00517.45
7.2.100.0060.00917.31
7.2.90.0090.00517.44
7.2.80.0080.00717.49
7.2.70.0070.00817.46
7.2.60.0070.00717.33
7.2.50.0050.00917.19
7.2.40.0030.00917.46
7.2.30.0050.00817.44
7.2.20.0060.00917.38
7.2.10.0020.01117.37
7.2.00.0100.00717.30
7.1.330.0050.01016.28
7.1.320.0040.01216.49
7.1.310.0060.00816.35
7.1.300.0080.00816.40
7.1.290.0070.00616.42
7.1.280.0040.00916.27
7.1.270.0040.00816.43
7.1.260.0070.00716.35
7.1.250.0040.00816.42
7.1.240.0070.00716.54
7.1.230.0050.01016.55
7.1.220.0030.01216.63
7.1.210.0030.01116.61
7.1.200.0060.00816.32
7.1.190.0130.00216.62
7.1.180.0080.00816.60
7.1.170.0040.01116.46
7.1.160.0090.00516.33
7.1.150.0010.00816.60
7.1.140.0020.01416.48
7.1.130.0030.00916.62
7.1.120.0050.00916.61
7.1.110.0080.00616.58
7.1.100.0080.00316.75
7.1.90.0060.00916.60
7.1.80.0020.01316.78
7.1.70.0040.00616.71
7.1.60.0080.00817.44
7.1.50.0070.01016.76
7.1.40.0040.00916.65
7.1.30.0050.00716.51
7.1.20.0070.00916.64
7.1.10.0030.00716.63
7.1.00.0080.02718.62
7.0.330.0040.00816.32
7.0.320.0030.01016.27
7.0.310.0080.00316.11
7.0.300.0070.00516.27
7.0.290.0070.00516.37
7.0.280.0070.00716.12
7.0.270.0050.00916.28
7.0.260.0050.01116.13
7.0.250.0030.00816.24
7.0.240.0020.01216.23
7.0.230.0080.00316.26
7.0.220.0050.01016.36
7.0.210.0030.01216.24
7.0.200.0090.00616.33
7.0.190.0040.00916.17
7.0.180.0060.00916.44
7.0.170.0070.00616.41
7.0.160.0050.00916.33
7.0.150.0040.00916.16
7.0.140.0040.03218.34
7.0.130.0060.00716.39
7.0.120.0030.00816.24
7.0.110.0070.01116.24
7.0.100.0020.01816.37
7.0.90.0060.00916.31
7.0.80.0050.01016.19
7.0.70.0030.01116.39
7.0.60.0070.02917.54
7.0.50.0050.03116.92
7.0.40.0060.02716.34
7.0.30.0200.01916.23
7.0.20.0120.02516.31
7.0.10.0010.03816.30
7.0.00.0070.03316.28
5.6.400.0020.01315.29
5.6.390.0020.01115.12
5.6.380.0080.00615.15
5.6.370.0090.00515.35
5.6.360.0060.00715.21
5.6.350.0050.01015.26
5.6.340.0120.00215.23
5.6.330.0080.00515.17
5.6.320.0070.00515.24
5.6.310.0100.00515.33
5.6.300.0100.00515.02
5.6.290.0070.00615.21
5.6.280.0040.03017.11
5.6.270.0030.00915.29
5.6.260.0080.01015.26
5.6.250.0050.01115.21
5.6.240.0080.00815.34
5.6.230.0020.01215.47
5.6.220.0090.00515.12
5.6.210.0080.03116.94
5.6.200.0100.02916.17
5.6.190.0070.03316.90
5.6.180.0210.02217.03
5.6.170.0140.03117.02
5.6.160.0080.03116.85
5.6.150.0040.02216.16
5.6.140.0070.01816.31
5.6.130.0030.03316.25
5.6.120.0020.02617.30
5.6.110.0060.02817.10
5.6.100.0060.03417.14
5.6.90.0070.03217.14
5.6.80.0060.03216.89
5.6.70.0070.00915.02
5.6.60.0090.00715.10
5.6.50.0050.00815.18
5.6.40.0070.00415.09
5.6.30.0070.00515.18
5.6.20.0030.01015.20
5.6.10.0070.00715.02
5.6.00.0000.01215.10
5.5.380.0070.00815.07
5.5.370.0080.00814.93
5.5.360.0050.00815.09
5.5.350.0120.03116.84
5.5.340.0060.03316.08
5.5.330.0090.03016.85
5.5.320.0120.03616.75
5.5.310.0120.01916.88
5.5.300.0070.03316.10
5.5.290.0070.03116.03
5.5.280.0100.02117.07
5.5.270.0030.02816.96
5.5.260.0050.02316.99
5.5.250.0070.02016.94
5.5.240.0120.02216.75
5.5.230.0050.00715.03
5.5.220.0050.00914.97
5.5.210.0030.01015.08
5.5.200.0030.01214.90
5.5.190.0100.00215.20
5.5.180.0090.00414.89
5.5.170.0050.01014.96
5.5.160.0050.00815.08
5.5.150.0050.01014.88
5.5.140.0060.01015.08
5.5.130.0050.00515.02
5.5.120.0060.00815.14
5.5.110.0080.00615.01
5.5.100.0060.00915.03
5.5.90.0070.00814.99
5.5.80.0100.00315.04
5.5.70.0050.00914.91
5.5.60.0040.00915.08
5.5.50.0000.00815.04
5.5.40.0070.00715.04
5.5.30.0050.01014.81
5.5.20.0030.01014.78
5.5.10.0020.01014.97
5.5.00.0070.00714.95
5.4.450.0110.02415.00
5.4.440.0330.01615.00
5.4.430.0310.02815.07
5.4.420.0300.02214.95
5.4.410.0200.02414.94
5.4.400.0270.02314.86
5.4.390.0290.02114.84
5.4.380.0410.02114.69
5.4.370.0430.02214.65
5.4.360.0370.01714.69
5.4.350.0340.02114.74
5.4.340.0450.02414.65
5.4.330.0030.00512.58
5.4.320.0040.01912.60
5.4.310.0060.01712.68
5.4.300.0020.01912.63
5.4.290.0040.02012.63
5.4.280.0040.01712.59
5.4.270.0060.01612.65
5.4.260.0060.01512.66
5.4.250.0050.01812.56
5.4.240.0050.01812.55
5.4.230.0060.01512.52
5.4.220.0060.01612.56
5.4.210.0040.01712.65
5.4.200.0050.01812.58
5.4.190.0070.01512.55
5.4.180.0030.01812.53
5.4.170.0050.01712.57
5.4.160.0060.01712.56
5.4.150.0070.01512.64
5.4.140.0060.01812.48
5.4.130.0060.01612.48
5.4.120.0080.01312.46
5.4.110.0040.01712.47
5.4.100.0090.01412.47
5.4.90.0070.01712.48
5.4.80.0060.01812.42
5.4.70.0040.01812.47
5.4.60.0040.01512.44
5.4.50.0050.01512.52
5.4.40.0040.01512.51
5.4.30.0050.01912.46
5.4.20.0040.01712.48
5.4.10.0060.01712.50
5.4.00.0060.01612.30
5.3.290.0090.05112.88
5.3.280.0050.04212.81
5.3.270.0090.04512.82
5.3.260.0040.04412.82
5.3.250.0050.03912.82
5.3.240.0040.04812.82
5.3.230.0100.03712.82
5.3.220.0070.04612.78
5.3.210.0040.04112.79
5.3.200.0050.04812.78
5.3.190.0090.04012.78
5.3.180.0080.04412.78
5.3.170.0110.03812.78
5.3.160.0080.03812.78
5.3.150.0110.03312.78
5.3.140.0100.04112.77
5.3.130.0080.04212.76
5.3.120.0070.05712.76
5.3.110.0040.04112.76
5.3.100.0070.04012.25
5.3.90.0100.03512.23
5.3.80.0070.03612.22
5.3.70.0100.03412.23
5.3.60.0060.03912.21
5.3.50.0060.03612.16
5.3.40.0040.04212.16
5.3.30.0070.04112.12
5.3.20.0070.03911.90
5.3.10.0050.03511.86
5.3.00.0090.03311.85
5.2.170.0030.0329.36
5.2.160.0060.0289.35
5.2.150.0060.0299.36
5.2.140.0060.0299.35
5.2.130.0070.0269.31
5.2.120.0040.0299.31
5.2.110.0060.0279.31
5.2.100.0030.0299.31
5.2.90.0050.0289.31
5.2.80.0050.0299.30
5.2.70.0090.0259.30
5.2.60.0050.0299.26
5.2.50.0030.0319.23
5.2.40.0100.0239.20
5.2.30.0100.0249.18
5.2.20.0030.0309.19
5.2.10.0040.0299.11
5.2.00.0040.0308.97
5.1.60.0030.0268.26
5.1.50.0080.0258.26
5.1.40.0040.0268.23
5.1.30.0060.0278.59
5.1.20.0050.0258.61
5.1.10.0020.0288.33
5.1.00.0070.0238.33
5.0.50.0050.0196.80
5.0.40.0050.0186.66
5.0.30.0010.0336.49
5.0.20.0040.0186.45
5.0.10.0050.0246.43
5.0.00.0040.0326.43
4.4.90.0060.0194.78
4.4.80.0030.0144.75
4.4.70.0030.0164.76
4.4.60.0030.0154.76
4.4.50.0000.0184.77
4.4.40.0020.0264.71
4.4.30.0050.0134.76
4.4.20.0020.0164.85
4.4.10.0040.0144.85
4.4.00.0030.0254.76
4.3.110.0050.0144.67
4.3.100.0000.0184.67
4.3.90.0020.0154.64
4.3.80.0030.0254.59
4.3.70.0020.0164.63
4.3.60.0030.0154.63
4.3.50.0020.0164.63
4.3.40.0020.0254.54
4.3.30.0020.0163.31
4.3.20.0010.0203.29
4.3.10.0030.0203.23
4.3.00.0030.0236.72

preferences:
45.11 ms | 401 KiB | 5 Q