3v4l.org

run code in 300+ PHP versions simultaneously
<?php $svg = <<<SVG <g class="highcharts-legend" transform="translate(217,262)"> <g clip-path="url(#highcharts-9)"> <g transform="translate(0,0)"> <g class="highcharts-legend-item"><text x="21" y="15"><tspan>1</tspan></text><rect x="0" y="4" width="16" height="12" fill="#f7a35c"></rect></g> <g class="highcharts-legend-item"><text x="21" y="15"><tspan>2</tspan></text><rect x="0" y="4" width="16" height="12" fill="#f7a35c"></rect></g> <g class="highcharts-legend-item"><text x="21" y="15"><tspan>3</tspan></text><rect x="0" y="4" width="16" height="12" fill="#f7a35c"></rect></g> <g class="highcharts-legend-item"><text x="21" y="15"><tspan>4</tspan></text><rect x="0" y="4" width="16" height="12" fill="#f7a35c"></rect></g> <g class="highcharts-legend-item"><text x="21" y="15"><tspan>5</tspan></text><rect x="0" y="4" width="16" height="12" fill="#f7a35c"></rect></g> <g class="highcharts-legend-item"><text x="21" y="15"><tspan>6</tspan></text><rect x="0" y="4" width="16" height="12" fill="#f7a35c"></rect></g> <g class="highcharts-legend-item"><text x="21" y="15"><tspan>7</tspan></text><rect x="0" y="4" width="16" height="12" fill="#f7a35c"></rect></g> <g class="highcharts-legend-item"><text x="21" y="15"><tspan>8</tspan></text><rect x="0" y="4" width="16" height="12" fill="#f7a35c"></rect></g> <g class="highcharts-legend-item"><text x="21" y="15"><tspan>9</tspan></text><rect x="0" y="4" width="16" height="12" fill="#f7a35c"></rect></g> <g class="highcharts-legend-item"><text x="21" y="15"><tspan>10</tspan></text><rect x="0" y="4" width="16" height="12" fill="#f7a35c"></rect></g> </g> </g> </g> SVG; $dom = new DOMDocument; $dom->loadXML($svg); foreach($dom->getElementsByTagName('g') as $g){ if($g->getAttribute("class") === "highcharts-legend-item"){ $items []= $g; } } for($i = 5; $i < count($items); $i++){ $items[$i]->parentNode->removeChild($items[$i]); } echo $dom->saveXML($dom->documentElement);

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.5.10.0100.00920.44
8.5.00.0130.00820.30
8.4.150.0030.00014.05
8.4.140.0130.00817.59
8.4.130.0110.00917.73
8.4.120.0110.01020.66
8.4.110.0080.01020.89
8.4.100.0130.00819.13
8.4.90.0050.00519.29
8.4.80.0120.00718.02
8.4.70.0090.01118.12
8.4.60.0040.00519.02
8.4.50.0070.00819.14
8.4.40.0100.01017.82
8.4.30.0050.00317.96
8.4.20.0100.01019.70
8.4.10.0060.00319.82
8.3.280.0090.01218.79
8.3.270.0130.00716.96
8.3.260.0110.00916.89
8.3.250.0130.00719.27
8.3.240.0050.00316.75
8.3.230.0150.00517.09
8.3.220.0110.00719.20
8.3.210.0100.00917.03
8.3.200.0050.00416.88
8.3.190.0090.01016.79
8.3.180.0120.00716.74
8.3.170.0090.00617.61
8.3.160.0110.00718.55
8.3.150.0090.00918.68
8.3.140.0050.00317.11
8.3.130.0050.00318.89
8.3.120.0040.00420.89
8.3.110.0080.00020.94
8.3.100.0060.00324.06
8.3.90.0000.01526.77
8.3.80.0120.00018.55
8.3.70.0060.01317.11
8.3.60.0120.00616.88
8.3.50.0140.00722.18
8.3.40.0070.01119.21
8.3.30.0090.00919.12
8.3.20.0080.00019.48
8.3.10.0050.00322.24
8.3.00.0040.00421.14
8.2.290.0110.00820.82
8.2.280.0080.00118.81
8.2.270.0110.00717.42
8.2.260.0110.00019.21
8.2.250.0090.00017.09
8.2.240.0060.00319.53
8.2.230.0060.00322.58
8.2.220.0000.01837.54
8.2.210.0060.00326.77
8.2.200.0070.00318.68
8.2.190.0070.00716.88
8.2.180.0090.01316.88
8.2.170.0110.00722.96
8.2.160.0100.00320.75
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0070.00021.25
8.2.110.0110.00021.41
8.2.100.0060.00618.28
8.2.90.0000.00820.14
8.2.80.0030.00518.43
8.2.70.0030.00618.18
8.2.60.0050.00318.28
8.2.50.0030.00518.10
8.2.40.0060.00321.00
8.2.30.0030.00619.66
8.2.20.0040.00418.45
8.2.10.0030.00518.42
8.2.00.0000.00818.02
8.1.330.0110.00822.29
8.1.320.0110.00816.32
8.1.310.0040.00418.87
8.1.300.0060.00320.76
8.1.290.0060.00330.84
8.1.280.0130.00325.92
8.1.270.0040.00422.43
8.1.260.0090.00026.35
8.1.250.0060.00328.09
8.1.240.0000.00922.42
8.1.230.0040.00721.41
8.1.220.0050.00318.05
8.1.210.0040.00419.38
8.1.200.0040.00417.73
8.1.190.0050.00317.73
8.1.180.0030.00618.10
8.1.170.0040.00419.26
8.1.160.0040.00419.26
8.1.150.0030.00622.34
8.1.140.0000.00719.90
8.1.130.0040.00418.07
8.1.120.0040.00417.69
8.1.110.0050.00217.82
8.1.100.0060.00317.83
8.1.90.0040.00417.89
8.1.80.0050.00317.85
8.1.70.0070.00017.81
8.1.60.0040.00417.81
8.1.50.0060.00317.70
8.1.40.0040.00417.81
8.1.30.0050.00318.09
8.1.20.0030.00518.02
8.1.10.0040.00417.91
8.1.00.0040.00417.80
8.0.300.0050.00220.10
8.0.290.0000.00817.13
8.0.280.0070.00018.85
8.0.270.0000.00717.17
8.0.260.0000.00817.48
8.0.250.0030.00317.21
8.0.240.0000.00717.20
8.0.230.0000.00717.23
8.0.220.0070.00017.14
8.0.210.0030.00517.25
8.0.200.0070.00017.20
8.0.190.0000.00817.38
8.0.180.0000.00817.29
8.0.170.0000.00817.31
8.0.160.0040.00417.16
8.0.150.0040.00417.18
8.0.140.0000.01117.10
8.0.130.0060.00313.64
8.0.120.0030.00617.31
8.0.110.0000.00717.16
8.0.100.0040.00417.35
8.0.90.0000.00717.13
8.0.80.0120.00317.29
8.0.70.0060.00317.19
8.0.60.0070.00017.29
8.0.50.0050.00217.05
8.0.30.0230.01017.42
8.0.20.0100.00917.53
8.0.10.0080.00017.27
8.0.00.0060.01217.06
7.4.330.0000.00615.55
7.4.320.0000.00616.84
7.4.300.0030.00616.75
7.4.290.0040.00416.98
7.4.280.0000.00816.79
7.4.270.0000.00716.78
7.4.260.0040.00416.71
7.4.250.0000.00716.81
7.4.240.0070.00016.81
7.4.230.0070.00016.96
7.4.220.0180.00016.91
7.4.210.0110.00516.90
7.4.200.0030.00316.83
7.4.160.0080.00716.88
7.4.150.0100.00717.40
7.4.140.0090.01017.86
7.4.130.0090.01016.76
7.4.120.0090.01016.83
7.4.110.0150.00316.83
7.4.100.0070.01516.81
7.4.90.0180.00316.83
7.4.80.0180.00419.39
7.4.70.0060.01016.87
7.4.60.0100.01316.72
7.4.50.0020.01116.85
7.4.40.0030.01417.01
7.4.30.0150.00316.98
7.4.10.0070.01115.07
7.4.00.0100.00715.32
7.3.330.0050.00013.58
7.3.320.0000.00513.41
7.3.310.0050.00216.77
7.3.300.0070.00016.64
7.3.290.0040.00416.51
7.3.280.0120.00916.68
7.3.270.0100.00717.40
7.3.260.0090.01216.79
7.3.250.0100.00816.65
7.3.240.0000.01816.80
7.3.230.0030.01516.76
7.3.210.0080.00816.74
7.3.200.0100.00716.79
7.3.190.0110.01117.00
7.3.180.0080.00816.91
7.3.170.0030.01316.86
7.3.160.0110.00616.60
7.3.130.0030.01614.79
7.3.120.0110.00715.14
7.3.110.0060.01315.03
7.3.100.0130.00315.07
7.3.90.0060.00915.20
7.3.80.0030.01014.83
7.3.70.0050.00315.07
7.3.60.0000.01115.02
7.3.50.0100.00715.11
7.3.40.0060.00614.73
7.3.30.0000.01415.09
7.3.20.0060.00616.98
7.3.10.0110.00516.88
7.3.00.0090.00916.67
7.2.330.0090.00916.86
7.2.320.0100.00716.86
7.2.310.0060.01117.04
7.2.300.0030.01516.75
7.2.290.0150.00417.09
7.2.260.0070.01015.21
7.2.250.0000.01515.00
7.2.240.0030.01015.22
7.2.230.0060.01015.56
7.2.220.0060.01215.10
7.2.210.0070.00715.11
7.2.200.0060.00615.18
7.2.190.0090.00615.09
7.2.180.0040.00715.18
7.2.170.0080.00815.25
7.2.160.0060.00915.32
7.2.150.0110.00717.02
7.2.140.0140.00317.11
7.2.130.0050.01116.98
7.2.120.0100.00417.01
7.2.110.0040.01016.93
7.2.100.0090.00916.99
7.2.90.0100.00616.97
7.2.80.0080.00617.00
7.2.70.0060.01017.14
7.2.60.0060.00816.83
7.2.50.0070.00817.02
7.2.40.0090.00517.04
7.2.30.0080.00616.93
7.2.20.0040.01417.01
7.2.10.0080.00717.01
7.2.00.0080.00717.66
7.1.330.0060.00816.07
7.1.320.0060.00916.04
7.1.310.0030.01015.94
7.1.300.0060.00915.86
7.1.290.0080.00315.94
7.1.280.0000.01415.88
7.1.270.0030.01015.85
7.1.260.0070.01016.02
7.1.250.0080.00815.79
7.1.240.0050.00515.89
7.1.230.0090.00515.88
7.1.220.0030.01015.79
7.1.210.0060.00616.02
7.1.200.0090.00416.03
7.1.190.0060.00815.95
7.1.180.0050.00715.92
7.1.170.0060.00715.81
7.1.160.0040.00816.09
7.1.150.0070.00615.91
7.1.140.0050.01015.94
7.1.130.0030.00815.89
7.1.120.0030.00815.88
7.1.110.0040.00716.05
7.1.100.0050.00715.89
7.1.90.0030.00815.87
7.1.80.0080.00616.05
7.1.70.0020.00916.36
7.1.60.0060.00416.52
7.1.50.0020.01316.02
7.1.40.0030.00915.91
7.1.30.0020.01115.92
7.1.20.0070.00816.04
7.1.10.0060.00815.85
7.1.00.0080.02918.13
7.0.330.0080.00515.44
7.0.320.0060.01015.44
7.0.310.0020.00915.48
7.0.300.0060.00315.47
7.0.290.0020.01115.61
7.0.280.0040.00815.58
7.0.270.0060.00615.48
7.0.260.0050.00915.48
7.0.250.0040.00715.74
7.0.240.0040.00915.54
7.0.230.0020.01015.49
7.0.220.0060.00615.38
7.0.210.0020.00715.54
7.0.200.0120.00515.93
7.0.190.0060.00615.53
7.0.180.0030.01015.50
7.0.170.0040.00715.55
7.0.160.0040.01015.44
7.0.150.0090.00515.50
7.0.140.0060.00615.66
7.0.130.0080.02417.68
7.0.120.0100.02017.74
7.0.110.0090.02417.78
7.0.100.0070.02517.75
7.0.90.0040.02717.76
7.0.80.0060.02417.84
7.0.70.0120.01917.68
7.0.60.0020.02717.78
7.0.50.0080.02317.78
7.0.40.0080.02616.50
7.0.30.0070.02316.35
7.0.20.0090.02416.42
7.0.10.0070.02416.44
7.0.00.0090.02316.50
5.6.400.0070.01014.52
5.6.390.0090.00914.46
5.6.380.0110.00314.63
5.6.370.0080.00814.51
5.6.360.0050.00514.66
5.6.350.0040.00614.71
5.6.340.0060.00814.77
5.6.330.0050.00514.40
5.6.320.0060.00814.89
5.6.310.0110.00714.62
5.6.300.0030.01014.75
5.6.290.0060.00914.46
5.6.280.0020.02816.68
5.6.270.0110.02316.92
5.6.260.0050.02716.73
5.6.250.0090.02216.68
5.6.240.0060.02916.77
5.6.230.0070.02516.70
5.6.220.0070.02416.70
5.6.210.0030.02816.79
5.6.200.0090.02316.68
5.6.190.0070.02716.63
5.6.180.0080.02316.68
5.6.170.0090.02516.64
5.6.160.0080.02416.66
5.6.150.0090.02916.84
5.6.140.0090.02616.79
5.6.130.0100.02116.81
5.6.120.0060.02616.62
5.6.110.0050.02616.81
5.6.100.0080.02516.71
5.6.90.0070.02516.67
5.6.80.0050.02416.52
5.6.70.0070.02516.39
5.6.60.0100.02016.52
5.6.50.0070.02416.62
5.6.40.0070.02116.61
5.6.30.0100.02016.39
5.6.20.0090.02116.45
5.6.10.0020.02616.50
5.6.00.0080.02216.45

preferences:
36.13 ms | 403 KiB | 5 Q