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);

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.00716.75
8.3.50.0100.00722.05
8.3.40.0150.00019.09
8.3.30.0120.00819.16
8.3.20.0000.00720.45
8.3.10.0040.00422.16
8.3.00.0070.00021.02
8.2.180.0040.01518.54
8.2.170.0090.01219.16
8.2.160.0120.00622.96
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0000.01018.16
8.2.110.0090.00020.79
8.2.100.0030.00718.28
8.2.90.0040.00419.47
8.2.80.0050.00317.97
8.2.70.0030.00517.63
8.2.60.0000.00918.05
8.2.50.0050.00318.07
8.2.40.0050.00518.16
8.2.30.0040.00418.24
8.2.20.0030.00617.99
8.2.10.0030.00518.37
8.2.00.0030.00517.91
8.1.280.0070.00725.92
8.1.270.0000.00919.08
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00024.16
8.1.230.0060.00619.34
8.1.220.0040.00417.89
8.1.210.0080.00018.77
8.1.200.0000.00917.50
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0000.00818.78
8.1.160.0040.00422.11
8.1.150.0050.00318.93
8.1.140.0000.00717.66
8.1.130.0030.00317.61
8.1.120.0040.00417.53
8.1.110.0070.00017.58
8.1.100.0040.00417.54
8.1.90.0040.00417.68
8.1.80.0040.00417.55
8.1.70.0030.00317.69
8.1.60.0030.00617.63
8.1.50.0030.00817.50
8.1.40.0020.00517.71
8.1.30.0060.00317.84
8.1.20.0040.00417.71
8.1.10.0040.00417.70
8.1.00.0040.00417.74
8.0.300.0040.00418.77
8.0.290.0060.00317.00
8.0.280.0070.00018.60
8.0.270.0000.00817.43
8.0.260.0070.00016.93
8.0.250.0070.00017.23
8.0.240.0030.00317.08
8.0.230.0000.00717.19
8.0.220.0000.00716.98
8.0.210.0040.00417.08
8.0.200.0040.00417.27
8.0.190.0070.00017.23
8.0.180.0040.00417.06
8.0.170.0040.00417.05
8.0.160.0040.00417.21
8.0.150.0050.00216.95
8.0.140.0030.00517.13
8.0.130.0060.00313.59
8.0.120.0030.00617.14
8.0.110.0000.00717.13
8.0.100.0040.00417.15
8.0.90.0070.00017.02
8.0.80.0090.00617.17
8.0.70.0080.00016.96
8.0.60.0040.00417.07
8.0.50.0000.00716.98
8.0.30.0120.00717.13
8.0.20.0080.01117.42
8.0.10.0040.00417.22
8.0.00.0060.01217.08
7.4.330.0020.00215.29
7.4.320.0040.00416.66
7.4.300.0030.00316.82
7.4.290.0070.00016.64
7.4.280.0070.00016.71
7.4.270.0070.00016.81
7.4.260.0030.00516.60
7.4.250.0040.00416.86
7.4.240.0020.00516.76
7.4.230.0000.00716.54
7.4.220.0070.01116.83
7.4.210.0060.00916.84
7.4.200.0070.00016.55
7.4.160.0120.00316.84
7.4.150.0120.01317.40
7.4.140.0100.01017.86
7.4.130.0120.00816.65
7.4.120.0100.00916.75
7.4.110.0040.01416.70
7.4.100.0120.01216.86
7.4.90.0110.00616.73
7.4.80.0060.01219.39
7.4.70.0080.00816.62
7.4.60.0140.00316.71
7.4.50.0000.00816.75
7.4.40.0070.01316.72
7.4.30.0060.00916.79
7.4.10.0110.01114.84
7.4.00.0040.01114.92
7.3.330.0030.00313.29
7.3.320.0020.00313.36
7.3.310.0050.00316.36
7.3.300.0000.00716.37
7.3.290.0070.00916.47
7.3.280.0070.00816.53
7.3.270.0100.01317.40
7.3.260.0100.01416.80
7.3.250.0160.00516.64
7.3.240.0110.00616.52
7.3.230.0200.00316.59
7.3.210.0090.00916.60
7.3.200.0150.00619.39
7.3.190.0120.00316.71
7.3.180.0090.00616.60
7.3.170.0160.00316.71
7.3.160.0060.01016.64
7.3.130.0100.01014.98
7.3.120.0050.01015.11
7.3.110.0070.00814.91
7.3.100.0050.00814.96
7.3.90.0080.00615.02
7.3.80.0020.01014.84
7.3.70.0050.00914.83
7.3.60.0070.00514.84
7.3.50.0050.00814.82
7.3.40.0090.00614.83
7.3.30.0070.00715.00
7.3.20.0030.00916.52
7.3.10.0040.00716.73
7.3.00.0050.00916.71
7.2.330.0060.01216.67
7.2.320.0090.00916.84
7.2.310.0080.01616.65
7.2.300.0080.00816.88
7.2.290.0090.01016.58
7.2.260.0130.00614.88
7.2.250.0050.01414.92
7.2.240.0060.00815.17
7.2.230.0060.01014.95
7.2.220.0070.00814.95
7.2.210.0060.00815.19
7.2.200.0050.01014.99
7.2.190.0060.00714.90
7.2.180.0080.00514.97
7.2.170.0040.00914.92
7.2.160.0030.00914.89
7.2.150.0060.01016.81
7.2.140.0050.00817.02
7.2.130.0070.00817.04
7.2.120.0010.01416.88
7.2.110.0020.01216.88
7.2.100.0060.00816.83
7.2.90.0070.00816.90
7.2.80.0060.00617.01
7.2.70.0030.01116.90
7.2.60.0040.01017.00
7.2.50.0080.00616.96
7.2.40.0010.01516.95
7.2.30.0050.01016.93
7.2.20.0080.00616.88
7.2.10.0030.00916.72
7.2.00.0050.01017.45
7.1.330.0050.00915.78
7.1.320.0110.00315.86
7.1.310.0040.00815.89
7.1.300.0050.01015.87
7.1.290.0020.01115.84
7.1.280.0050.00715.85
7.1.270.0030.01115.72
7.1.260.0010.01015.96
7.1.250.0090.00415.95
7.1.240.0040.00915.71
7.1.230.0000.00915.88
7.1.220.0000.00915.67
7.1.210.0040.01215.68
7.1.200.0020.01115.81
7.1.190.0070.00315.87
7.1.180.0040.00715.76
7.1.170.0040.00715.70
7.1.160.0030.00915.79
7.1.150.0030.01315.71
7.1.140.0030.00615.71
7.1.130.0030.00916.01
7.1.120.0100.00315.77
7.1.110.0000.01316.02
7.1.100.0050.00617.13
7.1.90.0070.00415.70
7.1.80.0070.00615.99
7.1.70.0050.00716.70
7.1.60.0020.01317.56
7.1.50.0060.00516.19
7.1.40.0060.00615.85
7.1.30.0040.00415.59
7.1.20.0000.01116.03
7.1.10.0040.00415.70
7.1.00.0030.04319.28
7.0.330.0050.00515.54
7.0.320.0000.01015.43
7.0.310.0030.00615.46
7.0.300.0120.00315.07
7.0.290.0040.00815.39
7.0.280.0030.01015.48
7.0.270.0040.01215.38
7.0.260.0070.01015.50
7.0.250.0070.00415.40
7.0.240.0070.00715.46
7.0.230.0090.00415.49
7.0.220.0000.01315.43
7.0.210.0000.01415.59
7.0.200.0110.00415.24
7.0.190.0070.00715.43
7.0.180.0060.00615.48
7.0.170.0090.00315.53
7.0.160.0030.00915.62
7.0.150.0110.00415.50
7.0.140.0030.03318.88
7.0.130.0030.00615.43
7.0.120.0060.00615.63
7.0.110.0270.04517.77
7.0.100.0220.04617.81
7.0.90.0300.04317.82
7.0.80.0320.02917.88
7.0.70.0310.04217.73
7.0.60.0270.04517.76
7.0.50.0300.04118.02
7.0.40.0020.03416.86
7.0.30.0040.04316.94
7.0.20.0080.04216.72
7.0.10.0100.04116.84
7.0.00.0070.04516.87
5.6.400.0090.00614.39
5.6.390.0000.00914.50
5.6.380.0120.00014.49
5.6.370.0070.00714.34
5.6.360.0030.01314.30
5.6.350.0030.00914.33
5.6.340.0040.01114.60
5.6.330.0110.00414.54
5.6.320.0000.01014.56
5.6.310.0040.00714.32
5.6.300.0000.01014.28
5.6.290.0060.00314.37
5.6.280.0070.03717.56
5.6.270.0060.01014.32
5.6.260.0030.00614.59
5.6.250.0050.04617.56
5.6.240.0070.04717.43
5.6.230.0100.04117.57
5.6.220.0070.04117.69
5.6.210.0070.04117.50
5.6.200.0070.03817.63
5.6.190.0030.05017.61
5.6.180.0070.02817.91
5.6.170.0030.04617.69
5.6.160.0050.04717.69
5.6.150.0050.04517.82
5.6.140.0050.04117.73
5.6.130.0050.04517.76
5.6.120.0060.04417.79
5.6.110.0050.05017.87
5.6.100.0070.04217.74
5.6.90.0050.04217.98
5.6.80.0050.04017.65
5.6.70.0060.04317.25
5.6.60.0100.04217.38
5.6.50.0050.03517.34
5.6.40.0090.03417.45
5.6.30.0070.04017.32
5.6.20.0020.02917.40
5.6.10.0070.03717.54
5.6.00.0110.02317.47
5.5.380.0030.04417.22
5.5.370.0010.04617.31
5.5.360.0030.04717.36
5.5.350.0070.04517.39
5.5.340.0050.04717.47
5.5.330.0040.04417.63
5.5.320.0070.04717.61
5.5.310.0080.04717.54
5.5.300.0120.03617.52
5.5.290.0090.04417.49
5.5.280.0080.04517.55
5.5.270.0140.02717.36
5.5.260.0030.04917.57
5.5.250.0070.04517.54
5.5.240.0040.04417.20
5.5.230.0100.04317.34
5.5.220.0070.04417.11
5.5.210.0080.04017.20
5.5.200.0100.03817.01
5.5.190.0100.04217.03
5.5.180.0090.04317.27
5.5.170.0090.00513.74
5.5.160.0120.03017.19
5.5.150.0020.04517.18
5.5.140.0090.04417.21
5.5.130.0080.04017.26
5.5.120.0050.02317.13
5.5.110.0100.04017.25
5.5.100.0090.03316.94
5.5.90.0090.03916.94
5.5.80.0070.04217.26
5.5.70.0070.03517.18
5.5.60.0070.02417.22
5.5.50.0130.03517.07
5.5.40.0100.03817.24
5.5.30.0070.04017.15
5.5.20.0080.04217.09
5.5.10.0070.04617.16
5.5.00.0000.04317.15
5.4.450.0080.04214.99
5.4.440.0040.03215.19
5.4.430.0020.02815.14
5.4.420.0030.04514.92
5.4.410.0050.03715.10
5.4.400.0080.04015.04
5.4.390.0060.04114.89
5.4.380.0070.03814.88
5.4.370.0060.03814.97
5.4.360.0030.04214.99
5.4.350.0040.04414.84
5.4.340.0090.03515.02
5.4.330.0100.00310.71
5.4.320.0060.02614.82
5.4.310.0110.03215.03
5.4.300.0030.04214.95
5.4.290.0050.04014.96
5.4.280.0030.04114.99
5.4.270.0060.04015.14
5.4.260.0030.04514.78
5.4.250.0100.03514.89
5.4.240.0050.04215.06
5.4.230.0050.03715.10
5.4.220.0050.03414.97
5.4.210.0030.02415.02
5.4.200.0050.03814.98
5.4.190.0080.04114.93
5.4.180.0070.03914.92
5.4.170.0030.03015.04
5.4.160.0060.04014.88
5.4.150.0070.03014.84
5.4.140.0020.02913.77
5.4.130.0080.03813.59
5.4.120.0110.02013.80
5.4.110.0040.04113.81
5.4.100.0110.02113.77
5.4.90.0050.03313.63
5.4.80.0060.03413.54
5.4.70.0050.03913.49
5.4.60.0100.03813.48
5.4.50.0070.03813.70
5.4.40.0050.04113.61
5.4.30.0050.03913.58
5.4.20.0020.02513.65
5.4.10.0070.04013.69
5.4.00.0030.04113.43
5.3.290.0030.07314.77
5.3.280.0130.07014.61
5.3.270.0030.07314.67
5.3.260.0030.07714.62
5.3.250.0000.05014.70
5.3.240.0070.08014.53
5.3.230.0070.07714.61
5.3.220.0130.06714.63
5.3.210.0170.06314.58
5.3.200.0100.05714.54
5.3.190.0070.07714.57
5.3.180.0070.04314.71
5.3.170.0130.06714.53
5.3.160.0070.07314.59
5.3.150.0030.08014.57
5.3.140.0130.06314.48
5.3.130.0030.08014.61
5.3.120.0030.07314.71
5.3.110.0100.05314.64
5.3.100.0000.08014.01
5.3.90.0130.07014.16
5.3.80.0070.08014.04
5.3.70.0100.06314.19
5.3.60.0100.06714.02
5.3.50.0200.06014.04
5.3.40.0100.07313.87
5.3.30.0030.07313.87
5.3.20.0130.05013.65
5.3.10.0000.07713.73
5.3.00.0130.06713.65
5.2.170.0030.06311.06
5.2.160.0030.06711.07
5.2.150.0030.06711.17
5.2.140.0070.03711.21
5.2.130.0100.05711.12
5.2.120.0100.05711.19
5.2.110.0100.05311.13
5.2.100.0070.05711.33
5.2.90.0030.04011.13
5.2.80.0070.04311.11
5.2.70.0070.06311.16
5.2.60.0000.07011.18
5.2.50.0000.05011.11
5.2.40.0070.06011.23
5.2.30.0070.05710.97
5.2.20.0030.06011.07
5.2.10.0030.06311.03
5.2.00.0170.04711.04
5.1.60.0070.05010.09
5.1.50.0030.0539.97
5.1.40.0070.05010.32
5.1.30.0070.04010.43
5.1.20.0030.05310.54
5.1.10.0000.05310.34
5.1.00.0030.05710.12
5.0.50.0070.0308.53
5.0.40.0030.0408.48
5.0.30.0100.0478.48
5.0.20.0000.0478.48
5.0.10.0030.0408.48
5.0.00.0000.0638.48
4.4.90.0070.0278.48
4.4.80.0070.0208.48
4.4.70.0030.0238.48
4.4.60.0030.0208.48
4.4.50.0030.0378.48
4.4.40.0030.0508.48
4.4.30.0070.0308.48
4.4.20.0030.0378.48
4.4.10.0030.0338.48
4.4.00.0000.0538.48
4.3.110.0030.0378.48
4.3.100.0000.0208.48
4.3.90.0030.0308.48
4.3.80.0000.0538.48
4.3.70.0030.0338.48
4.3.60.0030.0338.48
4.3.50.0030.0338.48
4.3.40.0030.0538.48
4.3.30.0000.0378.48
4.3.20.0030.0308.48
4.3.10.0000.0378.48
4.3.00.0000.0378.48

preferences:
57.11 ms | 401 KiB | 5 Q