3v4l.org

run code in 300+ PHP versions simultaneously
<?php include_once('config.php'); // terima data dari halaman index.php $username = mysql_real_escape_string($_POST['username']); $password = mysql_real_escape_string($_POST['password']); $email = mysql_real_escape_string($_POST['email']); $fullname = mysql_real_escape_string($_POST['fullname']); $role = 'member'; // variabel untuk settingan default level yang mendaftar // simpan data ke database $query = mysql_query("insert into users values('', '$username', '$password', '$email', '$fullname', '$role')"); if ($query) { // jika berhasil menyimpan header('location: index.php?msg=success'); } else { // jika gagal menyimpan header('location: index.php?msg=failed'); }

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.01518.39
8.3.50.0070.01018.16
8.3.40.0090.00618.92
8.3.30.0120.00418.89
8.3.20.0050.00320.34
8.3.10.0030.00620.48
8.3.00.0080.00021.85
8.2.180.0070.00716.75
8.2.170.0140.00722.96
8.2.160.0070.00722.13
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00020.93
8.2.120.0040.00426.35
8.2.110.0060.00321.00
8.2.100.0110.00017.91
8.2.90.0060.00317.97
8.2.80.0000.00918.15
8.2.70.0000.00917.50
8.2.60.0080.00017.80
8.2.50.0100.00018.09
8.2.40.0060.00322.24
8.2.30.0080.00019.38
8.2.20.0070.00017.76
8.2.10.0050.00218.13
8.2.00.0000.00718.18
8.1.280.0030.01025.92
8.1.270.0070.00722.23
8.1.260.0070.00428.09
8.1.250.0000.00828.09
8.1.240.0090.00322.05
8.1.230.0070.00421.04
8.1.220.0060.00317.74
8.1.210.0050.00518.97
8.1.200.0000.00917.21
8.1.190.0030.00517.13
8.1.180.0000.00818.10
8.1.170.0040.00418.53
8.1.160.0040.00420.76
8.1.150.0040.00418.91
8.1.140.0000.00819.53
8.1.130.0030.00317.58
8.1.120.0040.00417.31
8.1.110.0070.00017.43
8.1.100.0000.00817.37
8.1.90.0030.00617.42
8.1.80.0030.00417.40
8.1.70.0000.00717.42
8.1.60.0040.00417.48
8.1.50.0060.00317.52
8.1.40.0080.00017.43
8.1.30.0030.00517.61
8.1.20.0000.00717.35
8.1.10.0030.00617.58
8.1.00.0070.00317.57
8.0.300.0030.00620.10
8.0.290.0020.00516.75
8.0.280.0030.00318.40
8.0.270.0030.00317.38
8.0.260.0060.00017.30
8.0.250.0000.00717.00
8.0.240.0060.00017.14
8.0.230.0000.00717.13
8.0.220.0050.00316.98
8.0.210.0070.00017.04
8.0.200.0070.00017.00
8.0.190.0040.00417.06
8.0.180.0040.00417.12
8.0.170.0000.00817.02
8.0.160.0070.00017.07
8.0.150.0040.00416.98
8.0.140.0000.00816.91
8.0.130.0050.00013.48
8.0.120.0080.00016.93
8.0.110.0000.00817.03
8.0.100.0040.00416.91
8.0.90.0030.00517.13
8.0.80.0090.00617.05
8.0.70.0040.00417.05
8.0.60.0080.00016.84
8.0.50.0000.00816.93
8.0.30.0030.01317.09
8.0.20.0170.00417.40
8.0.10.0000.00717.00
8.0.00.0110.00916.68
7.4.330.0020.00216.81
7.4.320.0000.00616.43
7.4.300.0030.00316.52
7.4.290.0000.00716.55
7.4.280.0070.00016.55
7.4.270.0000.00816.62
7.4.260.0030.00616.49
7.4.250.0000.00716.51
7.4.240.0000.00716.68
7.4.230.0030.00316.71
7.4.220.0150.00316.57
7.4.210.0120.00416.58
7.4.200.0040.00416.52
7.4.160.0060.00916.43
7.4.150.0090.00917.40
7.4.140.0170.01817.86
7.4.130.0080.00916.66
7.4.120.0080.01016.69
7.4.110.0130.00616.41
7.4.100.0130.00616.44
7.4.90.0180.00416.52
7.4.80.0070.01019.39
7.4.70.0060.01216.39
7.4.60.0100.01016.53
7.4.50.0070.00716.59
7.4.40.0160.00916.52
7.4.30.0090.01016.61
7.4.00.0030.01414.76
7.3.330.0030.00313.20
7.3.320.0030.00313.08
7.3.310.0030.00516.32
7.3.300.0000.00716.32
7.3.290.0030.00316.28
7.3.280.0100.00616.34
7.3.270.0110.01117.40
7.3.260.0100.00716.21
7.3.250.0160.00316.54
7.3.240.0140.00616.41
7.3.230.0090.01216.41
7.3.210.0120.00616.29
7.3.200.0070.01016.29
7.3.190.0030.01316.44
7.3.180.0130.01016.59
7.3.170.0070.01016.30
7.3.160.0080.00816.38
7.2.330.0170.00016.48
7.2.320.0130.00516.46
7.2.310.0130.00716.64
7.2.300.0100.00716.71
7.2.290.0070.01016.71
7.2.60.0060.00916.94
7.2.00.0000.01019.49
7.1.200.0030.00915.57
7.1.100.0060.00618.24
7.1.70.0000.00917.08
7.1.60.0060.01919.19
7.1.50.0070.01316.90
7.1.00.0100.07022.48
7.0.200.0220.00614.51
7.0.60.0100.04721.77
7.0.50.0100.08017.84
7.0.40.0100.04720.41
7.0.30.0530.06720.10
7.0.20.0230.08720.17
7.0.10.0100.09020.02
7.0.00.0070.08020.09
5.6.280.0070.04720.89
5.6.210.0070.08020.50
5.6.200.0100.08018.10
5.6.190.0100.08020.50
5.6.180.0270.08020.46
5.6.170.0330.04020.54
5.6.160.0030.04020.45
5.6.150.0030.07318.09
5.6.140.0070.06718.19
5.6.130.0130.07018.23
5.6.120.0000.06021.02
5.6.110.0030.06321.04
5.6.100.0100.08320.98
5.6.90.0030.05720.99
5.6.80.0100.08020.50
5.5.350.3870.04720.40
5.5.340.0070.05717.89
5.5.330.0070.08320.37
5.5.320.0670.06020.35
5.5.310.0300.08020.29
5.5.300.0070.05018.00
5.5.290.0000.04318.02
5.5.280.0100.08020.98
5.5.270.0070.06720.86
5.5.260.0130.03720.96
5.5.250.0070.07020.74
5.5.240.0270.06720.15

preferences:
55.23 ms | 401 KiB | 5 Q