3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sambung=mysql_pconnect("localhost","root",""); if($sambung){ echo"Koneksi berhasil <br>"; } else{ echo"Koneksi gagal<brr>"; } $pilih=mysql_select_db("latihan"); $tabel="create table siswa(nomor int(10) auto_increment primary key, nama char(50), alamat char(250))"; $buat_tabel=mysql_query($tabel); if($buat_tabel){ echo"Tabel siswa berhasil dibuat"; } else{ echo"Tabel siswa gagal dibuat:".mysql_error(); } ?>

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.120.0060.00918.95
8.3.110.0040.00720.94
8.3.100.0040.00424.06
8.3.90.0110.00726.77
8.3.80.0060.00317.97
8.3.70.0060.00918.43
8.3.60.0130.00716.75
8.3.50.0130.00521.99
8.3.40.0070.01418.57
8.3.30.0070.01118.92
8.3.20.0080.00020.39
8.3.10.0050.00221.95
8.3.00.0030.00517.59
8.2.240.0040.00416.86
8.2.230.0000.00922.58
8.2.220.0080.00037.54
8.2.210.0080.00026.77
8.2.200.0080.00316.75
8.2.190.0090.00616.58
8.2.180.0070.01118.16
8.2.170.0110.00318.82
8.2.160.0070.00722.96
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00820.94
8.2.110.0050.00520.34
8.2.100.0060.00617.63
8.2.90.0060.00319.13
8.2.80.0040.00417.97
8.2.70.0090.00017.63
8.2.60.0060.00317.79
8.2.50.0050.00518.07
8.2.40.0000.00718.22
8.2.30.0040.00417.93
8.2.20.0050.00317.59
8.2.10.0020.00517.95
8.2.00.0080.00017.98
8.1.300.0040.00419.73
8.1.290.0000.00930.84
8.1.280.0070.01025.92
8.1.270.0140.00020.39
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00623.79
8.1.230.0080.00417.42
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0040.00416.99
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0080.00021.94
8.1.150.0040.00418.81
8.1.140.0000.00717.25
8.1.130.0000.00717.76
8.1.120.0070.00017.23
8.1.110.0040.00417.22
8.1.100.0000.00717.37
8.1.90.0070.00017.25
8.1.80.0000.00717.33
8.1.70.0040.00417.36
8.1.60.0040.00417.50
8.1.50.0040.00417.47
8.1.40.0040.00417.46
8.1.30.0030.00617.47
8.1.20.0040.00417.50
8.1.10.0000.00717.36
8.1.00.0040.00417.32
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.29
8.0.270.0000.00717.25
8.0.260.0040.00417.18
8.0.250.0000.00716.96
8.0.240.0030.00316.88
8.0.230.0000.00716.99
8.0.220.0000.00716.82
8.0.210.0070.00016.89
8.0.200.0050.00316.99
8.0.190.0040.00416.91
8.0.180.0040.00416.84
8.0.170.0000.00716.90
8.0.160.0070.00016.87
8.0.150.0050.00216.80
8.0.140.0030.00316.78
8.0.130.0050.00013.27
8.0.120.0060.00316.88
8.0.110.0050.00316.90
8.0.100.0070.00016.78
8.0.90.0000.00716.94
8.0.80.0120.00816.82
8.0.70.0000.00716.91
8.0.60.0000.00716.95
8.0.50.0040.00416.69
8.0.30.0130.01116.97
8.0.20.0080.01117.40
8.0.10.0000.00816.79
8.0.00.0100.00816.52
7.4.330.0030.00315.03
7.4.320.0040.00416.45
7.4.300.0000.00616.48
7.4.290.0070.00016.43
7.4.280.0040.00416.50
7.4.270.0030.00316.58
7.4.260.0000.00716.52
7.4.250.0040.00416.25
7.4.240.0030.00316.44
7.4.230.0040.00416.34
7.4.220.0090.00916.55
7.4.210.0070.00716.40
7.4.200.0000.00716.61
7.4.160.0040.01216.43
7.4.150.0130.00617.40
7.4.140.0110.00717.86
7.4.130.0110.00716.49
7.4.120.0080.01016.39
7.4.110.0130.00916.34
7.4.100.0170.00716.40
7.4.90.0100.00716.45
7.4.80.0070.01019.39
7.4.70.0140.00316.46
7.4.60.0110.00616.49
7.4.50.0030.00516.39
7.4.40.0060.00916.43
7.4.30.0120.00916.49
7.4.00.0070.01014.66
7.3.330.0000.00613.00
7.3.320.0060.00613.23
7.3.310.0020.00516.11
7.3.300.0040.00416.24
7.3.290.0030.00316.23
7.3.280.0060.01516.30
7.3.270.0070.01017.40
7.3.260.0120.00616.53
7.3.250.0100.01016.44
7.3.240.0100.00716.29
7.3.230.0170.00716.39
7.3.210.0130.00416.38
7.3.200.0030.01319.39
7.3.190.0100.00716.50
7.3.180.0100.00716.42
7.3.170.0030.01716.27
7.3.160.0060.00916.45
7.2.330.0070.01016.31
7.2.320.0090.00916.49
7.2.310.0070.01116.63
7.2.300.0110.00616.59
7.2.290.0160.00316.32
7.2.60.0030.00916.84
7.1.200.0090.00015.70
7.1.70.0070.00016.75
7.1.60.0070.01519.50
7.1.50.0170.01016.85
7.1.00.0100.06722.57
7.0.200.0000.00716.81
7.0.60.0100.07319.95
7.0.50.0200.06717.88
7.0.40.0100.04020.27
7.0.30.0300.04720.00
7.0.20.0200.04720.19
7.0.10.0170.07720.25
7.0.00.0070.08320.19
5.6.280.0030.07321.15
5.6.210.0030.07320.72
5.6.200.0070.08018.22
5.6.190.0070.04320.77
5.6.180.4100.03720.39
5.6.170.0230.05720.39
5.6.160.0130.08320.39
5.6.150.0070.08318.08
5.6.140.0030.07318.18
5.6.130.0100.08318.19
5.6.120.0030.04721.02
5.6.110.0130.03021.02
5.6.100.0030.06720.88
5.6.90.0130.08321.07
5.6.80.0000.04020.33
5.5.350.0130.06020.36
5.5.340.0030.05017.91
5.5.330.0100.08320.19
5.5.320.0470.06320.13
5.5.310.0300.07320.21
5.5.300.0000.07317.95
5.5.290.0100.03717.96
5.5.280.0030.08720.88
5.5.270.0130.08020.86
5.5.260.0070.08320.68
5.5.250.0100.05020.68
5.5.240.0030.08020.07
5.4.450.0800.04719.15
5.4.440.0030.04019.40
5.4.430.0370.03719.40
5.4.420.0130.05019.31
5.4.410.0170.06718.68
5.4.400.0200.05718.77
5.4.390.0070.06018.45
5.4.380.0130.05318.68
5.4.370.0300.05318.49
5.4.360.0030.05718.74
5.4.350.0170.05018.78
5.4.340.0030.06718.58
5.4.320.0070.05718.52
5.4.310.0100.05318.50
5.4.300.0200.04318.77
5.4.290.0030.05718.73
5.4.280.0030.06318.66
5.4.270.0130.04718.67
5.4.260.0270.03318.60
5.4.250.0070.05718.75
5.4.240.0200.05718.71
5.4.230.0030.06018.62
5.4.220.0100.05718.72
5.4.210.0130.05018.61
5.4.200.0030.06316.52
5.4.190.0170.04718.66
5.4.180.0100.07718.70
5.4.170.0100.07018.66
5.4.160.0070.05718.50
5.4.150.0070.06718.58
5.4.140.0100.05316.07
5.4.130.0100.04716.20
5.4.120.0170.05016.06
5.4.110.0130.04316.17
5.4.100.0170.04316.13
5.4.90.0100.06016.13
5.4.80.0030.05316.14
5.4.70.0070.06016.12
5.4.60.0130.04716.19
5.4.50.0070.05016.28
5.4.40.0070.05716.14
5.4.30.0030.06016.27
5.4.20.0130.05016.21
5.4.10.0130.04716.16
5.4.00.0130.04715.49
5.3.290.0100.05314.59
5.3.280.0170.04314.50
5.3.270.0100.05714.60
5.3.260.0070.05714.70
5.3.250.0100.05314.72
5.3.240.0100.05014.58
5.3.230.0200.04314.53
5.3.220.0070.05714.47
5.3.210.0070.05714.47
5.3.200.0100.05014.49
5.3.190.0000.06014.54
5.3.180.0270.04714.54
5.3.170.0200.05014.65
5.3.160.0070.05714.59
5.3.150.0070.07714.54
5.3.140.0100.05014.50
5.3.130.0070.06014.54
5.3.120.0100.05314.53
5.3.110.0100.06014.52
5.3.100.0130.05013.95
5.3.90.0070.05713.96
5.3.80.0130.04713.96
5.3.70.0100.05013.95
5.3.60.0100.05013.99
5.3.50.0070.05313.87
5.3.40.0070.05713.90
5.3.30.0070.05313.80
5.3.20.0170.04313.65
5.3.10.0070.05013.55
5.3.00.0100.05013.62
5.2.170.0070.04311.13
5.2.160.0070.04311.06
5.2.150.0070.04711.17
5.2.140.0130.04011.09
5.2.130.0070.04311.05
5.2.120.0130.04011.23
5.2.110.0130.03311.23
5.2.100.0130.03311.02
5.2.90.0070.04011.08
5.2.80.0130.03711.13
5.2.70.0030.04711.05
5.2.60.0070.04011.11
5.2.50.0070.04011.06
5.2.40.0070.04011.03
5.2.30.0030.04711.01
5.2.20.0070.04011.09
5.2.10.0070.04010.86
5.2.00.0030.04310.75
5.1.60.0070.03010.04
5.1.50.0070.0379.99
5.1.40.0000.04010.07
5.1.30.0030.04010.46
5.1.20.0070.03710.36
5.1.10.0070.04310.04
5.1.00.0100.03310.09
5.0.50.0000.0338.57
5.0.40.0070.0238.47
5.0.30.0070.0538.23
5.0.20.0070.0378.30
5.0.10.0000.0438.26
5.0.00.0030.0438.15
4.4.90.0030.0235.94
4.4.80.0070.0235.96
4.4.70.0100.0175.89
4.4.60.0030.0235.90
4.4.50.0000.0275.89
4.4.40.0100.0305.95
4.4.30.0030.0235.86
4.4.20.0030.0235.94
4.4.10.0000.0276.02
4.4.00.0070.0305.90
4.3.110.0030.0235.80
4.3.100.0030.0235.82
4.3.90.0030.0235.86
4.3.80.0030.0375.87
4.3.70.0070.0205.89
4.3.60.0000.0305.77
4.3.50.0030.0235.81
4.3.40.0000.0375.76
4.3.30.0000.0274.59
4.3.20.0100.0174.54
4.3.10.0070.0204.51
4.3.00.0030.02015.82

preferences:
29.32 ms | 403 KiB | 5 Q