3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $selectors = array( "title", "title_bg", "title_color", "title_text_align", "lead", "lead_bg", "lead_color", "lead_text_align", "button_file_link", "button_file_link_text", "button_file_link_size", "button_file_link_style", "button_file_link_color", "button_file_link_bg", "button_page_link", "button_page_link_text", "button_page_link_size", "button_page_link_style", "button_page_link_color", "button_page_link_bg", "button_href_link", "button_href_link_text", "button_href_link_size", "button_href_link_style", "button_href_link_color", "button_href_link_bg", "icon", "icon_bg", "icon_color", "icon_text_align", "icon_link_type", "icon_file_link", "icon_page_link", "icon_href_link", "image", "image_thumb", "image_tmpimg", "image_extsrc", "image_quality", "image_alt", "image_align", "image_link_type", "image_file_link", "image_page_link", "image_href_link", "advanced_styles", "button_align", ); $roots = []; $count = $last = 0; foreach ($selectors as $selector) { $root = $selector; while ($pos = (strpos($selector, '_') !== false)) { $root = substr($avatarimg, 0, $pos); foreach ($selectors as $test) { if (strpos($test, $root) !== false) { $count++; } } $last = $count; $count = 0; if ($count > $last) { $last = $count; $count = 0; } elseif ($count === $last) { break; } } $roots[] = $root; } echo '<pre>'.print_r($roots, true).'</pre>';

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)
5.6.150.0100.06318.16
5.6.140.0100.07318.19
5.6.130.0030.05718.28
5.6.120.0070.04321.00
5.6.110.0070.08720.97
5.6.100.0170.07320.88
5.6.90.0200.07021.10
5.6.80.0100.07320.40
5.5.300.0000.04317.99
5.5.290.0130.07717.95
5.5.280.0000.07720.76
5.5.270.0070.03720.61
5.5.260.0170.07320.95
5.5.250.0070.07720.77
5.5.240.0030.05320.23
5.4.450.0570.05319.34
5.4.440.0200.05719.61
5.4.430.0270.05019.31
5.4.420.0230.05319.31
5.4.410.0470.05319.40
5.4.400.0300.05719.25
5.4.390.0270.05319.20
5.4.380.0200.06018.84
5.4.370.0400.06019.24
5.4.360.0230.05719.04
5.4.350.0230.05019.29
5.4.340.0170.06019.20
5.4.320.0400.05319.06
5.4.310.0270.04719.11
5.4.300.0300.04018.82
5.4.290.0100.05719.13
5.4.280.0170.05719.20
5.4.270.0200.05319.15
5.4.260.0270.05319.28
5.4.250.0800.05019.11
5.4.240.0730.04319.23
5.4.230.0500.06319.21
5.4.220.0300.05319.20
5.4.210.0200.05719.07
5.4.200.0200.04319.23
5.4.190.0100.05719.25
5.4.180.0430.05019.22
5.4.170.0100.06319.13
5.4.160.0170.04718.81
5.4.150.0200.04719.21
5.4.140.0300.05316.41
5.4.130.0170.04716.52
5.4.120.0170.04716.52
5.4.110.0070.06016.52
5.4.100.0070.06316.20
5.4.90.0270.03716.45
5.4.80.0200.04016.61
5.4.70.0370.04316.40
5.4.60.0170.04716.60
5.4.50.0170.05016.61
5.4.40.0400.03716.49
5.4.30.0130.05316.48
5.4.20.0100.05316.59
5.4.10.0130.05016.38
5.4.00.0200.05016.03

preferences:
152.53 ms | 1394 KiB | 7 Q