3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Set these right at the top! ini_set('display_errors', 'On'); error_reporting(-1); session_start(); include '../connect.php'; $_SESSION['db'] = 'concorso'; //name of database $_SESSION['quiz']='simulazione'; //name of table $_SESSION['quiz_id'] = 2; //generates casual numbers $sql = "SELECT COUNT(*) FROM {$_SESSION['quiz']}"; $stmt = $dbh->prepare($sql); $stmt->execute(); $rows = $stmt->fetch(PDO::FETCH_NUM); //Number of rows in table $_SESSION['numbers'] = range(1, $rows[0]); shuffle($_SESSION['numbers']); echo $rows[0]; ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Test Page</title> </head> <body> </body> </html>

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)
7.4.10.0030.01616.63
7.4.00.0030.01616.52
7.3.130.0030.01516.41
7.3.120.0060.00616.39
7.3.110.0070.01016.41
7.3.100.0030.00916.50
7.3.90.0060.00616.30
7.3.80.0080.00816.70
7.3.70.0030.01216.41
7.3.60.0070.00716.35
7.3.50.0080.00416.41
7.3.40.0000.01516.29
7.3.30.0080.00316.39
7.3.20.0030.00917.98
7.3.10.0080.00817.36
7.3.00.0050.00917.49
7.2.260.0110.00616.64
7.2.250.0060.01216.49
7.2.240.0030.01716.56
7.2.230.0060.01216.60
7.2.220.0030.01016.75
7.2.210.0060.01016.73
7.2.200.0060.00616.80
7.2.190.0060.00616.60
7.2.180.0070.00316.54
7.2.170.0060.01016.65
7.2.160.0100.00316.43
7.2.150.0040.01218.35
7.2.140.0100.00718.38
7.2.130.0070.00717.67
7.2.120.0110.00717.63
7.2.110.0180.00217.72
7.2.100.0070.00917.75
7.2.90.0040.01117.78
7.2.80.0110.00317.61
7.2.70.0090.00617.65
7.2.60.0090.00817.51
7.2.50.0060.00917.81
7.2.40.0040.00917.64
7.2.30.0060.00917.70
7.2.20.0070.01217.75
7.2.10.0090.00817.67
7.2.00.0090.00718.30
7.1.330.0000.01617.37
7.1.320.0030.00917.32
7.1.310.0150.00017.28
7.1.300.0030.01017.26
7.1.290.0070.00717.47
7.1.280.0030.01217.39
7.1.270.0060.00617.36
7.1.260.0000.01417.31
7.1.250.0080.00516.67
7.1.240.0070.00516.65
7.1.230.0090.00516.63
7.1.220.0070.00716.55
7.1.210.0050.00816.58
7.1.200.0080.00416.71
7.1.190.0070.00916.60
7.1.180.0100.00316.55
7.1.170.0080.00416.52
7.1.160.0080.00716.61
7.1.150.0060.00616.59
7.1.140.0050.00816.51
7.1.130.0080.00816.43
7.1.120.0090.00916.59
7.1.110.0000.01316.62
7.1.100.0020.01116.57
7.1.90.0070.00916.65
7.1.80.0070.00816.53
7.1.70.0080.00416.83
7.1.60.0080.00616.88
7.1.50.0190.00922.11
7.1.40.0150.00622.02
7.1.30.0150.01022.03
7.1.20.0120.00822.01
7.1.10.0120.01015.96
7.1.00.0100.01115.95
7.0.330.0070.00816.30
7.0.320.0100.00516.17
7.0.310.0080.00616.14
7.0.300.0090.00516.18
7.0.290.0070.00716.15
7.0.280.0090.00616.13
7.0.270.0030.00916.16
7.0.260.0080.00416.22
7.0.250.0050.01116.35
7.0.240.0070.00516.24
7.0.230.0070.00716.13
7.0.220.0050.00816.25
7.0.210.0050.00916.18
7.0.200.0070.00716.46
7.0.190.0120.00915.63
7.0.180.0100.00815.55
7.0.170.0120.00515.53
7.0.160.0120.00815.62
7.0.150.0140.00915.59
7.0.140.0110.00615.66
7.0.130.0120.01015.63
7.0.120.0150.00615.47
7.0.110.0100.01115.55
7.0.100.0120.00815.56
7.0.90.0530.00815.44
7.0.80.0090.01015.67
7.0.70.0110.01115.49
7.0.60.0110.00715.56
7.0.50.0140.00915.64
7.0.40.0100.01114.32
7.0.30.0170.00714.52
7.0.20.0100.00814.22
7.0.10.0170.00414.23
7.0.00.0180.00314.30
5.6.400.0030.01115.88
5.6.390.0080.00616.21
5.6.380.0070.00315.18
5.6.370.0030.00715.98
5.6.360.0000.01316.00
5.6.350.0000.01415.74
5.6.340.0060.01315.84
5.6.330.0030.01016.10
5.6.320.0040.00716.08
5.6.310.0070.01416.02
5.6.300.0030.00915.92
5.6.290.0170.00016.30
5.6.280.0060.01216.06
5.6.270.0070.00316.07
5.6.260.0070.00716.04
5.6.250.0060.00916.09
5.6.240.0100.00616.10
5.6.230.0100.01015.96
5.6.220.0000.01116.02
5.6.210.0030.00915.96
5.6.200.0130.00316.10
5.6.190.0030.01015.93
5.6.180.0060.01316.04
5.6.170.0170.00315.76
5.6.160.0090.00615.63
5.6.150.0000.01315.92
5.6.140.0060.01015.88
5.6.130.0150.00015.99
5.6.120.0030.01015.86
5.6.110.0090.00915.82
5.6.100.0130.00715.93
5.6.90.0150.00415.90
5.6.80.0070.01415.75
5.6.70.0070.01015.61
5.6.60.0100.00315.90
5.6.50.0140.00715.95
5.6.40.0030.01215.89
5.6.30.0100.00715.84
5.6.20.0000.01216.00
5.6.10.0070.00715.84
5.6.00.0060.01015.81

preferences:
40.51 ms | 401 KiB | 5 Q