3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Controller used to manage specificites * * Generated using AdminGen, Copyright Conception Focus 2012 * @author korri */ class Specificites extends CI_Controller { public function __construct() { parent::__construct(); requireRight('gestion_' . 'specificites'); } /** * List all specificites * @return null */ public function index() { $specificites = new Specificite(); $data['specificites'] = $specificites->get_iterated(); $this->smartyparser->parse('specificites/listing.tpl', $data); } /** * Internal, used by add and edit to render edition form * * @param Specificite|boolean $specificite Currently edited specificite * * @return null */ public function _edit($specificite = false) { if (!$specificite) { $specificite = new Specificite(); } $data['specificite'] = $specificite; $this->smartyparser->parse('specificites/edit.tpl', $data); } /** * Edit an existing specificite * * @param int $id Id of the edited specificite * * @return null */ public function edit($id) { $specificite = new Specificite($id); if (!$specificite->exists()) { show_404(); } $this->_edit($specificite); } /** * Add a specificite * @return null */ public function add() { $this->_edit(); } /** * Post page, used to receive data from the form */ public function post() { if (!$this->input->post()) { show_404(); } if ($this->input->post('id')) { $specificite = new Specificite((int)$this->input->post('id')); if (!$specificite->exists()) { show_404(); } } else { $specificite = new Specificite(); } $post = $this->input->post(); $specificite->from_array($post); if ($specificite->save()) { $this->session->set_flashdata('success', 'Le/La specificite à bien été enregistré(e).'); redirect('specificites'); } $this->_edit($specificite); } public function delete($id) { $specificite = new Specificite($id); if (!$specificite->exists()) { show_404(); } else { $specificite->delete(); $this->session->set_flashdata('success', 'Le/La specificite à bien été supprimé'); } redirect('specificites'); } }

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.0040.01116.63
8.3.50.0100.01023.00
8.3.40.0040.01118.72
8.3.30.0080.00619.01
8.3.20.0070.00020.11
8.3.10.0100.00019.78
8.3.00.0070.00319.50
8.2.180.0040.01116.63
8.2.170.0070.00722.96
8.2.160.0110.00420.38
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.03
8.2.110.0030.00719.39
8.2.100.0040.00817.91
8.2.90.0000.00817.97
8.2.80.0000.00917.97
8.2.70.0000.00817.63
8.2.60.0080.00018.03
8.2.50.0000.00918.07
8.2.40.0040.00818.09
8.2.30.0040.00419.58
8.2.20.0040.00417.66
8.2.10.0040.00418.10
8.2.00.0060.00317.79
8.1.280.0110.00325.92
8.1.270.0040.00422.14
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00623.92
8.1.230.0060.00617.71
8.1.220.0000.00817.74
8.1.210.0080.00018.85
8.1.200.0090.00017.22
8.1.190.0080.00017.11
8.1.180.0000.00818.10
8.1.170.0000.00918.61
8.1.160.0070.00022.11
8.1.150.0070.00318.91
8.1.140.0040.00417.46
8.1.130.0000.00717.78
8.1.120.0040.00417.44
8.1.110.0000.00717.44
8.1.100.0070.00017.43
8.1.90.0050.00217.45
8.1.80.0040.00417.47
8.1.70.0040.00417.41
8.1.60.0050.00317.45
8.1.50.0030.00617.50
8.1.40.0040.00417.50
8.1.30.0080.00017.57
8.1.20.0020.00517.67
8.1.10.0000.00817.47
8.1.00.0060.00317.45
8.0.300.0080.00019.86
8.0.290.0090.00016.75
8.0.280.0000.00718.42
8.0.270.0070.00017.32
8.0.260.0030.00317.17
8.0.250.0030.00316.93
8.0.240.0000.00816.98
8.0.230.0070.00017.02
8.0.220.0030.00316.89
8.0.210.0030.00317.02
8.0.200.0030.00316.96
8.0.190.0000.00917.02
8.0.180.0040.00416.90
8.0.170.0030.00517.11
8.0.160.0060.00316.99
8.0.150.0070.00016.93
8.0.140.0070.00016.95
8.0.130.0000.00613.30
8.0.120.0000.00916.86
8.0.110.0040.00416.91
8.0.100.0070.00017.00
8.0.90.0040.00417.03
8.0.80.0090.00616.94
8.0.70.0070.00016.87
8.0.60.0040.00416.88
8.0.50.0000.00716.98
8.0.30.0080.01017.07
8.0.20.0110.01517.40
8.0.10.0000.00717.04
8.0.00.0150.00616.75
7.4.330.0020.00215.03
7.4.320.0030.00316.38
7.4.300.0000.00616.54
7.4.290.0030.00316.50
7.4.280.0040.00416.57
7.4.270.0030.00316.59
7.4.260.0070.00016.45
7.4.250.0050.00316.46
7.4.240.0040.00416.54
7.4.230.0000.00716.55
7.4.220.0000.01716.52
7.4.210.0090.01216.66
7.4.200.0000.00716.65
7.4.160.0040.01716.60
7.4.150.0090.00917.40
7.4.140.0150.00617.86
7.4.130.0080.01116.64
7.4.120.0070.00916.51
7.4.110.0040.01216.66
7.4.100.0150.00216.50
7.4.90.0070.01016.38
7.4.80.0120.01219.39
7.4.70.0130.00316.35
7.4.60.0080.00816.53
7.4.50.0050.00316.69
7.4.40.0130.01016.53
7.4.30.0110.00516.54
7.4.00.0000.01715.07
7.3.330.0000.00513.31
7.3.320.0000.00513.19
7.3.310.0040.00416.38
7.3.300.0030.00316.35
7.3.290.0030.01316.30
7.3.280.0090.00816.31
7.3.270.0120.00617.40
7.3.260.0090.01016.32
7.3.250.0100.00716.33
7.3.240.0100.00716.52
7.3.230.0030.01316.60
7.3.210.0130.00316.48
7.3.200.0080.00819.39
7.3.190.0070.01016.47
7.3.180.0100.00616.50
7.3.170.0100.00616.46
7.3.160.0100.01116.48
7.2.330.0090.00916.35
7.2.320.0100.00716.46
7.2.310.0030.01316.62
7.2.300.0090.01516.62
7.2.290.0040.01516.63
7.2.60.0030.01316.48
7.2.00.0040.00719.19
7.1.200.0080.00415.40
7.1.70.0070.00016.67
7.1.60.0080.00316.86
7.1.50.0090.01516.85
7.1.00.0000.08022.51
7.0.200.0000.01616.70
7.0.140.0000.07721.98
7.0.60.0070.05020.14
7.0.50.0030.08717.89
7.0.40.0030.04320.20
7.0.30.0300.06720.16
7.0.20.0230.06020.33
7.0.10.0030.09320.10
7.0.00.0070.08720.14
5.6.280.0030.07320.88
5.6.210.0070.05320.78
5.6.200.0070.07718.29
5.6.190.0100.07320.54
5.6.180.0300.08320.39
5.6.170.0200.06720.44
5.6.160.0100.08020.52
5.6.150.0030.08318.16
5.6.140.0100.07718.16
5.6.130.0100.08018.18
5.6.120.0100.07721.11
5.6.110.0100.08320.98
5.6.100.0130.08021.00
5.6.90.0100.04321.00
5.6.80.0070.05320.30
5.6.70.3100.03020.49
5.5.350.0100.03720.46
5.5.340.0030.08018.00
5.5.330.0030.05020.30
5.5.320.0230.06720.19
5.5.310.0230.07720.34
5.5.300.0000.07317.95
5.5.290.0030.04018.08
5.5.280.0000.09720.71
5.5.270.0030.05320.90
5.5.260.0070.04720.99
5.5.250.0000.04320.64
5.5.240.0170.09020.21
5.4.450.0070.05319.28
5.4.440.0130.05019.16
5.4.430.0230.04019.64
5.4.420.0200.04019.57
5.4.410.0230.04719.36
5.4.400.0330.03719.14
5.4.390.0170.03719.14
5.4.380.0330.05718.58
5.4.370.0230.05718.53
5.4.360.0300.05318.71
5.4.350.0370.05718.63
5.4.340.0300.05718.59
5.4.320.0100.03412.52
5.4.310.0070.03712.52
5.4.300.0040.04112.52
5.4.290.0040.04112.51
5.4.280.0080.03312.42
5.4.270.0060.03612.41
5.4.260.0060.03912.41
5.4.250.0040.04612.41
5.4.240.0070.03812.41
5.4.230.0050.04112.40
5.4.220.0080.03312.40
5.4.210.0060.03412.41
5.4.200.0060.03612.41
5.4.190.0030.03812.40
5.4.180.0050.03712.41
5.4.170.0060.03612.41
5.4.160.0080.03312.41
5.4.150.0070.03412.41
5.4.140.0090.03412.09
5.4.130.0020.03812.08
5.4.120.0050.03512.04
5.4.110.0040.03512.04
5.4.100.0050.03812.03
5.4.90.0050.03712.03
5.4.80.0070.03512.03
5.4.70.0070.03312.03
5.4.60.0040.03612.03
5.4.50.0100.03112.03
5.4.40.0070.03512.02
5.4.30.0060.03612.01
5.4.20.0050.03512.01
5.4.10.0060.03512.01
5.4.00.0050.03611.51
5.3.290.0080.04012.80
5.3.280.0100.03412.70
5.3.270.0070.03912.72
5.3.260.0070.03812.72
5.3.250.0050.03712.71
5.3.240.0070.03612.71
5.3.230.0090.03412.71
5.3.220.0120.03112.68
5.3.210.0090.03712.68
5.3.200.0060.03612.68
5.3.190.0100.03412.68
5.3.180.0040.03812.67
5.3.170.0040.03912.67
5.3.160.0110.03212.68
5.3.150.0050.04012.67
5.3.140.0050.03912.66
5.3.130.0120.05112.66
5.3.120.0110.05312.66
5.3.110.0100.05012.66
5.3.100.0080.04412.14
5.3.90.0070.05212.12
5.3.80.0070.04812.12
5.3.70.0060.04412.11
5.3.60.0050.04612.10
5.3.50.0060.03812.04
5.3.40.0050.03912.04
5.3.30.0110.03012.00
5.3.20.0060.03711.79
5.3.10.0080.03511.75
5.3.00.0070.03611.74
5.2.170.0060.0399.24
5.2.160.0060.0289.24
5.2.150.0050.0319.25
5.2.140.0040.0329.24
5.2.130.0090.0379.20
5.2.120.0080.0359.20
5.2.110.0040.0319.21
5.2.100.0050.0309.20
5.2.90.0100.0299.20
5.2.80.0070.0299.20
5.2.70.0060.0309.19
5.2.60.0060.0309.15
5.2.50.0030.0369.12
5.2.40.0030.0329.10
5.2.30.0060.0359.07
5.2.20.0080.0349.06
5.2.10.0050.0318.96
5.2.00.0030.0318.82
5.1.60.0060.0238.11
5.1.50.0050.0248.11
5.1.40.0060.0238.09
5.1.30.0000.0308.44
5.1.20.0040.0288.46
5.1.10.0010.0288.19
5.1.00.0070.0238.19
5.0.50.0040.0196.68
5.0.40.0030.0196.54
5.0.30.0040.0306.35
5.0.20.0040.0186.32
5.0.10.0070.0166.30
5.0.00.0030.0316.29
4.4.90.0030.0144.78
4.4.80.0040.0134.75
4.4.70.0030.0154.76
4.4.60.0010.0174.76
4.4.50.0000.0184.77
4.4.40.0040.0234.71
4.4.30.0010.0164.76
4.4.20.0010.0174.85
4.4.10.0020.0164.85
4.4.00.0040.0234.76
4.3.110.0030.0154.67
4.3.100.0030.0144.67
4.3.90.0020.0154.64
4.3.80.0020.0244.58
4.3.70.0000.0174.63
4.3.60.0040.0134.62
4.3.50.0040.0144.63
4.3.40.0010.0254.54
4.3.30.0020.0163.30
4.3.20.0020.0163.28
4.3.10.0020.0183.23
4.3.00.0000.02015.09

preferences:
41.96 ms | 404 KiB | 6 Q