3v4l.org

run code in 300+ PHP versions simultaneously
<?php $total_seconds = 0; $dom = new DOMDocument(); $dom->loadXML(file_get_contents('http://gdata.youtube.com/feeds/api/playlists/PLZlv_N0_O1gaCL2XjKluO7N2Pmmw9pvhE')); $xpath = new DOMXPath($dom); foreach ($xpath->query('//yt:duration/@seconds') as $duration) { $total_seconds += (int) $duration->value; } echo (int) ($total_seconds / 3600) . ':' . (int) ($total_seconds / 60) % 60 . ':' . $total_seconds % 60;

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.0200.00018.81
8.3.50.0110.00722.01
8.3.40.0160.00319.01
8.3.30.0140.00019.51
8.3.20.0030.00520.72
8.3.10.0050.00322.10
8.3.00.0040.00422.75
8.2.180.0100.01016.63
8.2.170.0000.01419.20
8.2.160.0110.00322.96
8.2.150.0000.00925.66
8.2.140.0080.00024.66
8.2.130.0110.00426.16
8.2.120.0040.00419.95
8.2.110.0030.00620.60
8.2.100.0070.00918.03
8.2.90.0040.00419.30
8.2.80.0080.00017.97
8.2.70.0000.00817.75
8.2.60.0040.00418.18
8.2.50.0040.00418.07
8.2.40.0000.00921.21
8.2.30.0070.00018.34
8.2.20.0000.00817.95
8.2.10.0030.00518.41
8.2.00.0000.00918.25
8.1.280.0220.00325.92
8.1.270.0090.00620.45
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00323.94
8.1.230.0110.00019.33
8.1.220.0030.00617.91
8.1.210.0080.00018.77
8.1.200.0070.00317.48
8.1.190.0030.00517.36
8.1.180.0000.00818.10
8.1.170.0000.00918.78
8.1.160.0040.00422.03
8.1.150.0030.00519.08
8.1.140.0050.00317.59
8.1.130.0030.00317.86
8.1.120.0000.00817.52
8.1.110.0070.00017.51
8.1.100.0080.00017.67
8.1.90.0000.00717.47
8.1.80.0040.00417.59
8.1.70.0000.00817.51
8.1.60.0080.00017.69
8.1.50.0030.00517.67
8.1.40.0040.00417.66
8.1.30.0000.00917.71
8.1.20.0000.00817.82
8.1.10.0000.00817.66
8.1.00.0040.00417.72
8.0.300.0000.00718.77
8.0.290.0000.00716.88
8.0.280.0000.00718.71
8.0.270.0070.00017.53
8.0.260.0030.00517.60
8.0.250.0030.00317.04
8.0.240.0000.00817.12
8.0.230.0000.00717.13
8.0.220.0030.00317.09
8.0.210.0080.00017.08
8.0.200.0030.00317.02
8.0.190.0080.00017.25
8.0.180.0070.00017.11
8.0.170.0040.00417.11
8.0.160.0040.00417.04
8.0.150.0000.00717.07
8.0.140.0000.00817.10
8.0.130.0060.00313.73
8.0.120.0060.00317.21
8.0.110.0040.00417.19
8.0.100.0070.00017.15
8.0.90.0030.00617.22
8.0.80.0070.01017.22
8.0.70.0030.00617.13
8.0.60.0040.00417.29
8.0.50.0040.00417.22
8.0.30.0080.01217.30
8.0.20.0110.00817.40
8.0.10.0040.00417.22
8.0.00.0090.00916.95
7.4.330.0050.00015.54
7.4.320.0000.00716.96
7.4.300.0060.00016.89
7.4.290.0000.00716.89
7.4.280.0050.00316.89
7.4.270.0020.00516.80
7.4.260.0000.00717.05
7.4.250.0050.00316.82
7.4.240.0060.00117.01
7.4.230.0040.00416.98
7.4.220.0100.01017.12
7.4.210.0100.00616.96
7.4.200.0030.00517.14
7.4.160.0080.00817.06
7.4.150.0120.00617.40
7.4.140.0120.00617.86
7.4.130.0080.01116.96
7.4.120.0110.01117.01
7.4.110.0190.00616.94
7.4.100.0060.01317.14
7.4.90.0070.01016.94
7.4.80.0100.01019.39
7.4.70.0120.00416.96
7.4.60.0090.00917.04
7.4.50.0090.00017.02
7.4.40.0040.01516.92
7.4.30.0160.00317.14
7.4.00.0050.01215.50
7.3.330.0070.00013.93
7.3.320.0000.00713.86
7.3.310.0040.00416.84
7.3.300.0080.00016.88
7.3.290.0070.01016.91
7.3.280.0070.01416.95
7.3.270.0080.01117.40
7.3.260.0090.00916.92
7.3.250.0140.00716.85
7.3.240.0110.00716.94
7.3.230.0030.02216.95
7.3.210.0090.00916.91
7.3.200.0090.00919.39
7.3.190.0070.01117.21
7.3.180.0080.01416.88
7.3.170.0090.00916.80
7.3.160.0180.00717.10
7.3.120.0030.01615.37
7.3.110.0090.00615.37
7.3.100.0090.00915.47
7.3.90.0030.00915.06
7.3.80.0090.00015.29
7.3.70.0030.01415.17
7.3.60.0100.00314.91
7.3.50.0060.00615.33
7.3.40.0000.00915.32
7.3.30.0040.00815.33
7.3.20.0120.00317.16
7.3.10.0060.00617.25
7.3.00.0100.00017.04
7.2.330.0110.00716.82
7.2.320.0120.00617.22
7.2.310.0140.00716.98
7.2.300.0120.00617.23
7.2.290.0000.01817.34
7.2.250.0100.01015.37
7.2.240.0100.01015.71
7.2.230.0100.00715.36
7.2.220.0130.00315.40
7.2.210.0000.01615.57
7.2.200.0060.00615.36
7.2.190.0030.00715.29
7.2.180.0040.00815.44
7.2.170.0080.00415.38
7.2.60.0060.00617.12
7.2.00.0050.01019.92
7.1.330.0100.00716.28
7.1.320.0000.01116.38
7.1.310.0000.01216.31
7.1.300.0060.00616.07
7.1.290.0030.01016.10
7.1.280.0070.00716.27
7.1.270.0160.00016.10
7.1.260.0080.00815.95
7.1.200.0060.00616.11
7.1.100.0070.01018.33
7.1.70.0090.00317.57
7.1.60.0170.01019.59
7.1.50.0140.01117.10
7.1.00.0000.07723.16
7.0.200.0090.00017.11
7.0.60.0100.07320.43
7.0.50.0100.04318.27
7.0.40.0000.05020.65
7.0.30.0230.08320.72
7.0.20.0330.06720.59
7.0.10.0230.04020.73
7.0.00.0200.06720.67
5.6.280.0030.04321.48
5.6.210.0030.07020.91
5.6.200.0070.04018.88
5.6.190.0030.05021.09
5.6.180.3370.04721.09
5.6.170.0300.05020.96
5.6.160.0070.06320.96
5.6.150.0030.07318.63
5.6.140.0000.04318.71
5.6.130.0030.07018.64
5.6.120.0030.05721.55
5.6.110.0030.08321.62
5.6.100.0100.08021.47
5.6.90.0030.06721.49
5.6.80.0100.08021.01
5.6.70.2530.05320.75
5.5.350.0170.07020.93
5.5.340.0070.07718.45
5.5.330.0070.08720.76
5.5.320.0370.07720.81
5.5.310.0170.08020.84
5.5.300.0070.03718.43
5.5.290.0070.06718.59
5.5.280.0000.04321.20
5.5.270.0000.04321.17
5.5.260.0070.08321.46
5.5.250.0100.08021.16
5.5.240.0100.07020.48
5.4.450.0870.04319.71
5.4.440.0230.05319.80
5.4.430.0200.05319.82
5.4.420.0270.04719.91
5.4.410.0230.07019.68
5.4.400.0230.04719.63
5.4.390.0270.05019.59
5.4.380.0200.05319.53
5.4.370.0070.06019.64
5.4.360.0270.04719.48
5.4.350.0400.05719.55
5.4.340.0330.06319.53
5.4.320.0370.04719.65
5.4.310.0600.04019.50
5.4.300.0330.05319.32
5.4.290.0170.06019.49
5.4.280.0470.05319.63
5.4.270.0170.05719.33
5.4.260.0200.05019.62
5.4.250.0170.05319.46
5.4.240.0130.07019.32
5.4.230.0300.06719.48
5.4.220.0230.05319.47
5.4.210.0230.06719.50
5.4.200.0100.05717.17
5.4.190.0130.06019.56
5.4.180.0300.05719.45
5.4.170.0200.06719.41
5.4.160.0230.05719.54
5.4.150.0600.03319.39
5.4.140.0200.05016.84
5.4.130.0200.04716.97
5.4.120.0200.04716.66
5.4.110.0330.05016.89
5.4.100.0370.04317.05
5.4.90.0570.05716.83
5.4.80.0200.04316.88
5.4.70.0100.06316.94
5.4.60.0270.04016.80
5.4.50.0230.04316.82
5.4.40.0200.05316.93
5.4.30.0270.06017.04
5.4.20.0570.04016.93
5.4.10.0130.05316.88
5.4.00.0130.05316.50
5.3.290.0070.06314.96
5.3.280.0130.05314.97
5.3.270.0270.06315.00
5.3.260.0570.05714.90
5.3.250.0300.05014.78
5.3.240.0130.05314.78
5.3.230.0230.04314.77
5.3.220.0100.05714.86
5.3.210.0530.05014.86
5.3.200.0230.04714.66
5.3.190.0270.05714.72
5.3.180.0330.05014.96
5.3.170.0200.05014.79
5.3.160.0330.05714.89
5.3.150.0130.06314.72
5.3.140.0270.04314.68
5.3.130.0170.05314.93
5.3.120.0200.05314.68
5.3.110.0330.03714.86
5.3.100.0130.05314.20
5.3.90.0200.04314.24
5.3.80.0200.04714.31
5.3.70.0230.04314.39
5.3.60.0130.05314.17
5.3.50.0300.05714.17
5.3.40.0130.07314.11
5.3.30.0300.05014.03
5.3.20.0400.04313.78
5.3.10.0200.04313.82
5.3.00.0200.04313.93
5.2.170.0070.05011.22
5.2.160.0100.04311.45
5.2.150.0130.04311.23
5.2.140.0200.04311.48
5.2.130.0170.04011.34
5.2.120.0070.05011.48
5.2.110.0130.04011.19
5.2.100.0200.03711.43
5.2.90.0230.03011.21
5.2.80.0200.03311.25
5.2.70.0130.04011.31
5.2.60.0170.04011.43
5.2.50.0130.04311.39
5.2.40.0170.03711.37
5.2.30.0130.04311.35
5.2.20.0130.03711.08
5.2.10.0100.04011.11
5.2.00.0230.03010.88
5.1.60.0100.03710.15
5.1.50.0070.04010.23
5.1.40.0100.03710.35
5.1.30.0100.04010.62
5.1.20.0130.03310.64
5.1.10.0230.03310.14
5.1.00.0100.04010.36
5.0.50.0100.0278.72
5.0.40.0000.0338.65
5.0.30.0070.0408.46
5.0.20.0100.0238.32
5.0.10.0030.0338.46
5.0.00.0100.0408.26
4.4.90.0070.0275.84
4.4.80.0000.0275.80
4.4.70.0000.0275.74
4.4.60.0100.0175.86
4.4.50.0070.0235.78
4.4.40.0070.0335.75
4.4.30.0100.0175.90
4.4.20.0030.0235.83
4.4.10.0070.0205.88
4.4.00.0100.0335.81
4.3.110.0030.0275.79
4.3.100.0100.0205.76
4.3.90.0070.0205.65
4.3.80.0100.0305.80
4.3.70.0100.0175.67
4.3.60.0100.0135.75
4.3.50.0070.0205.66
4.3.40.0030.0335.72
4.3.30.0000.0274.98
4.3.20.0000.0274.98
4.3.10.0070.0204.98
4.3.00.0070.0237.15

preferences:
57.91 ms | 401 KiB | 5 Q