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($xmlstr); $foo = isset($parsed->movie->characters[0]->character->name); var_dump($foo); $shipTo = (object) array('Street'=>'','City'=>'','State'=>'','Country'=>'','PostalCode'=>''); var_dump($shipTo); ?>

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.0100.00318.56
8.3.50.0170.00722.01
8.3.40.0070.00718.93
8.3.30.0100.00319.38
8.3.20.0030.00520.59
8.3.10.0000.00820.78
8.3.00.0040.00419.81
8.2.180.0120.00617.00
8.2.170.0090.00622.96
8.2.160.0100.00320.51
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.37
8.2.110.0030.00622.40
8.2.100.0070.00419.70
8.2.90.0000.00819.47
8.2.80.0040.00417.97
8.2.70.0040.00417.88
8.2.60.0000.00918.05
8.2.50.0030.00618.07
8.2.40.0030.00518.34
8.2.30.0000.00819.54
8.2.20.0000.00917.86
8.2.10.0050.00318.34
8.2.00.0040.00417.89
8.1.280.0150.00825.92
8.1.270.0060.00322.36
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00624.02
8.1.230.0060.00619.38
8.1.220.0030.00517.78
8.1.210.0030.00518.77
8.1.200.0110.00017.48
8.1.190.0080.00017.35
8.1.180.0080.00018.10
8.1.170.0030.00618.77
8.1.160.0040.00422.23
8.1.150.0040.00419.01
8.1.140.0000.00717.62
8.1.130.0070.00018.01
8.1.120.0040.00417.70
8.1.110.0080.00017.52
8.1.100.0000.00717.60
8.1.90.0040.00417.66
8.1.80.0030.00517.53
8.1.70.0030.00317.53
8.1.60.0000.00817.76
8.1.50.0000.00817.66
8.1.40.0040.00417.76
8.1.30.0030.00517.73
8.1.20.0040.00417.82
8.1.10.0040.00417.70
8.1.00.0030.00617.75
8.0.300.0000.00718.77
8.0.290.0080.00017.00
8.0.280.0040.00418.61
8.0.270.0040.00417.45
8.0.260.0000.00817.41
8.0.250.0030.00317.09
8.0.240.0030.00317.23
8.0.230.0070.00017.04
8.0.220.0040.00417.13
8.0.210.0000.00817.07
8.0.200.0040.00417.13
8.0.190.0000.00717.20
8.0.180.0000.00717.03
8.0.170.0040.00417.16
8.0.160.0080.00016.97
8.0.150.0000.00817.03
8.0.140.0070.00016.98
8.0.130.0030.00313.51
8.0.120.0080.00017.13
8.0.110.0000.00716.96
8.0.100.0040.00417.13
8.0.90.0000.00817.21
8.0.80.0040.01517.23
8.0.70.0040.00417.17
8.0.60.0040.00417.09
8.0.50.0000.00717.22
8.0.30.0120.01117.25
8.0.20.0070.01317.40
8.0.10.0030.00616.99
8.0.00.0140.00516.92
7.4.330.0000.00615.33
7.4.320.0000.00616.87
7.4.300.0000.00616.79
7.4.290.0000.00816.74
7.4.280.0060.00316.72
7.4.270.0070.00016.75
7.4.260.0000.00716.68
7.4.250.0070.00016.79
7.4.240.0020.00516.75
7.4.230.0040.00416.68
7.4.220.0120.00916.91
7.4.210.0090.00616.82
7.4.200.0050.00216.84
7.4.160.0110.00616.73
7.4.150.0040.01317.40
7.4.140.0140.00717.86
7.4.130.0120.00716.69
7.4.120.0090.00916.74
7.4.110.0100.00616.86
7.4.100.0120.00616.86
7.4.90.0200.00716.73
7.4.80.0080.01116.56
7.4.70.0030.01316.78
7.4.60.0030.01716.69
7.4.50.0060.00316.66
7.4.40.0080.01116.73
7.4.30.0060.01116.73
7.4.00.0090.00815.15
7.3.330.0020.00213.19
7.3.320.0090.00013.43
7.3.310.0030.00316.37
7.3.300.0000.00616.50
7.3.290.0030.01216.46
7.3.280.0080.01116.49
7.3.270.0070.01117.40
7.3.260.0130.00516.58
7.3.250.0130.00716.74
7.3.240.0120.00916.43
7.3.230.0100.00716.48
7.3.210.0100.01016.38
7.3.200.0150.00419.39
7.3.190.0140.00316.82
7.3.180.0120.00916.70
7.3.170.0140.00316.46
7.3.160.0150.00416.75
7.3.120.0060.01214.92
7.3.110.0070.01014.82
7.3.100.0140.00314.97
7.3.90.0110.00414.64
7.3.80.0030.01014.93
7.3.70.0080.00414.79
7.3.60.0000.01115.03
7.3.50.0100.00614.79
7.3.40.0000.01414.93
7.3.30.0070.01014.73
7.3.20.0100.00616.60
7.3.10.0140.00316.64
7.3.00.0070.00716.51
7.2.330.0090.00916.75
7.2.320.0130.00616.67
7.2.310.0140.00716.77
7.2.300.0090.00916.71
7.2.290.0090.01216.93
7.2.250.0040.01515.25
7.2.240.0070.01015.11
7.2.230.0090.00314.92
7.2.220.0030.01314.92
7.2.210.0040.01414.87
7.2.200.0040.01115.14
7.2.190.0000.01315.17
7.2.180.0060.01015.18
7.2.170.0040.01415.22
7.2.130.0070.00716.63
7.2.120.0060.00617.13
7.2.110.0070.01016.91
7.2.100.0030.00716.81
7.2.90.0030.01017.28
7.2.80.0030.00716.95
7.2.70.0030.00617.14
7.2.60.0050.00816.77
7.2.50.0030.01116.86
7.2.40.0100.00717.05
7.2.30.0070.00717.23
7.2.20.0090.00016.92
7.2.10.0070.00717.10
7.2.00.0040.00717.96
7.1.330.0000.01516.06
7.1.320.0040.01115.66
7.1.310.0150.00015.89
7.1.300.0030.01015.78
7.1.290.0040.00415.56
7.1.280.0070.01015.69
7.1.270.0030.01215.97
7.1.260.0110.00015.79
7.1.250.0030.00615.93
7.1.200.0000.01215.81
7.1.100.0040.00718.34
7.1.70.0000.00817.34
7.1.60.0070.01719.32
7.1.50.0100.01316.93
7.1.00.0000.08022.41
7.0.200.0030.00516.75
7.0.140.0030.07022.18
7.0.60.0200.07320.03
7.0.50.0030.08717.95
7.0.40.0030.08720.20
7.0.30.0300.07720.43
7.0.20.0270.07720.32
7.0.10.0030.09320.37
7.0.00.0000.06020.16
5.6.280.0100.06721.00
5.6.210.0100.03320.57
5.6.200.0100.06718.27
5.6.190.0070.08320.57
5.6.180.0430.05320.43
5.6.170.0300.08720.49
5.6.160.0100.08320.47
5.6.150.0030.04018.26
5.6.140.0070.05318.29
5.6.130.0030.09018.30
5.6.120.0030.06320.92
5.6.110.0100.07321.21
5.6.100.0100.08321.15
5.6.90.0100.08721.16
5.6.80.0100.07720.43
5.5.350.0230.08020.54
5.5.340.0030.05318.05
5.5.330.0070.06720.64
5.5.320.0400.07020.37
5.5.310.0100.04320.50
5.5.300.0030.06718.04
5.5.290.0170.07018.07
5.5.280.0270.06020.85
5.5.270.0100.04320.98
5.5.260.0170.07021.00
5.5.250.0100.07720.87
5.5.240.0070.03720.15
5.4.450.0130.05319.71
5.4.440.1370.05019.71
5.4.430.0770.06719.35
5.4.420.1030.05019.33
5.4.410.0870.04719.35
5.4.400.0700.05319.23
5.4.390.0900.05319.20
5.4.380.0530.06718.76
5.4.370.0470.07318.79
5.4.360.0170.06318.86
5.4.350.0470.07718.61
5.4.340.0530.04718.82
5.4.320.0090.04212.61
5.4.310.0050.04012.61
5.4.300.0070.04612.62
5.4.290.0070.03712.61
5.4.280.0090.04212.51
5.4.270.0120.04512.51
5.4.260.0040.04412.51
5.4.250.0020.04012.51
5.4.240.0080.03412.51
5.4.230.0080.03512.50
5.4.220.0070.03512.50
5.4.210.0080.04312.50
5.4.200.0080.04212.50
5.4.190.0080.05012.50
5.4.180.0060.04112.50
5.4.170.0100.05412.51
5.4.160.0060.04412.50
5.4.150.0060.04712.50
5.4.140.0070.04312.18
5.4.130.0060.04612.17
5.4.120.0100.04512.13
5.4.110.0040.03812.13
5.4.100.0090.03212.13
5.4.90.0050.03812.13
5.4.80.0050.03712.12
5.4.70.0060.03612.12
5.4.60.0060.03412.12
5.4.50.0070.03412.12
5.4.40.0050.03512.11
5.4.30.0070.03412.11
5.4.20.0040.03612.11
5.4.10.0070.03312.11
5.4.00.0080.03311.60
5.3.290.0070.03912.89
5.3.280.0070.03612.82
5.3.270.0070.03812.83
5.3.260.0080.03612.82
5.3.250.0050.03812.82
5.3.240.0100.03712.82
5.3.230.0080.04312.82
5.3.220.0080.03912.78
5.3.210.0040.04112.78
5.3.200.0060.03912.78
5.3.190.0050.04212.79
5.3.180.0060.04212.78
5.3.170.0110.03812.78
5.3.160.0120.04112.78
5.3.150.0070.04812.78
5.3.140.0080.03912.77
5.3.130.0080.04712.77
5.3.120.0080.04712.77
5.3.110.0140.03612.77
5.3.100.0050.03712.25
5.3.90.0080.04312.23
5.3.80.0110.03412.23
5.3.70.0060.03512.23
5.3.60.0050.03812.21
5.3.50.0070.03612.16
5.3.40.0100.03512.16
5.3.30.0050.03612.13
5.3.20.0070.03411.90
5.3.10.0050.03611.86
5.3.00.0030.03811.85
5.2.170.0040.0319.36
5.2.160.0050.0299.35
5.2.150.0050.0399.36
5.2.140.0080.0369.35
5.2.130.0040.0409.32
5.2.120.0070.0309.31
5.2.110.0040.0389.31
5.2.100.0040.0359.31
5.2.90.0060.0419.31
5.2.80.0070.0399.30
5.2.70.0020.0369.30
5.2.60.0060.0379.26
5.2.50.0060.0289.23
5.2.40.0060.0269.20
5.2.30.0020.0329.18
5.2.20.0040.0299.20
5.2.10.0040.0399.12
5.2.00.0050.0298.98
5.1.60.0030.0278.26
5.1.50.0030.0258.26
5.1.40.0060.0218.24
5.1.30.0050.0368.58
5.1.20.0060.0368.61
5.1.10.0060.0298.33
5.1.00.0100.0308.33
5.0.50.0060.0196.81
5.0.40.0080.0266.66
5.0.30.0020.0356.50
5.0.20.0040.0286.46
5.0.10.0040.0256.43
5.0.00.0040.0386.42
4.4.90.0030.0184.78
4.4.80.0050.0234.76
4.4.70.0020.0164.76
4.4.60.0050.0194.75
4.4.50.0040.0264.77
4.4.40.0050.0294.71
4.4.30.0030.0214.76
4.4.20.0060.0224.84
4.4.10.0060.0254.85
4.4.00.0050.0244.76
4.3.110.0070.0204.66
4.3.100.0020.0164.66
4.3.90.0020.0164.63
4.3.80.0050.0284.58
4.3.70.0050.0184.63
4.3.60.0030.0144.63
4.3.50.0030.0154.63
4.3.40.0010.0254.54
4.3.30.0040.0223.31
4.3.20.0010.0163.29
4.3.10.0030.0213.23
4.3.00.0030.0206.72

preferences:
38.63 ms | 401 KiB | 5 Q