3v4l.org

run code in 300+ PHP versions simultaneously
<?php function insert() { $this->form_validation->set_message('required', '*column must be filled'); $this->form_validation->set_rules('judul', 'Judul', 'required'); $this->form_validation->set_rules('isi', 'Isi', 'required'); if ($this->form_validation->run() == FALSE) { $this->layout->addJs('ckeditor/ckeditor.js'); $this->layout->addJs('js/rakunpanel/b267648789c30a07b0efa5bce7bdd9fe.js'); $this->layout->view('rakunpanel/newsPan_view/insertNews_pan_view'); } else { $data = array( 'title' => $this->input->post('judul'), 'content' => $this->input->post('isi'), ); $this->db->insert('newses', $data); $judul = $this->input->post('judul'); $this->load->helper('file'); $pictureFiles = get_filenames('picture_news'); $this->db->select('*'); $this->db->from('newses'); $this->db->where('title', $judul); $query = $this->db->get(); foreach ($query->result() as $row) { $id = $row->id; $post_date = $row->post_date; } $datapic = array( 'pictureFiles' => $pictureFiles, 'id' => $id, 'post_date' => $post_date, 'title' => $this->input->post('judul'), 'content' => $this->input->post('isi'), ); $this->layout->view('rakunpanel/newsPan_view/insertNewsPict_pan_view', $datapic); //} } } ?>

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.0130.00718.08
8.3.50.0100.00922.05
8.3.40.0110.01118.57
8.3.30.0180.00018.59
8.3.20.0040.00418.61
8.3.10.0080.00020.46
8.3.00.0080.00023.48
8.2.180.0070.01016.36
8.2.170.0080.00622.96
8.2.160.0100.00722.08
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0050.00319.33
8.2.110.0030.00622.20
8.2.100.0090.00317.59
8.2.90.0030.00618.97
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0070.00017.80
8.2.50.0040.00418.07
8.2.40.0090.00018.16
8.2.30.0040.00419.75
8.2.20.0030.00517.52
8.2.10.0000.00817.60
8.2.00.0000.00817.54
8.1.280.0120.00925.92
8.1.270.0070.00023.99
8.1.260.0100.00726.35
8.1.250.0080.00028.09
8.1.240.0000.01022.34
8.1.230.0110.00020.92
8.1.220.0000.00818.77
8.1.210.0030.00618.97
8.1.200.0120.00616.72
8.1.190.0080.00017.38
8.1.180.0000.00818.10
8.1.170.0040.00418.79
8.1.160.0040.00418.71
8.1.150.0000.00818.53
8.1.140.0040.00417.35
8.1.130.0030.00317.81
8.1.120.0040.00417.42
8.1.110.0040.00417.36
8.1.100.0070.00017.37
8.1.90.0040.00417.39
8.1.80.0050.00317.29
8.1.70.0070.00017.26
8.1.60.0040.00417.46
8.1.50.0000.00717.30
8.1.40.0080.00017.30
8.1.30.0040.00417.40
8.1.20.0000.00917.55
8.1.10.0040.00417.28
8.1.00.0040.00417.36
8.0.300.0080.00019.73
8.0.290.0040.00416.63
8.0.280.0070.00018.32
8.0.270.0040.00417.17
8.0.260.0000.00616.77
8.0.250.0030.00316.87
8.0.240.0000.00716.78
8.0.230.0030.00316.82
8.0.220.0070.00016.78
8.0.210.0000.00616.70
8.0.200.0060.00016.77
8.0.190.0040.00416.90
8.0.180.0040.00416.80
8.0.170.0030.00616.83
8.0.160.0050.00316.80
8.0.150.0000.00816.77
8.0.140.0090.00016.63
8.0.130.0030.00313.16
8.0.120.0040.00416.77
8.0.110.0080.00016.76
8.0.100.0040.00316.67
8.0.90.0040.00416.68
8.0.80.0090.01316.80
8.0.70.0040.00416.77
8.0.60.0040.00416.67
8.0.50.0000.00716.86
8.0.30.0080.00916.98
8.0.20.0090.01017.40
8.0.10.0070.00016.93
8.0.00.0110.00716.67
7.4.330.0000.00614.64
7.4.320.0030.00316.41
7.4.300.0000.00616.46
7.4.290.0030.00316.34
7.4.280.0030.00516.42
7.4.270.0000.00716.50
7.4.260.0050.00013.22
7.4.250.0040.00416.36
7.4.240.0040.00416.43
7.4.230.0000.00716.54
7.4.220.0030.01416.35
7.4.210.0050.01016.45
7.4.200.0070.00016.60
7.4.190.0070.00016.52
7.4.160.0070.01016.38
7.4.150.0120.00917.40
7.4.140.0140.01517.86
7.4.130.0120.00516.35
7.4.120.0100.01016.38
7.4.110.0150.00316.36
7.4.100.0050.01916.61
7.4.90.0090.00916.30
7.4.80.0140.00319.04
7.4.70.0100.00716.26
7.4.60.0060.01216.38
7.4.50.0030.00616.43
7.4.40.0080.00822.27
7.4.30.0090.00816.18
7.4.00.0070.01014.60
7.3.330.0060.00013.17
7.3.320.0000.00613.03
7.3.310.0040.00416.25
7.3.300.0000.00716.07
7.3.290.0060.00916.23
7.3.280.0070.01116.18
7.3.270.0100.00717.40
7.3.260.0050.01418.24
7.3.250.0150.00816.16
7.3.240.0110.00916.28
7.3.230.0130.00916.39
7.3.210.0090.00616.18
7.3.200.0140.00719.39
7.3.190.0160.00316.49
7.3.180.0130.00316.19
7.3.170.0030.01216.27
7.3.160.0060.00916.27
7.3.120.0110.00714.88
7.2.330.0090.00816.57
7.2.320.0040.01316.25
7.2.310.0110.01116.35
7.2.300.0090.00616.30
7.2.290.0070.01016.42
7.2.00.0030.00919.25
7.1.100.0030.01017.86
7.1.70.0030.00816.92
7.1.60.0090.01519.40
7.1.50.0100.01016.89
7.1.00.0100.06722.36
7.0.200.0020.00516.50
7.0.140.0030.07322.08
7.0.60.0270.06719.82
7.0.50.0070.07317.90
7.0.40.0270.04320.21
7.0.30.0200.05020.15
7.0.20.0330.08020.31
7.0.10.0430.06020.23
7.0.00.0330.07720.25
5.6.280.0000.07720.95
5.6.210.0030.05020.47
5.6.200.0070.06018.29
5.6.190.0330.07720.57
5.6.180.0370.07720.39
5.6.170.0300.08020.43
5.6.160.0270.08020.63
5.6.150.0430.06720.50
5.6.140.0330.04720.17
5.6.130.0300.08320.18
5.6.120.0300.06720.24
5.6.110.0370.05320.16
5.6.100.0370.07020.34
5.6.90.0300.07720.41
5.6.80.0230.04719.56
5.6.70.0230.04019.71
5.6.60.0300.07719.71
5.6.50.0330.07719.71
5.6.40.0270.07719.70
5.6.30.0270.04719.70
5.6.20.0730.06319.59
5.6.10.0270.04019.79
5.6.00.0330.05719.72
5.5.350.0200.07720.43
5.5.340.0100.08017.94
5.5.330.0330.04720.29
5.5.320.0230.04720.41
5.5.310.0270.08320.25
5.5.300.0300.05019.96
5.5.290.0370.08320.32
5.5.280.0300.05720.30
5.5.270.0270.05020.13
5.5.260.0330.07720.11
5.5.250.0300.06320.11
5.5.240.0270.07319.59
5.5.230.0370.04719.55
5.5.220.0200.05319.58
5.5.210.0330.05019.58
5.5.200.0270.06319.65
5.5.190.0330.04019.55
5.5.180.0300.04319.55
5.5.160.0270.08019.32
5.5.150.0230.05719.52
5.5.140.0300.04019.48
5.5.130.0270.07719.55
5.5.120.0500.04719.51
5.5.110.0270.08319.58
5.5.100.0330.05719.39
5.5.90.0300.08019.55
5.5.80.0400.06319.46
5.5.70.0230.04319.38
5.5.60.0370.06719.48
5.5.50.0300.04719.54
5.5.40.0300.05719.61
5.5.30.0400.08319.47
5.5.20.0300.07019.46
5.5.10.0470.05719.39
5.5.00.0300.05719.41
5.4.450.0300.04319.41
5.4.440.0230.05719.41
5.4.430.0230.04719.25
5.4.420.0270.04319.58
5.4.410.0330.05019.04
5.4.400.0300.06319.01
5.4.390.0330.07319.24
5.4.380.0130.04718.88
5.4.370.0470.05319.15
5.4.360.0330.06319.16
5.4.350.0300.04319.12
5.4.340.0330.07018.93
5.4.320.0330.07019.12
5.4.310.0300.06319.25
5.4.300.0200.05319.25
5.4.290.0330.05019.24
5.4.280.0300.04019.24
5.4.270.0300.04018.96
5.4.260.0270.06018.94
5.4.250.0270.07319.14
5.4.240.0330.07018.86
5.4.230.0230.04019.24
5.4.220.0330.06019.15
5.4.210.0400.07319.25
5.4.200.0300.03319.11
5.4.190.0430.05719.18
5.4.180.0270.06718.95
5.4.170.0300.04019.20
5.4.160.0430.05718.84
5.4.150.0330.06319.13
5.4.140.0400.05716.39
5.4.130.0230.05016.54
5.4.120.0270.04316.50
5.4.110.0330.06016.39
5.4.100.0330.06716.39
5.4.90.0300.04016.50
5.4.80.0330.04716.31
5.4.70.0200.03716.47
5.4.60.0270.03716.43
5.4.50.0370.06016.44
5.4.40.0270.04016.27
5.4.30.0200.04316.39
5.4.20.0300.03316.38
5.4.10.0270.04316.36
5.4.00.0270.05015.86
5.3.290.0230.06014.71
5.3.280.0430.06314.79
5.3.270.0330.07314.70
5.3.260.0270.05314.64
5.3.250.0270.04714.66
5.3.240.0230.04014.66
5.3.230.0300.06014.64
5.3.220.0300.04314.74
5.3.210.0530.06314.58
5.3.200.0200.07014.62
5.3.190.0330.05314.61
5.3.180.0270.06714.61
5.3.170.0270.03714.62
5.3.160.0330.07014.60
5.3.150.0330.05314.75
5.3.140.0330.06014.57
5.3.130.0200.04314.62
5.3.120.0300.03714.62
5.3.110.0200.04714.60
5.3.100.0300.07314.19
5.3.90.0270.04014.03
5.3.80.0300.06714.03
5.3.70.0330.07714.09
5.3.60.0630.04314.17
5.3.50.0300.06714.02
5.3.40.0270.07313.90
5.3.30.0330.06313.92
5.3.20.0300.05013.70
5.3.10.0270.04313.67
5.3.00.0300.04713.66
5.2.170.0300.05312.77
5.2.160.0370.04012.77
5.2.150.0230.06012.77
5.2.140.0300.05012.77
5.2.130.0270.03712.77
5.2.120.0230.03312.77
5.2.110.0270.04712.77
5.2.100.0270.03712.77
5.2.90.0200.06012.77
5.2.80.0230.05012.77
5.2.70.0270.05312.77
5.2.60.0300.04712.77
5.2.50.0230.04312.77
5.2.40.0200.03312.77
5.2.30.0200.06012.77
5.2.20.0170.04312.77
5.2.10.0270.05012.77
5.2.00.0230.05312.77
5.1.60.0230.04712.77
5.1.50.0200.05012.77
5.1.40.0170.04312.77
5.1.30.0270.05012.77
5.1.20.0200.05012.77
5.1.10.0230.05012.77
5.1.00.0200.05312.77
5.0.50.0130.03312.77
5.0.40.0100.04312.77
5.0.30.0100.04012.77
5.0.20.0100.02312.77
5.0.10.0100.02312.77
5.0.00.0070.04712.77
4.4.90.0100.03312.77
4.4.80.0200.02712.77
4.4.70.0100.01712.77
4.4.60.0100.04012.77
4.4.50.0100.03312.77
4.4.40.0100.04712.77
4.4.30.0130.03712.77
4.4.20.0070.03312.77
4.4.10.0170.02712.77
4.4.00.0100.05712.77
4.3.110.0100.02712.77
4.3.100.0100.03012.77
4.3.90.0030.02312.77
4.3.80.0170.03712.77
4.3.70.0100.03712.77
4.3.60.0100.01312.77
4.3.50.0130.03712.77
4.3.40.0100.04312.77
4.3.30.0030.03012.77
4.3.20.0070.02312.77
4.3.10.0030.02312.77
4.3.00.0070.03312.77

preferences:
48.8 ms | 401 KiB | 5 Q