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); echo $movies->movie[0]->plot; echo $movies->movie[0]->plot2;

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.0190.00416.75
8.3.50.0110.00621.99
8.3.40.0100.01019.15
8.3.30.0040.01119.25
8.3.20.0000.00820.46
8.3.10.0050.00322.04
8.3.00.0050.00321.15
8.2.180.0120.00418.54
8.2.170.0140.00718.94
8.2.160.0120.00622.96
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0100.00018.05
8.2.110.0060.00320.64
8.2.100.0070.00418.28
8.2.90.0030.00519.40
8.2.80.0050.00317.97
8.2.70.0020.00717.88
8.2.60.0030.00718.30
8.2.50.0060.00318.07
8.2.40.0030.00918.47
8.2.30.0040.00418.34
8.2.20.0040.00417.91
8.2.10.0050.00318.31
8.2.00.0040.00417.92
8.1.280.0090.00925.92
8.1.270.0040.00418.99
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0060.00324.04
8.1.230.0120.00019.34
8.1.220.0080.00017.79
8.1.210.0080.00018.77
8.1.200.0030.00717.48
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0050.00318.56
8.1.160.0040.00422.21
8.1.150.0040.00418.94
8.1.140.0030.00517.64
8.1.130.0000.00617.94
8.1.120.0050.00317.47
8.1.110.0000.00717.69
8.1.100.0000.00817.51
8.1.90.0040.00417.65
8.1.80.0030.00517.56
8.1.70.0040.00417.67
8.1.60.0000.00817.77
8.1.50.0030.00617.55
8.1.40.0030.00617.74
8.1.30.0030.00517.71
8.1.20.0080.00017.65
8.1.10.0040.00417.76
8.1.00.0070.00017.74
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0000.00718.66
8.0.270.0000.00717.36
8.0.260.0000.00617.43
8.0.250.0040.00417.06
8.0.240.0070.00017.16
8.0.230.0030.00317.04
8.0.220.0040.00417.02
8.0.210.0040.00417.00
8.0.200.0070.00017.04
8.0.190.0080.00017.24
8.0.180.0040.00417.06
8.0.170.0050.00317.08
8.0.160.0000.00817.27
8.0.150.0070.00016.96
8.0.140.0050.00317.11
8.0.130.0030.00513.52
8.0.120.0000.00817.13
8.0.110.0030.00517.11
8.0.100.0040.00416.95
8.0.90.0000.00717.04
8.0.80.0000.02417.14
8.0.70.0050.00216.98
8.0.60.0070.00017.22
8.0.50.0000.00817.18
8.0.30.0270.03317.37
8.0.20.0110.00917.40
8.0.10.0000.00717.25
8.0.00.0060.01216.86
7.4.330.0030.00315.26
7.4.320.0000.00616.80
7.4.300.0040.00416.70
7.4.290.0030.00316.64
7.4.280.0070.00016.71
7.4.270.0030.00316.68
7.4.260.0030.00316.86
7.4.250.0050.00216.79
7.4.240.0000.00716.72
7.4.230.0070.00016.71
7.4.220.0100.01016.88
7.4.210.0030.01016.77
7.4.200.0070.00016.92
7.4.160.0090.00616.45
7.4.150.0130.00717.40
7.4.140.0080.01217.86
7.4.130.0050.01916.80
7.4.120.0080.01116.82
7.4.110.0090.01416.86
7.4.100.0170.00716.59
7.4.90.0080.00916.83
7.4.80.0150.00319.39
7.4.70.0110.00616.80
7.4.60.0060.00916.68
7.4.50.0030.00616.65
7.4.40.0130.00316.78
7.4.30.0090.00916.55
7.4.00.0070.00715.32
7.3.330.0050.00013.35
7.3.320.0000.00613.18
7.3.310.0030.00316.55
7.3.300.0030.00316.52
7.3.290.0120.00316.45
7.3.280.0100.00916.53
7.3.270.0240.00017.40
7.3.260.0070.01716.70
7.3.250.0100.00716.55
7.3.240.0100.01016.53
7.3.230.0100.01716.39
7.3.210.0030.01316.58
7.3.200.0150.00919.39
7.3.190.0100.00616.62
7.3.180.0050.01116.65
7.3.170.0070.01416.70
7.3.160.0180.00616.84
7.2.330.0070.01116.98
7.2.320.0090.00916.89
7.2.310.0080.00816.49
7.2.300.0060.01216.60
7.2.290.0130.01017.03
7.2.60.0060.00916.83
7.2.00.0080.00819.31
7.1.100.0060.00618.04
7.1.70.0030.00717.29
7.1.60.0090.00319.46
7.1.50.0080.00316.87
7.1.00.0100.06722.41
7.0.200.0100.00014.88
7.0.140.0070.04322.20
7.0.60.0070.08719.88
7.0.50.0130.07017.99
7.0.40.0070.09020.43
7.0.30.0400.05720.18
7.0.20.0330.07020.32
7.0.10.0130.03720.41
7.0.00.0070.07320.39
5.6.280.0030.07021.00
5.6.210.0100.07320.65
5.6.200.0070.08318.29
5.6.190.0070.05720.50
5.6.180.0500.07020.81
5.6.170.0200.04320.49
5.6.160.0100.08020.69
5.6.150.0100.07718.26
5.6.140.0100.06718.26
5.6.130.0030.07718.24
5.6.120.0200.07021.17
5.6.110.0070.08721.03
5.6.100.0030.07721.17
5.6.90.0030.06721.08
5.6.80.0030.08320.48
5.5.350.0230.04020.43
5.5.340.0170.07318.02
5.5.330.0130.07720.55
5.5.320.0330.06020.27
5.5.310.0230.07720.29
5.5.300.0000.05318.03
5.5.290.0030.08318.05
5.5.280.0070.03720.88
5.5.270.0100.04720.85
5.5.260.0100.07321.01
5.5.250.0030.04320.75
5.5.240.0070.02720.30
5.4.450.0430.06019.50
5.4.440.1070.05719.65
5.4.430.0070.05719.45
5.4.420.0370.05319.50
5.4.410.0830.06319.22
5.4.400.0970.04319.33
5.4.390.0970.06018.74
5.4.380.0970.06718.59
5.4.370.0970.04718.79
5.4.360.1100.04718.57
5.4.350.0930.06018.86
5.4.340.0930.05718.70
5.4.320.1030.05318.70
5.4.310.1000.05318.77
5.4.300.1130.04318.59
5.4.290.0930.05718.86
5.4.280.1000.06718.75
5.4.270.1070.05018.75
5.4.260.1030.05718.76
5.4.250.1030.06018.79
5.4.240.1000.06018.52
5.4.230.0930.05018.76
5.4.220.0930.06018.51
5.4.210.1030.05018.70
5.4.200.1070.05316.76
5.4.190.1030.05318.84
5.4.180.1230.04018.73
5.4.170.0870.05718.68
5.4.160.0970.05018.73
5.4.150.0900.05718.64
5.4.140.1070.04316.13
5.4.130.1100.05016.40
5.4.120.0970.05316.41
5.4.110.0970.05316.45
5.4.100.1000.08016.22
5.4.90.0970.04316.39
5.4.80.1000.05316.37
5.4.70.0970.05016.12
5.4.60.0970.04716.35
5.4.50.1100.04716.33
5.4.40.0870.05716.32
5.4.30.0930.04716.34
5.4.20.0930.05016.14
5.4.10.1030.05016.37
5.4.00.1030.04315.58
5.3.290.0870.05714.85
5.3.280.1000.05714.77
5.3.270.1000.05314.84
5.3.260.0970.07014.74
5.3.250.0870.05714.74
5.3.240.0900.06314.71
5.3.230.0930.06014.77
5.3.220.1030.04014.66
5.3.210.1000.05014.61
5.3.200.0870.05314.69
5.3.190.1030.05314.56
5.3.180.1030.06014.68
5.3.170.0970.05314.69
5.3.160.0870.05314.67
5.3.150.1000.05014.69
5.3.140.0930.05714.55
5.3.130.0970.05014.72
5.3.120.0900.06014.61
5.3.110.0830.06014.61
5.3.100.1000.04314.19
5.3.90.0830.05714.13
5.3.80.0900.05314.16
5.3.70.1300.06314.05
5.3.60.0970.04714.04
5.3.50.0930.04314.01
5.3.40.0970.05313.95
5.3.30.1100.06013.94
5.3.20.0970.04713.80
5.3.10.0930.05313.72
5.3.00.0830.05713.70
5.2.170.0800.05011.20
5.2.160.0900.04711.31
5.2.150.0770.04711.20
5.2.140.0970.05011.18
5.2.130.0730.04311.18
5.2.120.0830.05311.39
5.2.110.1070.03311.12
5.2.100.0930.03711.14
5.2.90.0830.04311.21
5.2.80.0830.05311.12
5.2.70.0970.05011.12
5.2.60.0930.05011.16
5.2.50.0930.05011.23
5.2.40.0630.04011.24
5.2.30.0670.04310.96
5.2.20.0600.04711.22
5.2.10.0670.04011.20
5.2.00.0670.05010.95
5.1.60.0670.04010.09
5.1.50.0670.03310.13
5.1.40.0630.03310.27
5.1.30.0600.04010.56
5.1.20.0570.04010.66
5.1.10.0600.04010.20
5.1.00.0630.03710.19
5.0.50.0300.0338.82
5.0.40.0370.0308.59
5.0.30.0430.0438.42
5.0.20.0370.0308.48
5.0.10.0370.0278.32
5.0.00.0370.0438.27
4.4.90.0370.0175.90
4.4.80.0300.0275.89
4.4.70.0330.0235.92
4.4.60.0330.0235.94
4.4.50.0370.0205.96
4.4.40.0570.0375.86
4.4.30.0370.0205.91
4.4.20.0400.0175.97
4.4.10.0300.0306.03
4.4.00.0300.0405.96
4.3.110.0330.0275.80
4.3.100.0270.0275.88
4.3.90.0330.0235.80
4.3.80.0400.0275.89
4.3.70.0370.0275.83
4.3.60.0300.0275.84
4.3.50.0370.0235.84
4.3.40.0370.0335.80
4.3.30.0170.0305.80
4.3.20.0230.0235.80
4.3.10.0100.0275.80
4.3.00.0130.0237.09

preferences:
63.67 ms | 401 KiB | 5 Q