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[1]->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.0110.00418.53
8.3.50.0160.00622.11
8.3.40.0070.00718.95
8.3.30.0030.01019.34
8.3.20.0060.00320.29
8.3.10.0080.00020.77
8.3.00.0080.00019.93
8.2.180.0110.00418.66
8.2.170.0190.00022.96
8.2.160.0070.00720.60
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00422.30
8.2.110.0030.00621.24
8.2.100.0060.00617.97
8.2.90.0000.00919.42
8.2.80.0060.00317.97
8.2.70.0000.00917.75
8.2.60.0040.00418.15
8.2.50.0030.00718.07
8.2.40.0060.00318.34
8.2.30.0040.00419.43
8.2.20.0000.00817.87
8.2.10.0030.00518.27
8.2.00.0040.00417.87
8.1.280.0170.00325.92
8.1.270.0090.00024.00
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0030.00722.26
8.1.230.0040.00819.17
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0040.00417.25
8.1.190.0040.00417.48
8.1.180.0050.00319.42
8.1.170.0040.00418.59
8.1.160.0080.00022.20
8.1.150.0000.00718.93
8.1.140.0000.00717.49
8.1.130.0030.00318.01
8.1.120.0000.00717.71
8.1.110.0040.00417.69
8.1.100.0000.00717.72
8.1.90.0040.00417.54
8.1.80.0000.00717.55
8.1.70.0000.00817.61
8.1.60.0000.00817.73
8.1.50.0050.00317.59
8.1.40.0040.00417.74
8.1.30.0030.00617.71
8.1.20.0080.00017.90
8.1.10.0070.00017.86
8.1.00.0040.00817.71
8.0.300.0000.00818.77
8.0.290.0040.00417.00
8.0.280.0000.00718.61
8.0.270.0030.00317.36
8.0.260.0070.00017.43
8.0.250.0000.00717.20
8.0.240.0000.00817.08
8.0.230.0040.00417.23
8.0.220.0000.00717.14
8.0.210.0000.00817.13
8.0.200.0050.00317.05
8.0.190.0040.00317.20
8.0.180.0040.00417.03
8.0.170.0000.00817.03
8.0.160.0030.00316.97
8.0.150.0040.00416.95
8.0.140.0070.00017.06
8.0.130.0000.00613.53
8.0.120.0030.00617.06
8.0.110.0070.00017.16
8.0.100.0000.00717.21
8.0.90.0080.00017.11
8.0.80.0150.00817.06
8.0.70.0070.00017.20
8.0.60.0040.00417.12
8.0.50.0040.00417.02
8.0.30.0120.01117.27
8.0.20.0110.00917.40
8.0.10.0040.00417.23
8.0.00.0110.00817.03
7.4.330.0030.00315.25
7.4.320.0060.00016.85
7.4.300.0060.00016.74
7.4.290.0030.00516.72
7.4.280.0040.00716.80
7.4.270.0000.00816.89
7.4.260.0070.00016.71
7.4.250.0000.00716.75
7.4.240.0040.00416.65
7.4.230.0030.00316.82
7.4.220.0070.01316.93
7.4.210.0070.01016.67
7.4.200.0070.00016.81
7.4.160.0140.00616.63
7.4.150.0050.01817.40
7.4.140.0120.00517.86
7.4.130.0060.01116.62
7.4.120.0120.00616.87
7.4.110.0100.00716.83
7.4.100.0070.01016.89
7.4.90.0130.00616.77
7.4.80.0060.01216.76
7.4.70.0060.01016.65
7.4.60.0060.01216.76
7.4.50.0000.00816.56
7.4.40.0120.00616.70
7.4.30.0140.00416.75
7.4.00.0080.00815.18
7.3.330.0000.00513.37
7.3.320.0080.00013.29
7.3.310.0030.00316.52
7.3.300.0050.00216.50
7.3.290.0030.01016.48
7.3.280.0060.00816.53
7.3.270.0120.00817.40
7.3.260.0090.00916.55
7.3.250.0080.00816.62
7.3.240.0110.00716.49
7.3.230.0040.01416.67
7.3.210.0090.01216.63
7.3.200.0090.01419.39
7.3.190.0160.00616.68
7.3.180.0080.00816.47
7.3.170.0110.00616.57
7.3.160.0100.00716.71
7.3.120.0090.00614.80
7.3.110.0030.01615.17
7.3.100.0040.00714.97
7.3.90.0060.00914.92
7.3.80.0060.00614.86
7.3.70.0100.00314.97
7.3.60.0070.00714.71
7.3.50.0050.00814.87
7.3.40.0060.00814.98
7.3.30.0030.00915.04
7.3.20.0040.01116.82
7.3.10.0100.00616.71
7.3.00.0060.00616.75
7.2.330.0090.00916.86
7.2.320.0030.02016.80
7.2.310.0170.00016.71
7.2.300.0150.00316.90
7.2.290.0150.00916.77
7.2.250.0030.01415.29
7.2.240.0060.01215.03
7.2.230.0070.00715.22
7.2.220.0040.01214.99
7.2.210.0060.00914.80
7.2.200.0030.00915.28
7.2.190.0030.00615.04
7.2.180.0070.01015.32
7.2.170.0060.00915.09
7.2.110.0030.01316.81
7.2.100.0030.01016.86
7.2.90.0000.01516.65
7.2.80.0000.01416.77
7.2.70.0040.01116.77
7.2.60.0030.01217.03
7.2.50.0110.00617.14
7.2.40.0060.00617.05
7.2.30.0070.00717.08
7.2.20.0000.01716.93
7.2.10.0040.00816.95
7.2.00.0060.00818.17
7.1.330.0070.01015.64
7.1.320.0060.00615.80
7.1.310.0150.00016.01
7.1.300.0070.00715.98
7.1.290.0040.00715.79
7.1.280.0030.00915.92
7.1.270.0030.01315.97
7.1.260.0060.00915.73
7.1.230.0040.00815.82
7.1.220.0090.00015.65
7.1.210.0000.01215.87
7.1.200.0050.00815.73
7.1.190.0060.00615.84
7.1.180.0090.00015.95
7.1.170.0060.00615.80
7.1.160.0000.00815.95
7.1.150.0060.00616.00
7.1.140.0060.00615.66
7.1.130.0080.00615.75
7.1.120.0060.00615.58
7.1.110.0060.00915.70
7.1.100.0050.00717.06
7.1.90.0060.00615.78
7.1.80.0030.00615.83
7.1.70.0060.00616.46
7.1.60.0090.01017.67
7.1.50.0070.01416.38
7.1.40.0060.00915.55
7.1.30.0000.01415.79
7.1.20.0040.00715.63
7.1.10.0070.00415.48
7.1.00.0050.03919.10
7.0.310.0100.00315.22
7.0.300.0040.00715.48
7.0.290.0040.01115.67
7.0.280.0000.00815.12
7.0.270.0030.01015.36
7.0.260.0000.00815.33
7.0.250.0040.01115.62
7.0.240.0030.01215.48
7.0.230.0080.00315.23
7.0.220.0030.01015.45
7.0.210.0030.01015.47
7.0.200.0080.00115.97
7.0.190.0030.00715.38
7.0.180.0000.01215.33
7.0.170.0000.01215.73
7.0.160.0060.00615.21
7.0.150.0030.00715.54
7.0.140.0030.04018.83
7.0.130.0040.00815.30
7.0.120.0000.01115.50
7.0.110.0100.00315.50
7.0.100.0050.00315.50
7.0.90.0060.00615.38
7.0.80.0060.00615.42
7.0.70.0070.00715.40
7.0.60.0020.04217.69
7.0.50.0050.04716.80
7.0.40.0070.02816.90
7.0.30.0330.03416.83
7.0.20.0150.02916.90
7.0.10.0050.02616.93
7.0.00.0080.03816.83
5.6.380.0060.00314.73
5.6.370.0080.00414.51
5.6.360.0030.01014.59
5.6.350.0030.01014.69
5.6.340.0110.00314.70
5.6.330.0090.00014.50
5.6.320.0110.00414.64
5.6.310.0000.00914.70
5.6.300.0130.00014.67
5.6.290.0080.00414.51
5.6.280.0020.04117.82
5.6.270.0050.00314.56
5.6.260.0030.00914.33
5.6.250.0070.00714.46
5.6.240.0030.00714.35
5.6.230.0050.00314.44
5.6.220.0000.00814.11
5.6.210.0050.04317.56
5.6.200.0060.04316.36
5.6.190.0030.03517.40
5.6.180.0150.02817.73
5.6.170.0170.04017.62
5.6.160.0090.02317.52
5.6.150.0050.04616.24
5.6.140.0050.04216.18
5.6.130.0120.03816.29
5.6.120.0060.04317.65
5.6.110.0070.04617.62
5.6.100.0050.03717.90
5.6.90.0110.04517.78
5.6.80.0080.03317.47
5.6.70.0070.00414.11
5.6.60.0070.00714.31
5.6.50.0090.00314.46
5.6.40.0000.00814.29
5.6.30.0000.01214.15
5.6.20.0090.00314.23
5.6.10.0040.00714.19
5.6.00.0050.00314.09
5.5.380.0070.00412.79
5.5.370.0090.00312.79
5.5.360.0030.00712.79
5.5.350.0080.03716.62
5.5.340.0070.04115.42
5.5.330.0040.04016.53
5.5.320.0150.03616.58
5.5.310.0150.03816.59
5.5.300.0100.03315.46
5.5.290.0080.02315.38
5.5.280.0110.04316.79
5.5.270.0020.02516.84
5.5.260.0020.02816.85
5.5.250.0070.04516.66
5.5.240.0080.02616.53
5.5.230.0040.00412.79
5.5.220.0060.00712.79
5.5.210.0030.00312.79
5.5.200.0030.00612.79
5.5.190.0030.00612.79
5.5.180.0060.00612.79
5.5.170.0080.00414.20
5.5.160.0000.00812.79
5.5.150.0050.00012.79
5.5.140.0000.01012.79
5.5.130.0060.00612.79
5.5.120.0000.00812.79
5.5.110.0000.00712.79
5.5.100.0040.00412.79
5.5.90.0000.00812.79
5.5.80.0060.00012.79
5.5.70.0070.00312.79
5.5.60.0040.00412.79
5.5.50.0060.00312.79
5.5.40.0100.00312.79
5.5.30.0060.00312.79
5.5.20.0000.00712.79
5.5.10.0070.00012.79
5.5.00.0040.00412.79
5.4.450.0120.02416.04
5.4.440.0080.02616.22
5.4.430.0160.02516.20
5.4.420.0140.03016.17
5.4.410.0150.02316.07
5.4.400.0090.02715.98
5.4.390.0160.02616.00
5.4.380.0120.02316.00
5.4.370.0190.02616.00
5.4.360.0170.03715.93
5.4.350.0210.03615.96
5.4.340.0180.03215.93
5.4.330.0070.00712.79
5.4.320.0150.04115.93
5.4.310.0220.03215.93
5.4.300.0160.02615.90
5.4.290.0170.03816.04
5.4.280.0130.02015.96
5.4.270.0150.03315.97
5.4.260.0210.02116.03
5.4.250.0140.03415.93
5.4.240.0230.03015.90
5.4.230.0180.03616.05
5.4.220.0120.02616.04
5.4.210.0190.02716.04
5.4.200.0120.04515.92
5.4.190.0190.03916.04
5.4.180.0200.03715.88
5.4.170.0140.04315.97
5.4.160.0120.03015.99
5.4.150.0120.02516.02
5.4.140.0160.01914.65
5.4.130.0200.03014.73
5.4.120.0110.02514.55
5.4.110.0100.02314.59
5.4.100.0180.01814.65
5.4.90.0230.03314.61
5.4.80.0190.02214.68
5.4.70.0190.03014.65
5.4.60.0170.03914.51
5.4.50.0160.02114.61
5.4.40.0210.03114.55
5.4.30.0200.03314.67
5.4.20.0090.02714.66
5.4.10.0160.03014.64
5.4.00.0210.03114.32
5.3.290.0150.03413.69
5.3.280.0180.03513.68
5.3.270.0130.04013.79
5.3.260.0140.03313.65
5.3.250.0140.01813.69
5.3.240.0180.03813.67
5.3.230.0170.03613.69
5.3.220.0130.04013.69
5.3.210.0190.02213.69
5.3.200.0210.02213.69
5.3.190.0190.02313.67
5.3.180.0150.03813.73
5.3.170.0190.03013.64
5.3.160.0250.02813.74
5.3.150.0180.02613.64
5.3.140.0160.01813.65
5.3.130.0140.04113.68
5.3.120.0120.03313.75
5.3.110.0150.03913.75
5.3.100.0150.03513.47
5.3.90.0170.02513.49
5.3.80.0120.03213.40
5.3.70.0130.02813.49
5.3.60.0230.03213.45
5.3.50.0150.03613.36
5.3.40.0140.03913.38
5.3.30.0160.03513.34
5.3.20.0130.03613.34
5.3.10.0150.03313.21
5.3.00.0200.02713.23
5.2.170.0170.02811.98
5.2.160.0110.01612.05
5.2.150.0180.02712.08
5.2.140.0120.02611.96
5.2.130.0140.03212.01
5.2.120.0160.03011.96
5.2.110.0120.03011.94
5.2.100.0140.01911.99
5.2.90.0100.01711.92
5.2.80.0070.01912.01
5.2.70.0100.01611.91
5.2.60.0140.02911.92
5.2.50.0130.02811.89
5.2.40.0150.02611.89
5.2.30.0120.02811.95
5.2.20.0070.03511.88
5.2.10.0150.02811.93
5.2.00.0100.02711.78
5.1.60.0130.02611.48
5.1.50.0070.02811.48
5.1.40.0100.02811.48
5.1.30.0120.02311.60
5.1.20.0100.01911.66
5.1.10.0150.02111.48
5.1.00.0110.02611.48
5.0.50.0090.01211.48
5.0.40.0080.01211.48
5.0.30.0100.03111.48
5.0.20.0080.02311.48
5.0.10.0070.01711.48
5.0.00.0070.03011.48
4.4.90.0090.01711.48
4.4.80.0020.02411.48
4.4.70.0130.01311.48
4.4.60.0030.01911.48
4.4.50.0050.01811.48
4.4.40.0050.02411.48
4.4.30.0090.01511.48
4.4.20.0060.02011.48
4.4.10.0020.01911.48
4.4.00.0040.01611.48
4.3.110.0080.01911.48
4.3.100.0060.01611.48
4.3.90.0080.01711.48
4.3.80.0080.02411.48
4.3.70.0030.01311.48
4.3.60.0030.01911.48
4.3.50.0070.01911.48
4.3.40.0050.02711.48
4.3.30.0030.01011.48
4.3.20.0030.02211.48
4.3.10.0060.01811.48
4.3.00.0080.00711.48

preferences:
31.84 ms | 401 KiB | 5 Q