3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <nowplaying-info-list> <nowplaying-info > <property name="track_title"><![CDATA[Song Title]]></property> <property name="track_album_name"><![CDATA[Song Album]]></property> <property name="track_artist_name"><![CDATA[Song Artist]]></property> </nowplaying-info> </nowplaying-info-list> XML; $sxml = simplexml_load_string($xml); $results = $sxml->xpath("/nowplaying-info-list/nowplaying-info/property[@name='track_artist_name']"); $artist = (string) $results[0]; echo $artist;

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.4.140.0130.01017.78
8.4.130.0070.00517.90
8.4.120.0070.00621.07
8.4.110.0080.00719.34
8.4.100.0150.00517.89
8.4.90.0140.00718.14
8.4.80.0100.01118.24
8.4.70.0050.00519.79
8.4.60.0140.00724.65
8.4.50.0140.00721.16
8.4.40.0140.00718.03
8.4.30.0090.00017.89
8.4.20.0220.00018.94
8.4.10.0100.00018.23
8.3.270.0080.01116.82
8.3.260.0110.00816.80
8.3.250.0110.00819.19
8.3.240.0050.00416.89
8.3.230.0100.00916.94
8.3.220.0100.00917.30
8.3.210.0120.00616.73
8.3.200.0100.00917.13
8.3.190.0130.00717.31
8.3.180.0090.00917.03
8.3.170.0050.00317.39
8.3.160.0060.01216.82
8.3.150.0070.01318.87
8.3.140.0150.00417.52
8.3.130.0060.00318.76
8.3.120.0100.01020.91
8.3.110.0090.00320.94
8.3.100.0060.00324.06
8.3.90.0070.00426.77
8.3.80.0040.00419.36
8.3.70.0090.00618.66
8.3.60.0070.01418.68
8.3.50.0080.00818.21
8.3.40.0090.00619.39
8.3.30.0000.01619.04
8.3.20.0050.00319.10
8.3.10.0060.00322.08
8.3.00.0000.00822.28
8.2.290.0080.01121.02
8.2.280.0110.00719.02
8.2.270.0120.00617.60
8.2.260.0040.00416.79
8.2.250.0090.00917.12
8.2.240.0040.00417.61
8.2.230.0100.00022.58
8.2.220.0030.01237.54
8.2.210.0130.00726.77
8.2.200.0030.00618.88
8.2.190.0170.00717.00
8.2.180.0100.01017.00
8.2.170.0080.00822.96
8.2.160.0060.01219.91
8.2.150.0060.00924.18
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0110.00420.16
8.2.110.0060.00322.33
8.2.100.0040.00818.09
8.2.90.0000.00821.57
8.2.80.0050.00319.16
8.2.70.0030.00517.88
8.2.60.0040.00418.18
8.2.50.0040.00718.07
8.2.40.0030.00618.53
8.2.30.0080.00018.54
8.2.20.0040.00418.48
8.2.10.0000.00818.29
8.2.00.0040.00419.66
8.1.330.0040.00718.75
8.1.320.0100.01016.38
8.1.310.0040.00418.82
8.1.300.0000.00818.97
8.1.290.0060.00330.84
8.1.280.0070.01425.92
8.1.270.0050.00319.28
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00324.19
8.1.230.0080.00419.46
8.1.220.0000.00817.88
8.1.210.0000.00818.77
8.1.200.0050.00517.60
8.1.190.0000.00817.60
8.1.180.0040.00418.10
8.1.170.0040.00418.82
8.1.160.0080.00019.08
8.1.150.0000.00719.16
8.1.140.0000.00718.99
8.1.130.0000.00720.24
8.1.120.0000.00717.61
8.1.110.0040.00417.79
8.1.100.0000.01017.82
8.1.90.0000.00917.83
8.1.80.0000.00817.82
8.1.70.0080.00017.59
8.1.60.0030.00618.01
8.1.50.0050.00317.95
8.1.40.0060.00617.91
8.1.30.0040.00418.01
8.1.20.0030.00518.10
8.1.10.0000.00817.81
8.1.00.0000.00817.96
8.0.300.0000.00718.77
8.0.290.0050.00317.25
8.0.280.0070.00018.76
8.0.270.0030.00317.54
8.0.260.0030.00320.50
8.0.250.0040.00417.40
8.0.240.0070.00317.20
8.0.230.0030.00317.40
8.0.220.0040.00417.14
8.0.210.0000.00817.10
8.0.200.0000.00717.16
8.0.190.0090.00017.18
8.0.180.0040.00417.12
8.0.170.0000.00817.17
8.0.160.0040.00417.23
8.0.150.0000.00717.06
8.0.140.0030.00417.22
8.0.130.0030.00313.74
8.0.120.0070.00017.08
8.0.110.0050.00317.23
8.0.100.0040.00417.13
8.0.90.0040.00417.20
8.0.80.0100.00717.19
8.0.70.0090.00017.11
8.0.60.0030.00317.21
8.0.50.0000.00717.07
8.0.30.0120.00617.43
8.0.20.0130.00717.45
8.0.10.0040.00417.30
8.0.00.0140.00417.04
7.4.330.0000.00615.55
7.4.320.0060.00017.00
7.4.300.0030.00316.99
7.4.290.0030.00316.98
7.4.280.0080.00016.88
7.4.270.0000.00716.89
7.4.260.0040.00416.77
7.4.250.0000.00816.87
7.4.240.0000.00716.87
7.4.230.0000.00716.71
7.4.220.0080.00016.96
7.4.210.0070.00916.93
7.4.200.0070.00016.74
7.4.160.0070.00816.86
7.4.140.0110.00817.86
7.4.130.0190.00616.91
7.4.120.0120.00916.87
7.4.110.0030.01416.83
7.4.100.0070.01416.96
7.4.90.0090.00916.84
7.4.80.0030.01319.39
7.4.70.0120.01116.88
7.4.60.0070.01016.75
7.4.50.0040.01116.85
7.4.40.0090.01216.80
7.4.00.0080.01114.94
7.3.330.0020.00313.50
7.3.320.0030.00313.62
7.3.310.0000.00716.53
7.3.300.0030.00316.60
7.3.290.0030.00316.53
7.3.280.0120.00916.59
7.3.260.0090.01416.88
7.3.240.0080.01016.87
7.3.230.0100.00616.70
7.3.210.0190.00916.77
7.3.200.0120.00316.88
7.3.190.0060.00916.99
7.3.180.0090.00616.60
7.3.170.0070.01016.83
7.3.160.0030.01316.74
7.3.120.0060.01114.92
7.3.110.0090.00714.95
7.3.100.0060.00915.05
7.3.90.0080.00415.10
7.3.80.0080.00415.05
7.3.70.0070.00714.90
7.3.60.0040.00815.09
7.3.50.0060.00614.96
7.3.40.0030.01214.95
7.3.30.0050.00814.97
7.3.20.0050.00816.79
7.3.10.0060.00916.79
7.3.00.0050.01016.76
7.2.330.0100.01016.95
7.2.320.0140.00316.72
7.2.310.0100.00716.95
7.2.300.0100.00717.16
7.2.290.0200.00016.77
7.2.250.0110.00715.29
7.2.240.0040.01315.32
7.2.230.0040.01115.26
7.2.220.0030.00815.06
7.2.210.0070.00815.31
7.2.200.0050.00915.13
7.2.190.0050.01015.09
7.2.180.0080.00615.13
7.2.170.0040.00915.09
7.2.160.0070.00815.13
7.2.150.0090.00516.99
7.2.140.0120.00116.96
7.2.130.0060.00717.00
7.2.120.0100.00316.90
7.2.110.0060.01016.86
7.2.100.0040.01116.79
7.2.90.0060.01016.86
7.2.80.0040.01116.93
7.2.70.0110.00616.93
7.2.60.0060.00916.82
7.2.50.0070.00717.01
7.2.40.0110.00416.91
7.2.30.0100.00316.87
7.2.20.0070.00916.85
7.2.10.0080.00716.89
7.2.00.0040.01016.91
7.1.330.0020.01215.95
7.1.320.0070.00615.83
7.1.310.0050.00716.07
7.1.300.0100.00415.82
7.1.290.0050.00815.88
7.1.280.0060.00615.79
7.1.270.0050.00715.90
7.1.260.0050.00816.03
7.1.250.0040.00815.84
7.1.210.0040.01115.59
7.1.200.0040.00815.97
7.1.190.0100.00315.70
7.1.180.0100.00315.57
7.1.170.0160.00015.64
7.1.160.0050.00915.79
7.1.150.0060.00615.74
7.1.140.0060.00915.93
7.1.130.0090.00315.66
7.1.120.0060.00915.69
7.1.110.0090.00615.91
7.1.100.0100.00315.84
7.1.90.0040.00415.85
7.1.80.0100.00315.69
7.1.70.0040.00815.84
7.1.60.0210.01233.54
7.1.50.0130.01733.78
7.1.40.0240.00933.71
7.1.30.0210.01233.73
7.1.20.0290.01033.64
7.1.10.0060.00915.70
7.1.00.0030.01215.84

preferences:
31.07 ms | 403 KiB | 5 Q