3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user = 'root'; $password = 'root'; $db = 'inventory'; $host = 'localhost'; $port = 8889; $link = mysql_connect( "$host:$port", $user, $password ); $db_selected = mysql_select_db( $db, $link ); ?>

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.70.0100.01018.43
8.3.60.0110.00716.75
8.3.50.0080.01221.14
8.3.40.0090.00618.75
8.3.30.0070.00718.84
8.3.20.0040.00420.29
8.3.10.0080.00023.48
8.3.00.0000.00819.56
8.2.180.0130.01016.50
8.2.170.0100.00322.96
8.2.160.0070.00720.56
8.2.150.0110.00725.66
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0030.00517.50
8.2.110.0060.00322.13
8.2.100.0090.00317.50
8.2.90.0030.00619.09
8.2.80.0040.00417.97
8.2.70.0030.00517.63
8.2.60.0060.00317.80
8.2.50.0040.00418.07
8.2.40.0050.00319.28
8.2.30.0030.00520.60
8.2.20.0050.00317.68
8.2.10.0040.00418.11
8.2.00.0060.00317.92
8.1.280.0070.00725.92
8.1.270.0070.01123.96
8.1.260.0100.00026.35
8.1.250.0040.00428.09
8.1.240.0040.01422.48
8.1.230.0040.00717.64
8.1.220.0000.00817.78
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00817.11
8.1.180.0050.00318.10
8.1.170.0030.00618.46
8.1.160.0040.00421.86
8.1.150.0050.00318.70
8.1.140.0080.00017.30
8.1.130.0090.00017.59
8.1.120.0020.00517.39
8.1.110.0050.00217.42
8.1.100.0040.00417.32
8.1.90.0000.00817.43
8.1.80.0040.00417.32
8.1.70.0030.00317.35
8.1.60.0080.00017.47
8.1.50.0040.00417.50
8.1.40.0030.00517.56
8.1.30.0030.00617.54
8.1.20.0040.00417.58
8.1.10.0000.00817.46
8.1.00.0050.00317.34
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.38
8.0.270.0000.00717.10
8.0.260.0030.00517.06
8.0.250.0040.00416.98
8.0.240.0030.00316.88
8.0.230.0000.00716.81
8.0.220.0000.00716.88
8.0.210.0040.00416.89
8.0.200.0000.00816.89
8.0.190.0050.00316.93
8.0.180.0070.00016.96
8.0.170.0040.00416.93
8.0.160.0000.00716.92
8.0.150.0000.00716.86
8.0.140.0040.00416.71
8.0.130.0060.00013.30
8.0.120.0030.00516.74
8.0.110.0000.00716.79
8.0.100.0000.00716.76
8.0.90.0000.00716.96
8.0.80.0120.00316.88
8.0.70.0070.00016.72
8.0.60.0070.00016.88
8.0.50.0020.00516.88
8.0.30.0120.00717.05
8.0.20.0110.00817.40
8.0.10.0040.00417.00
8.0.00.0070.01116.75
7.4.330.0000.00515.08
7.4.320.0030.00316.45
7.4.300.0000.00616.48
7.4.290.0040.00816.36
7.4.280.0080.00316.46
7.4.270.0030.00316.46
7.4.260.0070.00016.58
7.4.250.0040.00416.36
7.4.240.0020.00516.44
7.4.230.0000.00716.60
7.4.220.0140.01016.60
7.4.210.0040.01116.46
7.4.200.0040.00416.30
7.4.160.0130.00316.37
7.4.150.0160.00717.40
7.4.140.0080.01217.86
7.4.130.0100.01016.44
7.4.120.0110.00816.52
7.4.110.0120.00616.57
7.4.100.0100.01016.68
7.4.90.0120.00616.50
7.4.80.0100.01019.39
7.4.70.0060.01116.60
7.4.60.0120.00416.52
7.4.50.0030.00516.43
7.4.40.0030.01416.46
7.4.30.0070.01016.61
7.4.00.0050.01015.04
7.3.330.0050.00013.16
7.3.320.0050.00013.10
7.3.310.0000.00716.22
7.3.300.0030.00316.28
7.3.290.0080.00616.23
7.3.280.0050.01416.25
7.3.270.0030.01417.40
7.3.260.0030.01416.41
7.3.250.0120.00616.29
7.3.240.0030.01316.59
7.3.230.0080.00816.54
7.3.210.0060.01016.45
7.3.200.0100.00616.19
7.3.190.0140.00316.52
7.3.180.0090.00616.48
7.3.170.0120.00416.48
7.3.160.0160.00416.31
7.3.120.0060.01214.73
7.3.110.0070.01014.68
7.3.100.0120.00314.89
7.3.90.0090.00614.66
7.3.80.0070.00714.72
7.3.70.0060.00314.76
7.3.60.0060.00814.84
7.3.50.0070.00714.86
7.3.40.0100.00614.58
7.3.30.0090.00314.58
7.3.20.0060.00916.67
7.3.10.0040.00916.38
7.3.00.0030.00716.59
7.2.330.0070.01016.55
7.2.320.0080.00816.23
7.2.310.0120.00616.58
7.2.300.0060.00916.22
7.2.290.0120.00616.43
7.2.250.0090.00914.75
7.2.240.0040.00714.81
7.2.230.0070.00714.61
7.2.220.0030.00615.05
7.2.210.0080.00614.63
7.2.200.0040.00715.05
7.2.190.0030.00614.89
7.2.180.0070.00314.95
7.2.170.0070.01014.77
7.2.130.0070.00716.82
7.2.120.0110.00716.50
7.2.110.0040.00816.65
7.2.100.0100.00716.73
7.2.90.0070.00716.68
7.2.80.0030.00616.70
7.2.70.0120.00316.42
7.2.60.0030.01016.47
7.2.50.0030.00716.89
7.2.40.0090.00616.87
7.2.30.0060.00616.54
7.2.20.0030.01016.63
7.2.10.0090.00616.88
7.2.00.0040.00817.87
7.1.330.0000.01315.68
7.1.320.0040.01115.59
7.1.310.0040.01215.46
7.1.300.0060.00315.62
7.1.290.0100.00715.54
7.1.280.0120.00315.39
7.1.270.0080.00415.49
7.1.260.0060.00615.60
7.1.250.0090.00315.55
7.1.200.0090.00615.39
7.1.100.0040.01118.13
7.1.70.0000.00717.04
7.1.60.0070.01719.50
7.1.50.0200.01034.39
7.1.00.0070.07322.52
7.0.200.0000.00916.37
7.0.60.0100.06321.63
7.0.50.0070.08017.78
7.0.40.0170.08020.40
7.0.30.0370.06720.34
7.0.20.0230.04320.22
7.0.10.0030.04320.16
7.0.00.0070.04320.16
5.6.280.0030.03321.06
5.6.210.0130.07320.70
5.6.200.0000.08718.16
5.6.190.0070.06720.41
5.6.180.0030.09020.32
5.6.170.0230.06020.50
5.6.160.0030.05020.50
5.6.150.0070.04718.11
5.6.140.0030.03718.18
5.6.130.0070.05718.18
5.6.120.0100.08321.01
5.6.110.0130.08320.88
5.6.100.0200.06321.02
5.6.90.0070.08321.12
5.6.80.0000.04020.40
5.5.350.0230.08020.44
5.5.340.0100.05017.91
5.5.330.0030.09020.40
5.5.320.0330.07320.29
5.5.310.0270.08020.28
5.5.300.0030.05317.88
5.5.290.0030.07717.98
5.5.280.0030.04720.67
5.5.270.0170.06720.88
5.5.260.0070.08020.75
5.5.250.0000.08320.69
5.5.240.0730.05020.15
5.4.450.0570.06019.45
5.4.440.0630.04719.63
5.4.430.0630.05019.48
5.4.420.0630.05019.43
5.4.410.0630.05719.47
5.4.400.0700.04319.28
5.4.390.0730.05319.20
5.4.380.0530.05018.99
5.4.370.0530.05319.11
5.4.360.0570.05319.19
5.4.350.0870.05318.81
5.4.340.0470.06319.15
5.4.320.0500.06019.09
5.4.310.0530.05318.91
5.4.300.0570.05719.16
5.4.290.0570.05319.08
5.4.280.0530.05319.16
5.4.270.0730.05719.16
5.4.260.0600.04719.10
5.4.250.0600.05019.30
5.4.240.0770.05719.04
5.4.230.0730.05718.91
5.4.220.0600.06019.25
5.4.210.0630.04319.29
5.4.200.0570.05019.14
5.4.190.0530.06319.29
5.4.180.0600.04719.29
5.4.170.0570.05318.77
5.4.160.0530.06319.17
5.4.150.0570.05319.14
5.4.140.0570.05316.23
5.4.130.0530.05716.33
5.4.120.0570.04316.45
5.4.110.0570.06016.49
5.4.100.0200.05716.46
5.4.90.0130.06316.46
5.4.80.0130.05016.53
5.4.70.0130.06016.37
5.4.60.0130.04016.16
5.4.50.0300.06316.39
5.4.40.0400.05716.45
5.4.30.0030.03316.04
5.4.20.0000.06016.36
5.4.10.0300.05016.44

preferences:
58.84 ms | 401 KiB | 5 Q