3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_data($a,$dbh){ $_SESSION['quiz_id'] = $_SESSION['numbers'][$a]; $sql = "SELECT question, choice1, choice2, choice3, choice4 FROM {$_SESSION['quiz']} WHERE quizid=?"; $stmt = $dbh->prepare($sql); $stmt->bindParam(1, $_SESSION['quiz_id']); //Associa a array i valori dell'array $stmt->execute(); global $row = $stmt->fetch(); }

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.1.50.0530.01332.77
7.1.40.0330.01332.41
7.1.30.0400.01732.33
7.1.20.0370.01332.65
7.1.10.0330.00714.43
7.1.00.0230.00714.51
7.0.190.0430.01314.63
7.0.180.0230.01014.27
7.0.170.0330.01014.04
7.0.160.0370.00314.07
7.0.150.0300.01314.07
7.0.140.0200.01014.11
7.0.130.0230.00714.12
7.0.120.0200.01314.36
7.0.110.0230.01314.12
7.0.100.0200.01014.07
7.0.90.0300.00714.19
7.0.80.0370.00714.22
7.0.70.0270.00714.14
7.0.60.0300.01014.04
7.0.50.0230.01014.39
7.0.40.0300.01014.32
7.0.30.0300.01014.31
7.0.20.1100.00714.48
7.0.10.0230.01014.34
7.0.00.0300.01014.33

preferences:
142.02 ms | 1394 KiB | 7 Q