3v4l.org

run code in 300+ PHP versions simultaneously
<?php define ("db_user", "*"); define ("db_pswd", "*"); define ("db_host", "*"); define ("db_name", "*"); $dbconnect = mysql_connect(db_host, db_user, db_pswd, db_name); if (!$dbconnect) { die ("Error: connection to databese failed."); } echo "You have successfully connected to the databese"; ?>

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.4.120.0090.01221.91
8.4.110.0120.00822.27
8.4.100.0020.00718.13
8.4.90.0120.00818.74
8.4.80.0140.00619.55
8.4.70.0120.00818.02
8.4.60.0120.00919.02
8.4.50.0050.00418.78
8.4.40.0130.00619.55
8.4.30.0090.00917.77
8.4.20.0120.00619.70
8.4.10.0090.00019.62
8.3.250.0120.00818.75
8.3.240.0090.00816.61
8.3.230.0040.00516.52
8.3.220.0090.00916.92
8.3.210.0080.00616.55
8.3.200.0050.00416.60
8.3.190.0100.00617.29
8.3.180.0100.00816.57
8.3.170.0070.01120.59
8.3.160.0170.00018.38
8.3.150.0100.00316.70
8.3.140.0110.00718.96
8.3.130.0030.00618.60
8.3.120.0090.00020.66
8.3.110.0060.00320.94
8.3.100.0050.00318.62
8.3.90.0030.00626.77
8.3.80.0030.00618.15
8.3.70.0130.00318.43
8.3.60.0180.00416.75
8.3.50.0120.00319.32
8.3.40.0140.00018.71
8.3.30.0060.00918.71
8.3.20.0000.00721.90
8.3.10.0050.00323.61
8.3.00.0040.00421.72
8.2.290.0070.00320.35
8.2.280.0140.00518.38
8.2.270.0110.00718.89
8.2.260.0000.00816.62
8.2.250.0000.00716.67
8.2.240.0090.00917.16
8.2.230.0030.01322.58
8.2.220.0060.00324.06
8.2.210.0090.00626.77
8.2.200.0030.00616.88
8.2.190.0060.00916.61
8.2.180.0150.00016.84
8.2.170.0070.00722.96
8.2.160.0040.01118.96
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0070.00019.24
8.2.120.0040.00426.35
8.2.110.0100.00719.27
8.2.100.0060.00617.78
8.2.90.0040.00419.09
8.2.80.0030.00619.28
8.2.70.0030.00617.63
8.2.60.0000.00817.91
8.2.50.0050.00318.20
8.2.40.0000.00720.47
8.2.30.0020.00519.30
8.2.20.0000.00918.14
8.2.10.0080.00018.07
8.2.00.0040.00418.18
8.1.330.0040.00421.84
8.1.320.0110.00816.19
8.1.310.0000.00718.62
8.1.300.0060.00316.13
8.1.290.0030.00630.84
8.1.280.0100.01025.92
8.1.270.0080.00022.05
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00022.29
8.1.230.0090.00317.70
8.1.220.0040.00417.74
8.1.210.0040.00718.77
8.1.200.0060.00317.23
8.1.190.0050.00317.22
8.1.180.0080.00018.10
8.1.170.0040.00418.40
8.1.160.0000.00718.82
8.1.150.0030.00318.70
8.1.140.0040.00419.09
8.1.130.0000.00717.58
8.1.120.0000.00717.36
8.1.110.0030.00317.29
8.1.100.0020.00517.23
8.1.90.0040.00417.38
8.1.80.0050.00517.37
8.1.70.0050.00317.38
8.1.60.0080.00017.46
8.1.50.0000.00717.49
8.1.40.0070.00017.49
8.1.30.0050.00517.52
8.1.20.0050.00217.46
8.1.10.0060.00317.43
8.1.00.0000.00917.44
8.0.300.0020.00518.77
8.0.290.0090.00016.75
8.0.280.0000.00818.43
8.0.270.0050.00217.21
8.0.260.0030.00317.20
8.0.250.0030.00316.98
8.0.240.0000.00816.98
8.0.230.0030.00317.03
8.0.220.0040.00416.83
8.0.210.0030.00316.79
8.0.200.0070.00016.86
8.0.190.0040.00416.83
8.0.180.0080.00017.01
8.0.170.0060.00316.84
8.0.160.0070.00016.80
8.0.150.0000.00716.91
8.0.140.0000.00716.88
8.0.130.0000.00613.33
8.0.120.0040.00416.80
8.0.110.0030.00316.96
8.0.100.0070.00016.78
8.0.90.0000.00716.71
8.0.80.0030.01216.87
8.0.70.0070.00016.87
8.0.60.0000.00816.80
8.0.50.0000.00816.91
8.0.30.0110.01017.14
8.0.20.0100.01017.40
8.0.10.0000.00716.95
8.0.00.0100.01216.67
7.4.330.0050.00015.55
7.4.320.0060.00016.41
7.4.300.0030.00316.45
7.4.290.0040.00416.45
7.4.280.0030.00516.59
7.4.270.0000.00716.46
7.4.260.0070.00016.57
7.4.250.0070.00016.46
7.4.240.0000.00716.56
7.4.230.0070.00016.57
7.4.220.0000.00816.57
7.4.210.0100.00816.64
7.4.200.0080.00016.66
7.4.160.0100.00716.51
7.4.150.0080.01417.40
7.4.140.0120.01017.86
7.4.130.0100.00716.34
7.4.120.0120.00816.56
7.4.110.0070.01016.48
7.4.100.0070.01016.37
7.4.90.0060.01116.45
7.4.80.0100.01019.39
7.4.70.0160.00716.34
7.4.60.0070.01016.49
7.4.50.0080.00816.33
7.4.40.0080.00816.60
7.4.00.0040.01114.93
7.3.330.0050.00013.11
7.3.320.0000.00512.95
7.3.310.0090.00016.13
7.3.300.0030.00316.28
7.3.290.0000.00716.32
7.3.280.0050.01016.27
7.3.270.0140.00917.40
7.3.260.0110.00516.42
7.3.250.0090.00916.28
7.3.240.0100.01116.23
7.3.230.0080.00816.25
7.3.210.0040.01316.33
7.3.200.0090.00916.53
7.3.190.0100.01116.25
7.3.180.0120.00616.51
7.3.170.0100.00716.19
7.3.160.0060.01216.40
7.2.330.0160.00616.61
7.2.320.0100.01016.26
7.2.310.0130.01016.45
7.2.300.0070.01016.25
7.2.290.0090.01216.61
7.2.60.0150.00616.66
7.2.00.0100.00519.37
7.1.200.0060.00315.45
7.1.120.0040.01118.52
7.1.110.0080.00617.99
7.1.100.0060.00917.59
7.1.90.0060.00817.93
7.1.80.0050.00817.76
7.1.70.0100.00317.06
7.1.60.0170.01034.87
7.1.50.0210.00834.61
7.1.40.0150.01234.30
7.1.30.0160.01834.46
7.1.20.0160.01034.49
7.1.10.0060.00616.36
7.1.00.0030.00916.45

preferences:
29.46 ms | 403 KiB | 5 Q