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; $movies = new SimpleXMLElement($xmlstr); var_dump($movies->movie[0]->plot); //var_dump($movies->movie[0]->plot2[43]->hibeds[91]->erhui->herui->uiehr->f[4]); var_dump($movies->movie[0]->plot2[43]);

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.0040.01816.63
8.3.50.0150.00618.30
8.3.40.0110.00418.75
8.3.30.0070.00719.29
8.3.20.0000.00820.57
8.3.10.0080.00022.02
8.3.00.0040.00420.88
8.2.180.0060.01018.54
8.2.170.0100.01022.96
8.2.160.0070.00722.26
8.2.150.0060.00325.66
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0080.00417.93
8.2.110.0170.00320.60
8.2.100.0120.00018.47
8.2.90.0030.00519.46
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0070.00718.05
8.2.50.0040.00418.07
8.2.40.0070.00318.15
8.2.30.0020.00518.39
8.2.20.0090.00018.02
8.2.10.0040.00418.40
8.2.00.0040.00417.93
8.1.280.0100.01025.92
8.1.270.0030.00618.98
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00324.04
8.1.230.0110.00319.31
8.1.220.0080.00017.91
8.1.210.0030.00518.77
8.1.200.0060.00317.46
8.1.190.0050.00317.48
8.1.180.0030.00518.10
8.1.170.0030.00518.79
8.1.160.0000.00722.08
8.1.150.0040.00418.95
8.1.140.0040.00417.64
8.1.130.0030.00318.06
8.1.120.0040.00417.64
8.1.110.0040.00417.48
8.1.100.0000.00717.68
8.1.90.0030.00617.57
8.1.80.0050.00217.50
8.1.70.0070.00017.48
8.1.60.0060.00317.75
8.1.50.0040.00417.54
8.1.40.0000.00717.58
8.1.30.0000.00817.80
8.1.20.0040.00417.83
8.1.10.0040.00417.65
8.1.00.0040.00417.78
8.0.300.0070.00018.77
8.0.290.0040.00416.88
8.0.280.0070.00018.65
8.0.270.0040.00418.71
8.0.260.0000.00717.33
8.0.250.0000.00717.20
8.0.240.0000.00717.04
8.0.230.0000.00717.18
8.0.220.0040.00417.04
8.0.210.0000.00716.98
8.0.200.0040.00417.12
8.0.190.0050.00317.15
8.0.180.0040.00417.21
8.0.170.0040.00417.18
8.0.160.0030.00517.17
8.0.150.0040.00417.14
8.0.140.0080.00017.13
8.0.130.0040.00413.58
8.0.120.0050.00316.98
8.0.110.0000.00817.11
8.0.100.0030.00617.17
8.0.90.0040.00416.87
8.0.80.0060.01617.03
8.0.70.0040.00416.94
8.0.60.0040.00417.04
8.0.50.0040.00416.99
8.0.30.0090.00817.32
8.0.20.0160.00517.40
8.0.10.0040.00417.28
8.0.00.0070.01017.02
7.4.330.0000.00515.36
7.4.320.0030.00316.68
7.4.300.0000.00616.70
7.4.290.0040.00416.57
7.4.280.0000.00816.78
7.4.270.0000.00716.71
7.4.260.0040.00416.75
7.4.250.0070.00016.79
7.4.240.0050.00216.73
7.4.230.0030.00316.77
7.4.220.0130.01416.72
7.4.210.0070.00716.87
7.4.200.0000.00716.77
7.4.160.0100.00616.64
7.4.150.0090.00917.40
7.4.140.0060.01417.86
7.4.130.0110.01316.77
7.4.120.0100.00816.73
7.4.110.0070.01116.89
7.4.100.0120.01216.73
7.4.90.0110.00616.70
7.4.80.0030.01819.39
7.4.70.0130.00616.77
7.4.60.0170.00016.67
7.4.50.0030.00616.82
7.4.40.0070.01016.73
7.4.30.0100.01316.63
7.4.00.0110.00714.74
7.3.330.0030.00313.33
7.3.320.0050.00013.35
7.3.310.0030.00316.28
7.3.300.0000.00716.49
7.3.290.0070.00716.48
7.3.280.0060.01116.52
7.3.270.0120.01517.40
7.3.260.0190.00416.54
7.3.250.0100.00716.66
7.3.240.0110.00716.71
7.3.230.0170.01116.61
7.3.210.0110.00516.59
7.3.200.0100.00719.39
7.3.190.0060.00916.65
7.3.180.0160.00016.43
7.3.170.0130.00916.62
7.3.160.0060.01016.44
7.2.330.0090.00916.55
7.2.320.0070.01016.59
7.2.310.0080.00816.79
7.2.300.0110.00516.73
7.2.290.0040.01316.84
7.2.60.0070.00716.57
7.2.00.0080.00419.38
7.1.200.0000.01515.59
7.1.100.0030.00618.39
7.1.70.0030.00617.26
7.1.60.0070.01719.46
7.1.50.0060.00916.82
7.1.00.0030.07322.43
7.0.200.0260.00314.64
7.0.140.0030.06022.16
7.0.60.0030.08719.88
7.0.50.0100.07717.90
7.0.40.0030.04720.44
7.0.30.0200.06320.14
7.0.20.0300.05320.16
7.0.10.0070.04320.14
7.0.00.0100.08020.27
5.6.280.0030.07021.19
5.6.210.0000.04320.57
5.6.200.0070.05018.27
5.6.190.0100.05020.48
5.6.180.0330.07020.84
5.6.170.0400.06720.46
5.6.160.0100.08020.51
5.6.150.0070.08318.24
5.6.140.0030.08318.31
5.6.130.0030.08318.29
5.6.120.0130.07721.02
5.6.110.0030.07321.03
5.6.100.0000.08321.00
5.6.90.0130.06321.11
5.6.80.0070.05720.58
5.5.350.0370.06020.45
5.5.340.0030.05018.06
5.5.330.0100.07020.29
5.5.320.0070.07320.47
5.5.310.0370.04320.36
5.5.300.0100.03718.05
5.5.290.0000.07718.09
5.5.280.0070.08020.88
5.5.270.0070.05020.93
5.5.260.0070.04720.86
5.5.250.0130.07020.53
5.5.240.0000.08320.36
5.4.450.0700.06719.64
5.4.440.0970.06319.31
5.4.430.0700.05719.69
5.4.420.0770.06319.51
5.4.410.0770.05719.54
5.4.400.0800.05019.36
5.4.390.1000.05318.78
5.4.380.1000.06018.80
5.4.370.0930.06018.86
5.4.360.0900.06018.79
5.4.350.1100.05318.58
5.4.340.0930.05718.87
5.4.320.0970.05018.85
5.4.310.0870.05718.80
5.4.300.0830.06018.50
5.4.290.0900.05018.70
5.4.280.0870.06018.85
5.4.270.0900.05318.79
5.4.260.0970.04718.55
5.4.250.0970.05718.70
5.4.240.1000.05318.72
5.4.230.0930.05318.76
5.4.220.0870.05718.51
5.4.210.1130.05018.68
5.4.200.0930.05316.57
5.4.190.1100.04318.74
5.4.180.1000.06018.84
5.4.170.1030.05018.77
5.4.160.0930.05718.74
5.4.150.0800.06318.68
5.4.140.0870.05716.19
5.4.130.0900.04316.34
5.4.120.0900.05316.26
5.4.110.1030.04316.41
5.4.100.0970.05316.16
5.4.90.0970.06016.25
5.4.80.0900.05016.37
5.4.70.1130.04316.17
5.4.60.1070.04716.23
5.4.50.1000.05716.16
5.4.40.0830.05716.34
5.4.30.1070.04016.09
5.4.20.0930.05316.11
5.4.10.0900.06316.32
5.4.00.1500.05715.62
5.3.290.1070.06014.71
5.3.280.1070.05014.64
5.3.270.1200.05714.86
5.3.260.1130.05714.71
5.3.250.1100.05314.64
5.3.240.1070.05314.73
5.3.230.1070.04714.71
5.3.220.0900.06714.69
5.3.210.0930.06014.79
5.3.200.1030.04714.55
5.3.190.1000.06014.63
5.3.180.0930.04714.77
5.3.170.1100.04714.70
5.3.160.1000.05014.68
5.3.150.1470.05714.67
5.3.140.1070.05014.55
5.3.130.1100.06714.68
5.3.120.1130.05314.67
5.3.110.1070.05314.59
5.3.100.1000.04714.10
5.3.90.0970.05714.22
5.3.80.1000.05014.25
5.3.70.1070.04714.20
5.3.60.0930.05314.07
5.3.50.0930.06014.05
5.3.40.0870.05313.98
5.3.30.1000.04313.94
5.3.20.1030.05013.91
5.3.10.1000.05313.72
5.3.00.1000.05013.86
5.2.170.0770.04711.32
5.2.160.0830.04011.25
5.2.150.0770.04711.20
5.2.140.0730.04311.32
5.2.130.0730.04311.39
5.2.120.0800.03711.38
5.2.110.0630.05011.30
5.2.100.0830.03711.12
5.2.90.0800.04011.39
5.2.80.0800.05011.20
5.2.70.0870.04311.29
5.2.60.0730.05011.17
5.2.50.0770.04711.07
5.2.40.0700.04011.29
5.2.30.0670.04011.17
5.2.20.0600.05011.27
5.2.10.0670.03711.05
5.2.00.0830.06010.94
5.1.60.0570.03710.13
5.1.50.0600.03710.11
5.1.40.0800.03310.07
5.1.30.0530.04010.56
5.1.20.0600.03710.54
5.1.10.0730.03010.29
5.1.00.0630.03310.19
5.0.50.0270.0338.66
5.0.40.0370.0278.70
5.0.30.0300.0478.52
5.0.20.0330.0278.29
5.0.10.0430.0238.27
5.0.00.0300.0478.50
4.4.90.0400.0135.98
4.4.80.0330.0205.92
4.4.70.0300.0235.92
4.4.60.0330.0205.92
4.4.50.0370.0205.92
4.4.40.0430.0305.92
4.4.30.0330.0205.93
4.4.20.0270.0275.95
4.4.10.0300.0275.97
4.4.00.0330.0335.97
4.3.110.0370.0205.92
4.3.100.0430.0175.92
4.3.90.0370.0205.92
4.3.80.0330.0335.92
4.3.70.0400.0205.92
4.3.60.0330.0205.92
4.3.50.0300.0235.92
4.3.40.0400.0275.92
4.3.30.0170.0235.92
4.3.20.0130.0275.92
4.3.10.0130.0275.92
4.3.00.0070.04014.47

preferences:
43.28 ms | 400 KiB | 5 Q