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 = simplexml_load_string($xmlstr); var_dump($movies); foreach ($movies->movie->rating as $rating) { if ($rating["type"] == "stars") { var_dump((string) $rating); } }

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.63
8.3.50.0150.00422.13
8.3.40.0040.01219.14
8.3.30.0030.01219.21
8.3.20.0090.00020.48
8.3.10.0080.00020.69
8.3.00.0040.00419.63
8.2.180.0060.00925.92
8.2.170.0070.00719.13
8.2.160.0100.01020.72
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0080.00020.20
8.2.110.0030.00621.21
8.2.100.0080.00418.09
8.2.90.0050.00318.28
8.2.80.0050.00317.97
8.2.70.0000.00917.75
8.2.60.0000.00818.17
8.2.50.0030.00618.07
8.2.40.0120.00018.25
8.2.30.0070.00019.73
8.2.20.0050.00317.93
8.2.10.0040.00418.38
8.2.00.0030.00517.97
8.1.280.0110.00725.92
8.1.270.0000.00824.14
8.1.260.0030.00726.35
8.1.250.0040.00428.09
8.1.240.0000.00922.90
8.1.230.0040.00821.14
8.1.220.0080.00017.89
8.1.210.0080.00318.86
8.1.200.0030.00717.48
8.1.190.0040.00417.47
8.1.180.0000.00818.10
8.1.170.0040.00418.89
8.1.160.0070.00022.23
8.1.150.0030.00519.12
8.1.140.0030.00517.72
8.1.130.0030.00318.11
8.1.120.0000.00717.70
8.1.110.0000.00817.74
8.1.100.0040.00417.64
8.1.90.0050.00217.71
8.1.80.0040.00417.61
8.1.70.0000.00717.68
8.1.60.0030.00617.82
8.1.50.0040.00417.79
8.1.40.0040.00417.72
8.1.30.0080.00017.67
8.1.20.0040.00417.93
8.1.10.0040.00417.86
8.1.00.0000.00717.55
8.0.300.0000.00720.02
8.0.290.0040.00417.00
8.0.280.0000.00718.59
8.0.270.0000.00716.99
8.0.260.0070.00017.49
8.0.250.0030.00317.18
8.0.240.0000.00617.09
8.0.230.0050.00217.29
8.0.220.0030.00317.07
8.0.210.0000.00717.27
8.0.200.0030.00317.23
8.0.190.0050.00217.28
8.0.180.0040.00417.07
8.0.170.0080.00017.12
8.0.160.0050.00317.21
8.0.150.0040.00417.08
8.0.140.0000.00817.04
8.0.130.0030.00313.62
8.0.120.0040.00417.08
8.0.110.0000.00717.21
8.0.100.0000.00716.93
8.0.90.0040.00417.25
8.0.80.0030.01217.22
8.0.70.0050.00317.26
8.0.60.0000.00717.05
8.0.50.0050.00317.21
8.0.30.0070.01517.30
8.0.20.0090.01217.40
8.0.10.0080.00017.33
8.0.00.0110.00917.10
7.4.330.0050.00015.19
7.4.320.0000.00716.82
7.4.300.0030.00316.82
7.4.290.0070.00016.78
7.4.280.0050.00216.73
7.4.270.0030.00316.83
7.4.260.0000.00716.79
7.4.250.0000.01016.77
7.4.240.0020.00516.73
7.4.230.0000.00716.61
7.4.220.0100.01016.82
7.4.210.0080.00816.74
7.4.200.0000.00716.93
7.4.160.0140.01416.45
7.4.150.0160.01117.40
7.4.140.0140.00517.86
7.4.130.0100.00916.82
7.4.120.0100.00816.85
7.4.110.0090.00916.74
7.4.100.0090.00916.88
7.4.90.0110.00716.63
7.4.80.0080.01119.39
7.4.70.0080.01016.83
7.4.60.0100.01316.69
7.4.50.0000.00816.76
7.4.40.0070.01116.73
7.4.30.0100.00616.78
7.4.00.0070.01015.23
7.3.330.0000.00613.31
7.3.320.0050.00013.52
7.3.310.0070.00016.76
7.3.300.0030.00316.50
7.3.290.0080.01216.63
7.3.280.0050.01216.58
7.3.270.0140.00617.40
7.3.260.0090.00916.69
7.3.250.0120.00816.74
7.3.240.0100.00716.64
7.3.230.0090.00916.69
7.3.210.0110.00916.82
7.3.200.0090.01319.39
7.3.190.0100.00716.66
7.3.180.0070.01016.73
7.3.170.0130.01016.72
7.3.160.0060.00916.64
7.3.120.0090.00915.01
7.3.110.0070.01015.09
7.3.100.0050.01015.14
7.3.90.0040.01015.05
7.3.80.0000.01314.89
7.3.70.0000.01214.90
7.3.60.0060.00814.98
7.3.50.0020.01015.03
7.3.40.0090.00615.07
7.3.30.0060.00914.85
7.3.20.0090.00216.82
7.3.10.0060.00716.63
7.3.00.0110.00316.82
7.2.330.0060.01316.97
7.2.320.0090.00916.82
7.2.310.0150.00416.62
7.2.300.0110.00717.04
7.2.290.0190.00016.80
7.2.250.0030.01415.05
7.2.240.0090.00915.01
7.2.230.0100.00615.17
7.2.220.0050.00715.38
7.2.210.0070.00715.16
7.2.200.0050.01215.10
7.2.190.0040.01015.30
7.2.180.0060.00715.06
7.2.170.0030.00915.26
7.2.130.0110.00416.73
7.2.120.0110.00916.84
7.2.110.0070.00616.86
7.2.100.0260.00616.37
7.2.90.0170.00316.59
7.2.80.0180.00716.64
7.2.70.0230.01016.56
7.2.60.0030.01916.25
7.2.50.0140.01116.93
7.2.40.0150.00416.57
7.2.30.0250.00916.39
7.2.20.0460.00816.80
7.2.10.0180.00616.82
7.2.00.0270.00718.17
7.1.330.0110.00316.00
7.1.320.0040.00715.95
7.1.310.0030.01115.95
7.1.300.0030.01015.92
7.1.290.0080.00515.85
7.1.280.0070.00715.99
7.1.270.0060.00916.00
7.1.260.0030.01115.97
7.1.250.0120.00415.51
7.1.100.0050.00518.18
7.1.70.0000.01017.43
7.1.60.0040.01419.61
7.1.50.0260.01034.87
7.1.00.0030.07722.42
7.0.200.0030.00916.52
7.0.140.0000.07322.03
7.0.60.0030.09320.12
7.0.50.0100.07717.95
7.0.40.0070.07720.41
7.0.30.0400.04720.38
7.0.20.0170.04720.13
7.0.10.0170.07320.13
7.0.00.0070.04320.20
5.6.280.0130.06321.14
5.6.210.0000.09020.91
5.6.200.0000.05318.27
5.6.190.0030.09020.47
5.6.180.0400.04720.34
5.6.170.0170.05020.68
5.6.160.0030.04320.55
5.6.150.0100.05718.25
5.6.140.0130.04718.29
5.6.130.0030.05318.28
5.6.120.0130.05321.11
5.6.110.0170.07721.03
5.6.100.0030.06721.18
5.6.90.0030.04021.19
5.6.80.0170.07020.42
5.5.350.0170.08320.59
5.5.340.0030.04318.03
5.5.330.0000.04720.61
5.5.320.0000.08320.36
5.5.310.0270.06720.28
5.5.300.0030.04318.09
5.5.290.0100.08318.03
5.5.280.0070.05320.78
5.5.270.0200.07320.82
5.5.260.0030.04320.87
5.5.250.0070.07320.70
5.5.240.0130.06720.27
5.4.450.0230.02719.61
5.4.440.0670.04319.48
5.4.430.0970.07719.64
5.4.420.1030.05019.59
5.4.410.0700.05719.43
5.4.400.0730.06319.30
5.4.390.0830.04319.20
5.4.380.0270.05318.75
5.4.370.0400.07718.74
5.4.360.0230.04718.86
5.4.350.0270.06318.75
5.4.340.0270.08018.64
5.4.320.0100.05112.62
5.4.310.0070.04112.62
5.4.300.0070.04212.62
5.4.290.0090.05112.62
5.4.280.0130.04012.51
5.4.270.0080.04012.51
5.4.260.0080.05012.52
5.4.250.0110.04912.51
5.4.240.0100.04012.52
5.4.230.0060.04012.50
5.4.220.0090.04912.51
5.4.210.0070.04512.51
5.4.200.0100.04712.50
5.4.190.0060.05212.50
5.4.180.0100.04712.50
5.4.170.0060.03812.51
5.4.160.0070.03812.50
5.4.150.0120.04812.50
5.4.140.0100.05312.18
5.4.130.0090.05112.18
5.4.120.0060.05912.14
5.4.110.0100.05112.13
5.4.100.0100.04412.13
5.4.90.0110.04712.13
5.4.80.0060.04612.13
5.4.70.0120.04612.13
5.4.60.0070.04812.13
5.4.50.0050.03712.13
5.4.40.0070.03412.11
5.4.30.0060.03712.11
5.4.20.0100.03312.11
5.4.10.0090.03212.11
5.4.00.0090.03511.60
5.3.290.0060.04112.89
5.3.280.0050.03912.82
5.3.270.0050.04112.83
5.3.260.0080.03812.82
5.3.250.0100.03912.83
5.3.240.0060.04012.82
5.3.230.0070.03812.82
5.3.220.0060.03812.79
5.3.210.0100.04112.79
5.3.200.0100.05012.79
5.3.190.0080.04712.79
5.3.180.0110.04612.78
5.3.170.0110.04812.79
5.3.160.0120.04312.79
5.3.150.0050.05512.78
5.3.140.0060.04912.77
5.3.130.0090.05112.77
5.3.120.0090.05012.77
5.3.110.0090.04912.77
5.3.100.0120.03512.25
5.3.90.0080.03712.24
5.3.80.0050.04212.23
5.3.70.0110.03812.23
5.3.60.0040.04212.21
5.3.50.0040.04212.16
5.3.40.0080.04212.16
5.3.30.0020.03912.13
5.3.20.0050.03811.91
5.3.10.0070.04311.86
5.3.00.0120.03611.86
5.2.170.0060.0349.36
5.2.160.0050.0299.36
5.2.150.0060.0299.36
5.2.140.0060.0309.36
5.2.130.0040.0309.32
5.2.120.0050.0289.32
5.2.110.0040.0309.32
5.2.100.0040.0309.32
5.2.90.0050.0309.32
5.2.80.0080.0289.31
5.2.70.0080.0339.31
5.2.60.0040.0359.27
5.2.50.0040.0309.23
5.2.40.0050.0309.21
5.2.30.0050.0319.18
5.2.20.0010.0339.20
5.2.10.0080.0309.12
5.2.00.0050.0368.98
5.1.60.0030.0258.27
5.1.50.0020.0278.27
5.1.40.0040.0268.25
5.1.30.0040.0288.60
5.1.20.0050.0278.61
5.1.10.0050.0268.34
5.1.00.0050.0258.34
5.0.50.0040.0206.82
5.0.40.0010.0226.68
5.0.30.0030.0326.50
5.0.20.0040.0206.46
5.0.10.0020.0216.44
5.0.00.0040.0316.43
4.4.90.0040.0194.78
4.4.80.0000.0184.75
4.4.70.0050.0134.75
4.4.60.0040.0144.76
4.4.50.0010.0174.77
4.4.40.0040.0234.71
4.4.30.0030.0154.76
4.4.20.0020.0164.85
4.4.10.0030.0154.85
4.4.00.0060.0294.75
4.3.110.0030.0164.66
4.3.100.0070.0124.66
4.3.90.0050.0134.64
4.3.80.0030.0244.58
4.3.70.0010.0174.63
4.3.60.0040.0134.63
4.3.50.0070.0114.63
4.3.40.0040.0274.54
4.3.30.0010.0243.31
4.3.20.0010.0173.29
4.3.10.0020.0163.23
4.3.00.0070.01314.28

preferences:
68.56 ms | 401 KiB | 5 Q