3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace exussum12\CoverageChecker; use XMLReader; class XMLReport { protected $file; public function __construct($file) { $this->file = $file; } public function getCoveredLines() { $coveredLines = []; $reader = new XMLReader; $reader->open($this->file); while ($reader->read()) { if (( $reader->name === "file" && $reader->nodeType == XMLReader::ELEMENT )) { $currentFile = $reader->getAttribute('name'); $coveredLines[$currentFile] = []; } if (( $reader->name === "line" && $reader->getAttribute("type") == "stmt" )) { $coveredLines [$currentFile] [$reader->getAttribute('num')] = (int) $reader->getAttribute("count"); } } return $coveredLines; } }

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.10.0100.00317.09
8.3.140.0120.00318.46
8.3.130.0030.00518.22
8.3.120.0030.00620.71
8.3.110.0060.00320.94
8.3.100.0030.00616.66
8.3.90.0000.00726.77
8.3.80.0030.00616.63
8.3.70.0100.01016.58
8.3.60.0100.00518.30
8.3.50.0090.00722.11
8.3.40.0070.00718.36
8.3.30.0110.00418.59
8.3.20.0000.00820.79
8.3.10.0040.00421.85
8.3.00.0000.00819.56
8.2.250.0060.00916.61
8.2.240.0130.00618.78
8.2.230.0090.00022.58
8.2.220.0090.00024.06
8.2.210.0080.00626.77
8.2.200.0030.00618.42
8.2.190.0070.00716.58
8.2.180.0150.00325.92
8.2.170.0070.01418.77
8.2.160.0110.00422.96
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0060.00320.73
8.2.110.0030.00620.53
8.2.100.0040.00717.91
8.2.90.0040.00419.06
8.2.80.0080.00017.97
8.2.70.0030.00617.38
8.2.60.0080.00017.80
8.2.50.0050.00318.10
8.2.40.0080.00022.37
8.2.30.0040.00419.18
8.2.20.0060.00317.98
8.2.10.0040.00417.81
8.2.00.0000.00717.43
8.1.300.0150.00415.89
8.1.290.0030.00630.84
8.1.280.0130.00725.92
8.1.270.0040.00422.14
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00019.13
8.1.230.0080.00420.56
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0030.00617.23
8.1.190.0050.00317.38
8.1.180.0040.00418.10
8.1.170.0050.00318.46
8.1.160.0070.00022.05
8.1.150.0070.00018.82
8.1.140.0000.00919.39
8.1.130.0040.00417.33
8.1.120.0000.00717.24
8.1.110.0000.00717.25
8.1.100.0070.00017.35
8.1.90.0070.00017.22
8.1.80.0080.00017.38
8.1.70.0000.00717.30
8.1.60.0060.00317.41
8.1.50.0060.00317.29
8.1.40.0040.00417.40
8.1.30.0060.00317.46
8.1.20.0050.00217.46
8.1.10.0030.00517.35
8.1.00.0030.00617.22
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0000.00718.32
8.0.270.0030.00317.12
8.0.260.0000.00716.62
8.0.250.0000.00716.84
8.0.240.0060.00316.80
8.0.230.0030.00316.83
8.0.220.0000.00616.67
8.0.210.0040.00416.66
8.0.200.0080.00016.69
8.0.190.0040.00416.73
8.0.180.0000.00716.68
8.0.170.0000.00716.80
8.0.160.0040.00416.76
8.0.150.0040.00416.75
8.0.140.0070.00016.62
8.0.130.0000.00513.22
8.0.120.0040.00416.66
8.0.110.0000.00716.61
8.0.100.0040.00416.72
8.0.90.0000.00716.62
8.0.80.0070.01016.77
8.0.70.0000.00716.83
8.0.60.0040.00416.76
8.0.50.0000.00716.66
8.0.30.0140.00516.96
8.0.20.0080.01117.40
8.0.10.0000.00716.79
8.0.00.0090.01216.52
7.4.330.0050.00015.55
7.4.320.0030.00316.28
7.4.300.0060.00016.47
7.4.290.0030.00316.43
7.4.280.0050.00316.38
7.4.270.0060.00016.40
7.4.260.0030.00316.47
7.4.250.0000.00816.45
7.4.240.0000.00716.35
7.4.230.0070.00016.43
7.4.220.0120.00616.43
7.4.210.0080.00816.43
7.4.200.0070.00016.58
7.4.160.0100.00616.31
7.4.150.0070.01017.40
7.4.140.0080.01017.86
7.4.130.0080.01116.42
7.4.120.0070.01216.30
7.4.110.0090.00916.52
7.4.100.0140.01016.36
7.4.90.0110.00616.30
7.4.80.0100.00719.39
7.4.70.0100.00716.45
7.4.60.0130.00616.36
7.4.50.0110.00416.25
7.4.40.0170.00016.29
7.4.30.0100.00616.33
7.4.00.0030.00714.88
7.3.330.0050.00013.20
7.3.320.0000.00512.98
7.3.310.0040.00416.23
7.3.300.0030.00316.19
7.3.290.0050.00916.22
7.3.280.0090.00916.19
7.3.270.0120.00917.40
7.3.260.0140.00416.34
7.3.250.0090.01116.25
7.3.240.0120.00716.23
7.3.230.0110.00616.45
7.3.210.0040.01216.40
7.3.200.0120.00316.49
7.3.190.0120.00916.37
7.3.180.0060.00916.20
7.3.170.0150.00716.43
7.3.160.0030.01416.26
7.2.330.0090.00916.52
7.2.320.0130.01016.61
7.2.310.0170.00016.43
7.2.300.0120.01216.48
7.2.290.0130.00416.38
7.2.60.0000.01316.35
7.1.200.0070.00415.24
7.1.70.0000.00816.82
7.1.60.0030.00917.21
7.1.00.0070.06022.63
7.0.200.0000.01016.68
7.0.140.0100.05722.15
7.0.130.0130.05722.18
7.0.120.0100.06022.15
7.0.110.0230.04722.15
7.0.100.0070.06021.92
7.0.90.0130.05322.19
7.0.80.0170.06021.97
7.0.70.0030.06022.13
7.0.60.0130.05022.04
7.0.50.0100.06021.98
7.0.40.0000.06322.17
7.0.30.0130.05722.14
7.0.20.0170.05022.13
7.0.10.0170.04721.99
7.0.00.0100.08022.08
5.6.290.0000.06320.75
5.6.280.0200.04721.09
5.6.270.0070.06020.98
5.6.260.0130.05720.81
5.6.250.0070.06321.11
5.6.240.0200.05021.04
5.6.230.0170.05320.82
5.6.220.0030.06021.09
5.6.210.0030.06020.89
5.6.200.0330.05720.82
5.6.190.0130.06320.89
5.6.180.0130.05320.88
5.6.170.0130.05321.04
5.6.160.0100.06020.89
5.6.150.0030.06721.06
5.6.140.0130.05721.08
5.6.130.0200.04321.04
5.6.120.0230.05321.05
5.6.110.0070.05720.88
5.6.100.0170.07720.84
5.6.90.0070.05720.75
5.6.80.0130.05320.30
5.6.70.0000.06020.16
5.6.60.0030.06720.44
5.6.50.0170.05020.25
5.6.40.0200.04320.44
5.6.30.0130.05320.39
5.6.20.0130.05020.13
5.6.10.0130.04720.23
5.6.00.0170.04320.40

preferences:
28.03 ms | 403 KiB | 5 Q