3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ControllerInformationInformation extends Controller { public function index() { $this->language->load('information/information'); $this->load->model('catalog/information'); $this->data['breadcrumbs'] = array(); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_home'), 'href' => $this->url->link('common/home'), 'separator' => false ); if (isset($this->request->get['information_id'])) { $information_id = $this->request->get['information_id']; } else { $information_id = 0; } $information_info = $this->model_catalog_information->getInformation($information_id); if ($information_info) { $this->document->setTitle($information_info['title']); $this->data['breadcrumbs'][] = array( 'text' => $information_info['title'], 'href' => $this->url->link('information/information', 'information_id=' . $information_id), 'separator' => $this->language->get('text_separator') ); $this->data['heading_title'] = $information_info['title']; $this->data['button_continue'] = $this->language->get('button_continue'); $this->data['description'] = html_entity_decode($information_info['description'], ENT_QUOTES, 'UTF-8'); $this->data['continue'] = $this->url->link('common/home'); if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/information/information.tpl')) { $this->template = $this->config->get('config_template') . '/template/information/information.tpl'; } else { $this->template = 'default/template/information/information.tpl'; } $this->children = array( 'common/column_left', 'common/column_right', 'common/content_top', 'common/content_bottom', 'common/footer', 'common/header' ); $this->response->setOutput($this->render()); } else { $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_error'), 'href' => $this->url->link('information/information', 'information_id=' . $information_id), 'separator' => $this->language->get('text_separator') ); $this->document->setTitle($this->language->get('text_error')); $this->data['heading_title'] = $this->language->get('text_error'); $this->data['text_error'] = $this->language->get('text_error'); $this->data['button_continue'] = $this->language->get('button_continue'); $this->data['continue'] = $this->url->link('common/home'); if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/error/not_found.tpl')) { $this->template = $this->config->get('config_template') . '/template/error/not_found.tpl'; } else { $this->template = 'default/template/error/not_found.tpl'; } $this->children = array( 'common/column_left', 'common/column_right', 'common/content_top', 'common/content_bottom', 'common/footer', 'common/header' ); $this->response->setOutput($this->render()); } } public function info() { $this->load->model('catalog/information'); if (isset($this->request->get['information_id'])) { $information_id = $this->request->get['information_id']; } else { $information_id = 0; } $information_info = $this->model_catalog_information->getInformation($information_id); if ($information_info) { $output = '<html dir="ltr" lang="en">' . "\n"; $output .= '<head>' . "\n"; $output .= ' <title>' . $information_info['title'] . '</title>' . "\n"; $output .= ' <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' . "\n"; $output .= '</head>' . "\n"; $output .= '<body>' . "\n"; $output .= ' <h1>' . $information_info['title'] . '</h1>' . "\n"; $output .= html_entity_decode($information_info['description'], ENT_QUOTES, 'UTF-8') . "\n"; $output .= ' </body>' . "\n"; $output .= '</html>' . "\n"; $this->response->setOutput($output); } } } ?>

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.00918.29
8.3.50.0110.00621.87
8.3.40.0130.00319.10
8.3.30.0110.00418.73
8.3.20.0000.00818.88
8.3.10.0050.00319.51
8.3.00.0040.00423.71
8.2.180.0160.00016.63
8.2.170.0060.00922.96
8.2.160.0110.00620.70
8.2.150.0030.00624.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0040.00419.47
8.2.110.0140.01021.12
8.2.100.0110.00018.09
8.2.90.0060.00319.61
8.2.80.0060.00319.45
8.2.70.0040.00417.63
8.2.60.0000.00818.18
8.2.50.0000.00818.07
8.2.40.0050.00518.34
8.2.30.0000.00919.85
8.2.20.0040.00417.90
8.2.10.0000.00817.93
8.2.00.0030.00517.78
8.1.280.0100.01025.92
8.1.270.0050.00323.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00722.50
8.1.230.0040.00821.09
8.1.220.0050.00317.88
8.1.210.0000.00919.03
8.1.200.0030.00617.48
8.1.190.0060.00317.53
8.1.180.0040.00718.10
8.1.170.0030.00518.79
8.1.160.0000.00718.94
8.1.150.0000.00818.66
8.1.140.0050.00317.50
8.1.130.0040.00417.91
8.1.120.0000.00717.57
8.1.110.0030.00517.41
8.1.100.0000.00717.54
8.1.90.0030.00317.50
8.1.80.0000.00717.50
8.1.70.0000.00817.46
8.1.60.0090.00017.53
8.1.50.0060.00317.54
8.1.40.0030.00617.46
8.1.30.0000.00917.63
8.1.20.0050.00317.76
8.1.10.0030.00517.59
8.1.00.0080.00417.61
8.0.300.0050.00320.14
8.0.290.0080.00016.85
8.0.280.0000.00718.56
8.0.270.0040.00416.93
8.0.260.0030.00316.89
8.0.250.0070.00017.11
8.0.240.0060.00317.15
8.0.230.0000.00817.09
8.0.220.0070.00017.03
8.0.210.0000.00717.00
8.0.200.0000.00617.02
8.0.190.0040.00417.17
8.0.180.0040.00417.07
8.0.170.0030.00517.13
8.0.160.0000.00816.96
8.0.150.0000.00817.12
8.0.140.0040.00417.02
8.0.130.0000.00613.51
8.0.120.0000.00716.92
8.0.110.0040.00417.11
8.0.100.0000.00816.93
8.0.90.0050.00317.00
8.0.80.0060.00916.96
8.0.70.0000.00717.14
8.0.60.0000.00817.10
8.0.50.0000.00717.02
8.0.30.0090.01017.14
8.0.20.0070.01217.40
8.0.10.0080.00016.96
8.0.00.0110.01317.03
7.4.330.0000.00514.67
7.4.320.0060.00016.65
7.4.300.0040.00416.45
7.4.290.0040.00416.66
7.4.280.0050.00316.61
7.4.270.0000.00716.67
7.4.260.0040.00413.26
7.4.250.0000.00716.52
7.4.240.0030.00316.68
7.4.230.0000.00716.63
7.4.220.0120.01216.65
7.4.210.0050.01116.63
7.4.200.0000.00816.38
7.4.190.0000.00716.72
7.4.160.0080.00816.73
7.4.150.0150.00317.40
7.4.140.0120.00717.86
7.4.130.0050.01416.62
7.4.120.0080.00816.61
7.4.110.0040.01316.57
7.4.100.0100.00716.60
7.4.90.0040.02116.71
7.4.80.0000.01619.37
7.4.70.0110.00816.63
7.4.60.0070.01016.62
7.4.50.0060.00316.69
7.4.40.0100.00322.27
7.4.30.0110.00716.70
7.4.10.0030.01215.30
7.4.00.0060.01114.98
7.3.330.0000.00513.49
7.3.320.0030.00313.40
7.3.310.0080.00016.40
7.3.300.0000.00716.29
7.3.290.0040.01116.44
7.3.280.0090.00716.43
7.3.270.0150.00917.40
7.3.260.0110.00618.24
7.3.250.0020.01616.63
7.3.240.0080.00916.46
7.3.230.0130.00316.67
7.3.210.0060.01116.68
7.3.200.0070.01119.39
7.3.190.0160.00316.68
7.3.180.0060.01316.59
7.3.170.0100.00716.45
7.3.160.0030.01316.45
7.3.130.0140.00414.92
7.3.120.0060.01014.99
7.3.110.0100.00714.92
7.3.100.0040.00815.03
7.3.90.0110.00514.88
7.3.80.0070.00715.06
7.3.70.0060.01014.77
7.3.60.0040.01014.80
7.3.50.0050.00914.77
7.3.40.0050.01014.81
7.3.30.0050.00914.84
7.3.20.0060.00916.67
7.3.10.0110.00316.58
7.3.00.0090.00616.60
7.2.330.0100.01016.64
7.2.320.0140.00316.62
7.2.310.0120.00916.51
7.2.300.0060.01016.77
7.2.290.0120.00416.64
7.2.260.0100.01014.60
7.2.250.0000.01914.80
7.2.240.0070.01115.08
7.2.230.0070.00815.06
7.2.220.0050.01115.00
7.2.210.0080.00514.97
7.2.200.0090.00614.89
7.2.190.0050.00914.93
7.2.180.0040.00814.99
7.2.170.0010.01414.95
7.2.160.0030.01114.99
7.2.150.0070.00916.78
7.2.140.0030.01016.86
7.2.130.0040.01116.71
7.2.120.0050.00816.81
7.2.110.0060.01116.74
7.2.100.0060.00916.65
7.2.90.0080.00816.83
7.2.80.0060.00816.76
7.2.70.0060.00916.83
7.2.60.0040.01016.73
7.2.50.0060.00916.90
7.2.40.0070.00816.83
7.2.30.0030.01316.85
7.2.20.0090.00716.81
7.2.10.0050.01116.76
7.2.00.0050.01017.39
7.1.330.0040.01215.43
7.1.320.0030.00815.61
7.1.310.0070.00915.69
7.1.300.0060.00715.58
7.1.290.0090.00715.74
7.1.280.0060.00815.61
7.1.270.0060.00915.52
7.1.260.0050.01115.44
7.1.250.0090.00615.56
7.1.240.0040.00815.41
7.1.230.0100.00315.30
7.1.220.0030.01015.67
7.1.210.0040.01115.36
7.1.200.0050.00515.51
7.1.190.0030.01115.62
7.1.180.0100.00615.83
7.1.170.0060.01015.54
7.1.160.0130.00615.49
7.1.150.0040.00415.85
7.1.140.0110.00715.77
7.1.130.0100.00315.54
7.1.120.0030.01015.66
7.1.110.0000.01115.48
7.1.100.0020.01116.77
7.1.90.0070.00715.61
7.1.80.0030.00915.46
7.1.70.0030.00816.18
7.1.60.0080.01117.64
7.1.50.0100.00716.21
7.1.40.0070.00315.84
7.1.30.0070.00715.59
7.1.20.0060.00915.69
7.1.10.0040.01115.57
7.1.00.0060.03718.98
7.0.330.0080.00315.09
7.0.320.0000.01315.41
7.0.310.0140.00015.52
7.0.300.0000.01214.96
7.0.290.0060.00915.25
7.0.280.0040.01115.39
7.0.270.0040.00815.15
7.0.260.0090.00615.34
7.0.250.0040.00715.25
7.0.240.0080.00415.41
7.0.230.0070.00715.06
7.0.220.0040.00415.35
7.0.210.0060.00615.33
7.0.200.0020.01116.03
7.0.190.0040.01215.28
7.0.180.0060.00615.01
7.0.170.0050.00515.43
7.0.160.0000.00815.36
7.0.150.0070.00715.03
7.0.140.0070.03718.54
7.0.130.0070.00715.15
7.0.120.0050.01015.42
7.0.110.0000.01515.35
7.0.100.0100.00315.14
7.0.90.0040.01115.36
7.0.80.0030.00715.39
7.0.70.0110.00415.36
7.0.60.0030.03117.58
7.0.50.0060.02616.58
7.0.40.0040.02615.56
7.0.30.0050.04715.54
7.0.20.0000.03115.44
7.0.10.0020.02715.56
7.0.00.0120.03015.52
5.6.400.0030.01014.09
5.6.390.0090.00614.29
5.6.380.0100.00314.56
5.6.370.0000.01014.49
5.6.360.0100.01014.46
5.6.350.0040.00714.21
5.6.340.0040.00813.92
5.6.330.0080.00814.28
5.6.320.0040.00714.06
5.6.310.0030.01014.17
5.6.300.0070.01014.29
5.6.290.0030.01314.03
5.6.280.0000.04417.56
5.6.270.0070.00714.03
5.6.260.0040.00414.14
5.6.250.0070.00714.33
5.6.240.0040.01114.28
5.6.230.0000.00914.25
5.6.220.0060.00914.32
5.6.210.0050.03617.38
5.6.200.0090.04216.22
5.6.190.0050.04216.25
5.6.180.0050.03016.26
5.6.170.0030.02616.21
5.6.160.0080.03816.16
5.6.150.0070.04216.29
5.6.140.0050.03916.26
5.6.130.0090.02216.22
5.6.120.0060.04216.25
5.6.110.0100.04516.21
5.6.100.0120.03216.23
5.6.90.0030.02816.13
5.6.80.0060.02515.83
5.6.70.0120.03615.80
5.6.60.0080.02715.79
5.6.50.0010.03815.87
5.6.40.0050.04715.74
5.6.30.0110.02915.97
5.6.20.0020.04615.86
5.6.10.0070.03815.94
5.6.00.0030.02515.83
5.5.380.0000.01314.07
5.5.370.0060.00614.12
5.5.360.0030.01014.30
5.5.350.0160.04117.31
5.5.340.0070.04016.04
5.5.330.0020.04716.04
5.5.320.0050.02815.90
5.5.310.0020.03316.14
5.5.300.0000.03216.15
5.5.290.0070.02916.00
5.5.280.0070.04616.09
5.5.270.0030.04615.88
5.5.260.0020.03615.91
5.5.250.0060.03115.95
5.5.240.0080.03815.69
5.5.230.0080.03715.60
5.5.220.0020.02815.74
5.5.210.0030.04615.74
5.5.200.0110.03815.55
5.5.190.0110.03815.79
5.5.180.0050.02415.76
5.5.170.0070.00714.16
5.5.160.0060.02315.60
5.5.150.0100.04015.77
5.5.140.0030.04615.61
5.5.130.0030.04415.63
5.5.120.0100.02515.59
5.5.110.0070.04215.66
5.5.100.0090.03815.54
5.5.90.0080.02215.64
5.5.80.0050.03615.75
5.5.70.0070.04315.71
5.5.60.0040.02815.62
5.5.50.0050.02815.68
5.5.40.0050.04115.65
5.5.30.0120.03715.50
5.5.20.0050.04515.68
5.5.10.0060.03315.68
5.5.00.0090.02815.62
5.4.450.0050.04415.95
5.4.440.0050.04415.96
5.4.430.0020.03015.91
5.4.420.0030.02215.99
5.4.410.0050.04015.88
5.4.400.0110.02015.76
5.4.390.0060.04215.71
5.4.380.0050.03815.81
5.4.370.0050.04515.83
5.4.360.0130.04015.77
5.4.350.0050.04015.90
5.4.340.0050.04215.71
5.4.330.0030.00612.53
5.4.320.0050.02315.77
5.4.310.0090.03115.84
5.4.300.0110.03315.90
5.4.290.0020.02715.79
5.4.280.0050.03615.79
5.4.270.0050.04115.77
5.4.260.0090.03815.79
5.4.250.0030.04415.71
5.4.240.0050.04215.76
5.4.230.0040.02615.81
5.4.220.0080.04115.74
5.4.210.0030.03215.82
5.4.200.0100.04015.79
5.4.190.0080.04115.78
5.4.180.0050.04015.81
5.4.170.0090.03815.70
5.4.160.0090.01815.81
5.4.150.0050.01815.77
5.4.140.0050.02014.46
5.4.130.0020.02314.50
5.4.120.0050.02014.48
5.4.110.0020.02214.47
5.4.100.0060.01914.49
5.4.90.0070.01714.56
5.4.80.0050.01814.49
5.4.70.0020.03314.47
5.4.60.0030.04014.50
5.4.50.0020.02714.46
5.4.40.0070.01814.45
5.4.30.0020.02214.49
5.4.20.0020.03014.44
5.4.10.0030.02014.55
5.4.00.0030.02014.18
5.3.290.0020.03213.72
5.3.280.0070.03413.60
5.3.270.0020.02813.57
5.3.260.0060.01713.62
5.3.250.0020.02313.58
5.3.240.0050.02013.56
5.3.230.0030.02213.61
5.3.220.0050.01813.58
5.3.210.0160.01313.56
5.3.200.0080.01813.56
5.3.190.0030.02013.67
5.3.180.0030.04113.57
5.3.170.0040.02513.61
5.3.160.0030.02413.58
5.3.150.0020.03813.54
5.3.140.0020.02513.53
5.3.130.0020.02213.55
5.3.120.0030.02013.56
5.3.110.0030.02413.57
5.3.100.0090.01713.32
5.3.90.0020.02813.27
5.3.80.0020.02213.28
5.3.70.0070.01713.30
5.3.60.0000.02413.38
5.3.50.0040.02013.30
5.3.40.0030.02013.26
5.3.30.0030.02213.26
5.3.20.0000.02113.05
5.3.10.0030.02013.05
5.3.00.0040.02413.12
5.2.170.0000.03011.40
5.2.160.0070.03011.17
5.2.150.0030.02711.29
5.2.140.0000.03011.07
5.2.130.0100.02011.35
5.2.120.0000.04011.18
5.2.110.0030.02711.14
5.2.100.0030.03011.13
5.2.90.0000.03011.02
5.2.80.0000.03311.02
5.2.70.0070.02711.09
5.2.60.0000.03311.19
5.2.50.0000.03011.10
5.2.40.0070.02311.04
5.2.30.0030.02711.04
5.2.20.0000.03011.06
5.2.10.0030.02710.90
5.2.00.0030.02710.66
5.1.60.0000.0239.95
5.1.50.0000.02310.14
5.1.40.0070.02010.00
5.1.30.0000.02710.27
5.1.20.0030.04010.44
5.1.10.0000.04710.11
5.1.00.0000.05710.07
5.0.50.0030.0478.67
5.0.40.0000.0478.29
5.0.30.0000.0438.35
5.0.20.0030.0338.29
5.0.10.0030.0308.29
5.0.00.0030.0508.18
4.4.90.0030.0137.92
4.4.80.0000.0137.92
4.4.70.0000.0177.92
4.4.60.0000.0177.92
4.4.50.0030.0137.92
4.4.40.0000.0237.92
4.4.30.0000.0177.92
4.4.20.0030.0207.92
4.4.10.0000.0407.92
4.4.00.0030.0577.92
4.3.110.0030.0337.92
4.3.100.0030.0337.92
4.3.90.0000.0207.92
4.3.80.0030.0477.92
4.3.70.0000.0377.92
4.3.60.0000.0307.92
4.3.50.0030.0337.92
4.3.40.0000.0537.92
4.3.30.0000.0407.92
4.3.20.0030.0337.92
4.3.10.0030.0207.92
4.3.00.0000.0377.92

preferences:
50.04 ms | 401 KiB | 5 Q