3v4l.org

run code in 300+ PHP versions simultaneously
<?php $total_seconds = 0; $dom = new DOMDocument(); $dom->loadXML(file_get_contents('https://www.googleapis.com/youtube/v3/playlistItems?part=id&maxResults=0&playlistId=PLsDlOcV-nPMxzr8X99EcHuQWnf81DCXKc&key=AIzaSyCA3cc5Gci2lI8dTW7wiEH_X8Pvcm-w6jo')); $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.0090.00618.31
8.3.50.0120.01021.02
8.3.40.0100.00618.96
8.3.30.0190.00318.88
8.3.20.0040.00420.29
8.3.10.0030.00623.53
8.3.00.0150.00422.42
8.2.180.0060.01017.00
8.2.170.0100.00622.96
8.2.160.0070.00720.35
8.2.150.0060.00324.18
8.2.140.0150.00324.66
8.2.130.0080.00826.16
8.2.120.0030.00617.63
8.2.110.0000.00921.12
8.2.100.0000.01217.91
8.2.90.0060.00317.75
8.2.80.0000.00817.97
8.2.70.0050.00317.80
8.2.60.0060.00317.93
8.2.50.0030.00618.10
8.2.40.0000.00820.42
8.2.30.0040.00717.95
8.2.20.0080.00017.84
8.2.10.0040.00417.98
8.2.00.0000.01118.16
8.1.280.0070.01425.92
8.1.270.0100.01020.38
8.1.260.0060.00626.35
8.1.250.0070.00328.09
8.1.240.0000.00923.74
8.1.230.0000.01119.08
8.1.220.0050.00517.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0050.00317.23
8.1.180.0000.00918.10
8.1.170.0000.01318.41
8.1.160.0030.00623.71
8.1.150.0040.00418.73
8.1.140.0040.00417.38
8.1.130.0070.00017.66
8.1.120.0070.00017.44
8.1.110.0030.00617.41
8.1.100.0030.00517.50
8.1.90.0000.00717.32
8.1.80.0040.00417.45
8.1.70.0050.00317.46
8.1.60.0000.00817.54
8.1.50.0000.00817.59
8.1.40.0040.00417.59
8.1.30.0060.00317.73
8.1.20.0040.00417.75
8.1.10.0040.00417.65
8.1.00.0040.00417.48
8.0.300.0040.00419.82
8.0.290.0000.00916.88
8.0.280.0030.00318.50
8.0.270.0030.00317.13
8.0.260.0070.00017.29
8.0.250.0040.00417.04
8.0.240.0040.00417.04
8.0.230.0000.00716.98
8.0.220.0030.00316.96
8.0.210.0080.00017.02
8.0.200.0030.00317.08
8.0.190.0080.00017.03
8.0.180.0000.00717.04
8.0.170.0050.00216.89
8.0.160.0040.00417.03
8.0.150.0000.00716.88
8.0.140.0050.00316.97
8.0.130.0040.00413.39
8.0.120.0040.00417.00
8.0.110.0030.00517.04
8.0.100.0070.00016.79
8.0.90.0030.00417.08
8.0.80.0090.00916.89
8.0.70.0000.00716.95
8.0.60.0070.00017.05
8.0.50.0040.00417.16
8.0.30.0060.01017.23
8.0.20.0110.00817.40
8.0.10.0050.00316.95
8.0.00.0040.01316.67
7.4.330.0000.00515.45
7.4.320.0000.00816.83
7.4.300.0000.00716.76
7.4.290.0080.00016.82
7.4.280.0030.00316.87
7.4.270.0030.00316.89
7.4.260.0070.00016.71
7.4.250.0000.00816.72
7.4.240.0040.00316.73
7.4.230.0040.00416.70
7.4.220.0100.00616.81
7.4.210.0100.01016.84
7.4.200.0040.00416.63
7.4.160.0130.00316.82
7.4.150.0070.01117.40
7.4.140.0160.00317.86
7.4.130.0140.00616.95
7.4.120.0110.00616.78
7.4.110.0140.01016.73
7.4.100.0180.00816.80
7.4.90.0110.00616.63
7.4.80.0060.01319.39
7.4.70.0100.01316.89
7.4.60.0130.00316.92
7.4.50.0030.00616.60
7.4.40.0060.01216.57
7.4.30.0150.00916.84
7.4.00.0000.01814.98
7.3.330.0060.00013.66
7.3.320.0070.00013.70
7.3.310.0070.00016.84
7.3.300.0030.00316.70
7.3.290.0100.00916.67
7.3.280.0080.00816.74
7.3.270.0120.00617.40
7.3.260.0090.01616.92
7.3.250.0080.01016.70
7.3.240.0030.01316.95
7.3.230.0120.01616.86
7.3.210.0110.00516.68
7.3.200.0130.00419.39
7.3.190.0120.00816.82
7.3.180.0120.00416.58
7.3.170.0030.01316.71
7.3.160.0030.01516.78
7.2.330.0030.01417.07
7.2.320.0100.00716.96
7.2.310.0110.01416.77
7.2.300.0080.00816.84
7.2.290.0120.00916.70
7.2.60.0090.00317.03
7.2.00.0060.00919.76
7.1.200.0060.00915.84
7.1.100.0030.00618.88
7.1.70.0000.01517.64
7.1.60.0060.01320.03
7.1.50.0140.01117.55
7.1.00.0030.04322.77
7.0.200.0610.00715.21
7.0.60.0070.07320.49
7.0.50.0070.04018.27
7.0.40.0070.08720.59
7.0.30.0330.07720.66
7.0.20.0200.06020.68
7.0.10.0170.05020.77
7.0.00.0100.07720.61
5.6.280.0030.06321.41
5.6.210.0130.07021.26
5.6.200.0030.09018.65
5.6.190.0130.04320.95
5.6.180.0170.04721.08
5.6.170.0300.08320.93
5.6.160.0030.07020.92
5.6.150.0100.06318.51
5.6.140.0070.06718.68
5.6.130.0100.05318.64
5.6.120.0100.07321.41
5.6.110.0170.03321.47
5.6.100.0100.06721.40
5.6.90.0130.07721.35
5.6.80.0000.08720.91
5.6.70.4370.04020.97
5.5.350.0170.07320.78
5.5.340.0030.05018.44
5.5.330.0070.04020.74
5.5.320.0230.03720.84
5.5.310.0230.06320.80
5.5.300.0000.08718.31
5.5.290.0070.08318.48
5.5.280.0030.04721.33
5.5.270.0130.03321.26
5.5.260.0100.08021.33
5.5.250.0130.06721.15
5.5.240.0070.04020.45
5.4.450.0200.05019.85
5.4.440.0200.05319.85
5.4.430.0130.05019.81
5.4.420.0100.06019.84
5.4.410.0170.04719.89
5.4.400.0130.05019.46
5.4.390.0170.05319.36
5.4.380.0430.05019.38
5.4.370.0130.05019.37
5.4.360.0130.06019.49
5.4.350.0200.05319.58
5.4.340.0170.05019.68
5.4.320.0130.05719.68
5.4.310.0500.05019.38
5.4.300.0500.05019.50
5.4.290.0100.05319.34
5.4.280.0130.05319.52
5.4.270.0100.05719.56
5.4.260.0100.05319.38
5.4.250.0200.04319.51
5.4.240.0300.05019.57
5.4.230.0300.04719.51
5.4.220.0500.06719.51
5.4.210.0470.04719.38
5.4.200.0200.04316.90
5.4.190.0100.05019.51
5.4.180.0170.04719.56
5.4.170.0100.06019.44
5.4.160.0400.05319.42
5.4.150.0430.04719.38
5.4.140.0100.05316.69
5.4.130.0100.04716.68
5.4.120.0270.05316.54
5.4.110.0630.03716.53
5.4.100.0300.05316.56
5.4.90.0170.04316.51
5.4.80.0200.05316.66
5.4.70.0800.06016.54
5.4.60.0000.06716.52
5.4.50.0000.06716.65
5.4.40.0030.03716.47
5.4.30.0130.07716.59
5.4.20.0270.03316.59

preferences:
58.02 ms | 401 KiB | 5 Q