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($xml); $foo = $parsed->movies->movie->foo->bar->baz; 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.0090.00618.43
8.3.50.0090.01221.89
8.3.40.0090.00618.73
8.3.30.0140.00018.92
8.3.20.0040.00420.29
8.3.10.0080.00020.41
8.3.00.0040.00419.66
8.2.180.0120.00316.88
8.2.170.0070.00722.96
8.2.160.0100.00319.21
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00522.09
8.2.110.0060.00322.21
8.2.100.0060.00617.91
8.2.90.0060.00318.95
8.2.80.0030.00517.97
8.2.70.0060.00317.50
8.2.60.0000.01017.66
8.2.50.0080.00018.07
8.2.40.0040.00418.09
8.2.30.0040.00419.27
8.2.20.0040.00417.83
8.2.10.0040.00418.18
8.2.00.0040.00417.85
8.1.280.0060.00925.92
8.1.270.0030.00621.95
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.91
8.1.230.0080.00418.97
8.1.220.0080.00017.74
8.1.210.0000.00918.77
8.1.200.0030.00617.23
8.1.190.0050.00317.09
8.1.180.0050.00318.10
8.1.170.0030.00918.47
8.1.160.0040.00422.00
8.1.150.0000.00718.82
8.1.140.0050.00217.37
8.1.130.0030.00317.86
8.1.120.0040.00417.41
8.1.110.0000.00717.42
8.1.100.0000.00717.44
8.1.90.0040.00417.36
8.1.80.0040.00417.43
8.1.70.0030.00317.42
8.1.60.0000.00817.54
8.1.50.0000.00817.47
8.1.40.0090.00017.47
8.1.30.0040.00417.44
8.1.20.0000.00817.56
8.1.10.0040.00417.43
8.1.00.0030.00717.49
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.39
8.0.270.0030.00317.07
8.0.260.0030.00317.16
8.0.250.0030.00316.98
8.0.240.0060.00016.83
8.0.230.0000.00716.85
8.0.220.0030.00316.91
8.0.210.0030.00316.90
8.0.200.0040.00416.89
8.0.190.0050.00316.92
8.0.180.0040.00416.90
8.0.170.0040.00416.98
8.0.160.0040.00416.92
8.0.150.0060.00316.92
8.0.140.0030.00316.89
8.0.130.0050.00013.26
8.0.120.0030.00616.85
8.0.110.0020.00516.80
8.0.100.0040.00416.96
8.0.90.0000.00716.84
8.0.80.0150.00616.90
8.0.70.0000.00716.85
8.0.60.0000.00816.94
8.0.50.0000.00716.72
8.0.30.0150.00517.01
8.0.20.0080.01117.40
8.0.10.0030.00516.96
8.0.00.0020.01616.60
7.4.330.0060.00015.11
7.4.320.0000.00616.49
7.4.300.0030.00316.61
7.4.290.0000.00716.50
7.4.280.0080.00316.59
7.4.270.0050.00216.50
7.4.260.0000.00616.64
7.4.250.0000.00816.46
7.4.240.0000.00716.59
7.4.230.0030.00316.64
7.4.220.0140.00416.69
7.4.210.0030.01116.66
7.4.200.0070.00016.66
7.4.160.0070.01416.61
7.4.150.0130.00617.40
7.4.140.0110.00817.86
7.4.130.0120.00516.50
7.4.120.0060.01316.53
7.4.110.0000.01616.53
7.4.100.0060.01316.50
7.4.90.0060.01216.70
7.4.80.0120.00616.68
7.4.70.0100.00716.63
7.4.60.0130.01016.55
7.4.50.0000.00816.59
7.4.40.0030.01316.25
7.4.30.0030.01316.75
7.4.00.0050.01215.15
7.3.330.0020.00213.06
7.3.320.0000.00513.23
7.3.310.0020.00516.04
7.3.300.0030.00316.12
7.3.290.0040.01116.35
7.3.280.0100.00616.19
7.3.270.0070.01017.40
7.3.260.0030.01316.36
7.3.250.0100.01016.34
7.3.240.0080.00816.20
7.3.230.0090.01516.43
7.3.210.0100.00716.32
7.3.200.0090.00919.39
7.3.190.0130.00316.27
7.3.180.0150.00016.48
7.3.170.0100.01316.45
7.3.160.0120.00416.43
7.3.120.0130.00314.84
7.3.110.0040.01215.02
7.3.100.0000.01614.91
7.3.90.0080.00814.79
7.3.80.0000.01214.77
7.3.70.0060.00614.86
7.3.60.0030.01014.66
7.3.50.0060.00914.81
7.3.40.0000.01114.79
7.3.30.0040.00714.80
7.3.20.0000.01516.65
7.3.10.0040.01116.50
7.3.00.0070.00316.72
7.2.330.0090.01216.54
7.2.320.0060.01216.49
7.2.310.0090.00916.62
7.2.300.0060.01616.60
7.2.290.0100.01316.72
7.2.250.0090.00914.57
7.2.240.0000.01614.72
7.2.230.0030.01214.99
7.2.220.0070.01015.21
7.2.210.0110.00415.19
7.2.200.0060.01214.89
7.2.190.0070.01015.13
7.2.180.0030.01314.86
7.2.170.0000.00914.74
7.2.160.0070.01114.71
7.2.150.0070.00716.76
7.2.140.0030.01016.77
7.2.130.0030.01116.81
7.2.120.0000.01016.99
7.2.110.0000.01516.82
7.2.100.0040.01216.61
7.2.90.0080.00816.88
7.2.80.0090.00316.64
7.2.70.0030.01716.67
7.2.60.0090.00716.92
7.2.50.0110.00716.85
7.2.40.0090.00616.88
7.2.30.0090.00616.75
7.2.20.0070.00716.82
7.2.10.0070.00416.73
7.2.00.0060.00817.93
7.1.330.0100.00715.70
7.1.320.0090.00615.68
7.1.310.0110.00015.53
7.1.300.0090.00415.51
7.1.290.0060.00615.63
7.1.280.0040.01115.68
7.1.270.0040.00415.81
7.1.260.0060.00315.53
7.1.250.0040.00715.64
7.1.240.0030.00715.77
7.1.230.0030.00615.69
7.1.220.0090.00315.70
7.1.210.0080.00315.76
7.1.200.0000.00815.74
7.1.190.0030.01415.80
7.1.180.0030.01415.63
7.1.170.0000.01115.91
7.1.160.0040.01115.54
7.1.150.0070.00715.79
7.1.140.0040.00715.87
7.1.130.0090.00315.80
7.1.120.0030.00915.70
7.1.110.0040.00715.84
7.1.100.0070.00717.14
7.1.90.0080.00815.83
7.1.80.0070.00715.64
7.1.70.0060.00316.32
7.1.60.0060.01217.57
7.1.50.0070.01216.26
7.1.40.0000.01115.90
7.1.30.0040.00815.69
7.1.20.0040.01415.70
7.1.10.0060.00915.71
7.1.00.0050.04219.15
7.0.330.0030.01015.13
7.0.320.0090.00615.39
7.0.310.0070.00715.26
7.0.300.0030.00615.34
7.0.290.0000.01115.33
7.0.280.0040.01115.57
7.0.270.0070.00715.27
7.0.260.0090.00315.49
7.0.250.0070.00415.24
7.0.240.0030.01015.51
7.0.230.0030.00815.58
7.0.220.0090.00315.30
7.0.210.0030.01015.32
7.0.200.0010.00915.95
7.0.190.0030.00915.40
7.0.180.0070.00315.43
7.0.170.0080.00415.36
7.0.160.0030.01015.37
7.0.150.0040.00915.34
7.0.140.0030.04318.59
7.0.130.0040.00415.35
7.0.120.0130.00015.16
7.0.110.0060.01215.25
7.0.100.0030.01015.22
7.0.90.0060.00615.35
7.0.80.0120.00315.32
7.0.70.0110.00315.48
7.0.60.0080.04317.74
7.0.50.0050.02116.58
7.0.40.0050.02316.85
7.0.30.0180.04216.86
7.0.20.0170.04616.82
7.0.10.0050.02916.86
7.0.00.0050.03716.67
5.6.400.0080.00414.51
5.6.390.0000.01313.93
5.6.380.0000.00814.15
5.6.370.0060.00914.45
5.6.360.0060.00314.21
5.6.350.0120.00314.36
5.6.340.0030.00614.31
5.6.330.0000.01414.39
5.6.320.0090.00314.31
5.6.310.0100.00314.10
5.6.300.0080.00014.26
5.6.290.0070.00714.05
5.6.280.0130.03217.59
5.6.270.0110.00414.47
5.6.260.0030.01214.35
5.6.250.0030.01514.23
5.6.240.0000.01514.06
5.6.230.0000.01014.33
5.6.220.0030.01514.16
5.6.210.0080.04317.29
5.6.200.0020.04016.30
5.6.190.0070.02317.20
5.6.180.0120.02517.30
5.6.170.0150.02917.24
5.6.160.0000.03617.45
5.6.150.0110.03816.16
5.6.140.0050.04516.15
5.6.130.0120.04216.25
5.6.120.0050.04917.79
5.6.110.0110.02217.67
5.6.100.0080.04317.53
5.6.90.0150.03817.72
5.6.80.0090.03417.28
5.6.70.0080.00614.10
5.6.60.0100.00313.97
5.6.50.0090.00614.02
5.6.40.0070.00714.21
5.6.30.0000.00814.19
5.6.20.0030.01314.14
5.6.10.0100.00314.07
5.6.00.0090.00913.98
5.5.380.0040.00713.83
5.5.370.0000.01514.12
5.5.360.0070.01014.26
5.5.350.0190.03917.18
5.5.340.0080.02716.10
5.5.330.0070.03017.07
5.5.320.0130.04517.10
5.5.310.0200.03717.15
5.5.300.0120.03315.99
5.5.290.0070.04716.05
5.5.280.0030.02617.43
5.5.270.0070.02317.47
5.5.260.0050.04617.54
5.5.250.0110.03917.45
5.5.240.0030.03217.15
5.5.230.0040.01513.83
5.5.220.0140.00013.89
5.5.210.0070.00313.94
5.5.200.0030.00913.93
5.5.190.0030.00714.03
5.5.180.0000.01414.01
5.5.170.0040.00814.16
5.5.160.0030.01213.92
5.5.150.0120.00614.14
5.5.140.0000.00913.90
5.5.130.0030.01213.86
5.5.120.0060.00614.32
5.5.110.0060.00914.05
5.5.100.0030.01313.63
5.5.90.0000.01214.12
5.5.80.0060.00313.68
5.5.70.0070.00713.70
5.5.60.0090.00614.11
5.5.50.0070.00713.82
5.5.40.0090.00613.91
5.5.30.0030.00613.99
5.5.20.0000.01014.14
5.5.10.0030.00614.21
5.5.00.0090.00614.02
5.4.450.0350.02815.18
5.4.440.0360.03615.05
5.4.430.0550.04515.23
5.4.420.0470.04015.02
5.4.410.0120.03015.18
5.4.400.0390.03015.14
5.4.390.0350.03415.06
5.4.380.0240.03214.76
5.4.370.0300.03214.68
5.4.360.0190.03814.83
5.4.350.0170.03814.79
5.4.340.0120.03514.84
5.4.330.0030.00610.89
5.4.320.0070.02311.68
5.4.310.0070.02211.67
5.4.300.0040.02411.70
5.4.290.0080.02111.67
5.4.280.0100.01811.62
5.4.270.0040.02411.62
5.4.260.0070.02111.62
5.4.250.0100.01811.73
5.4.240.0060.01911.62
5.4.230.0040.02411.62
5.4.220.0020.02411.62
5.4.210.0040.02511.62
5.4.200.0020.02511.62
5.4.190.0070.02411.62
5.4.180.0020.02411.62
5.4.170.0070.01911.62
5.4.160.0040.02011.62
5.4.150.0040.02211.62
5.4.140.0040.02211.47
5.4.130.0040.02211.46
5.4.120.0010.02711.43
5.4.110.0050.02111.43
5.4.100.0050.02211.43
5.4.90.0020.02511.43
5.4.80.0050.02211.43
5.4.70.0050.02111.43
5.4.60.0060.02511.43
5.4.50.0020.02711.43
5.4.40.0040.01911.42
5.4.30.0020.02711.42
5.4.20.0040.02511.42
5.4.10.0050.02311.42
5.4.00.0060.01911.17
5.3.290.0030.04012.80
5.3.280.0100.04412.71
5.3.270.0050.04012.73
5.3.260.0060.03912.72
5.3.250.0100.03712.72
5.3.240.0090.04412.72
5.3.230.0090.03912.70
5.3.220.0080.04012.68
5.3.210.0110.04112.68
5.3.200.0060.03512.68
5.3.190.0070.04112.67
5.3.180.0090.03612.67
5.3.170.0090.04312.67
5.3.160.0100.03812.68
5.3.150.0080.03912.67
5.3.140.0120.03312.66
5.3.130.0080.03812.65
5.3.120.0090.04412.66
5.3.110.0060.03712.66
5.3.100.0060.04012.12
5.3.90.0040.03812.09
5.3.80.0060.03512.08
5.3.70.0040.04012.07
5.3.60.0060.03712.06
5.3.50.0040.03912.00
5.3.40.0090.03712.00
5.3.30.0040.03711.95
5.3.20.0110.03311.73
5.3.10.0080.03611.70
5.3.00.0070.03611.69
5.2.170.0060.0299.19
5.2.160.0040.0329.19
5.2.150.0100.0319.19
5.2.140.0030.0369.18
5.2.130.0030.0399.15
5.2.120.0030.0339.14
5.2.110.0080.0349.15
5.2.100.0060.0329.14
5.2.90.0060.0299.15
5.2.80.0050.0329.14
5.2.70.0050.0299.14
5.2.60.0060.0289.10
5.2.50.0030.0309.07
5.2.40.0080.0299.04
5.2.30.0030.0309.02
5.2.20.0040.0309.04
5.2.10.0070.0278.95
5.2.00.0050.0308.81
5.1.60.0010.0288.10
5.1.50.0020.0298.10
5.1.40.0030.0308.08
5.1.30.0040.0318.43
5.1.20.0080.0238.45
5.1.10.0040.0288.18
5.1.00.0070.0288.17
5.0.50.0050.0226.65
5.0.40.0000.0306.51
5.0.30.0040.0316.32
5.0.20.0040.0196.29
5.0.10.0030.0276.27
5.0.00.0040.0306.26
4.4.90.0050.0144.78
4.4.80.0040.0154.76
4.4.70.0010.0194.75
4.4.60.0050.0174.75
4.4.50.0020.0154.77
4.4.40.0080.0284.71
4.4.30.0010.0174.76
4.4.20.0020.0214.84
4.4.10.0040.0184.85
4.4.00.0010.0264.76
4.3.110.0020.0214.67
4.3.100.0020.0194.66
4.3.90.0030.0144.63
4.3.80.0000.0274.59
4.3.70.0030.0134.63
4.3.60.0030.0134.63
4.3.50.0010.0164.63
4.3.40.0040.0224.54
4.3.30.0030.0173.31
4.3.20.0020.0183.29
4.3.10.0030.0193.23
4.3.00.0070.0237.58

preferences:
53.04 ms | 401 KiB | 5 Q