3v4l.org

run code in 300+ PHP versions simultaneously
Kimberlys-MacBook-Pro-4:~ Kim$ ls Applications in progress.txt Desktop index.html Documents informedconsent.php Downloads libtool Dropbox makechange.py Google Drive mkmf.log HAYststem.dia newref-mpgraph.mp HAYststem.dia~ newref.aux HAYststem.pdf newref.bbl HAYsystem.dia newref.blg HAYsystem.dia~ newref.fdb_latexmk Library newref.log Makefile newref.tex Movies newref.tmp Music newref.tui Pictures newref.tuo PreviousResearch.aux os.c PreviousResearch.synctex.gz parentalconsent.php Public refs.tex Ray Final Exam (Part II).pdf res.cls Ray Final Exam (Parts I & II).pdf scam SVNrep subversion Untitled.txt technicalreport.aux VirtualBox VMs technicalreport.log assignment1 technicalreport.pdf backblue.gif technicalreport.synctex.gz bin technicalreport.synctex.gz(busy) config.log technicalreport.tex config.nice test config.status test.c consentnotification.php test.py doesnotconsent.php tools fade.gif website hts-cache wii.cs.colorado.edu hts-log.txt Kimberlys-MacBook-Pro-4:~ Kim$ vi edit_activity.php Kimberlys-MacBook-Pro-4:~ Kim$ cd .. Kimberlys-MacBook-Pro-4:Users Kim$ cd .. Kimberlys-MacBook-Pro-4:/ Kim$ cd Applications/ Kimberlys-MacBook-Pro-4:Applications Kim$ cd MAMP/htdocs/goal_pages/ Kimberlys-MacBook-Pro-4:goal_pages Kim$ vi edit_activity.php <?php // connect to the database $link = mysql_connect('localhost','root','root'); mysql_select_db("goal_database",$link); function editActivity() { $response = array(); if (isset$_POST("aid")) { $aid = intval($_POST["aid"]); $query = "Update Activities SET ExerciseID=14 WHERE ActivityID='$aid';"; $result = mysql_query($query) or die(mysql_error()); if ($result) { $response["error"] = false; $response["message"] = "Activity updated successfully!"; } else { $response["error"] = true; $response["message"] = "Failed to update activity!"; } } else { $response["error"] = true; $response["message"] = "Things are missing!"; } // echo json response echo json_encode($response); } editActivity();

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)
5.4.250.0060.04312.40
5.4.240.0050.04212.40
5.4.230.0090.04312.39
5.4.220.0060.04312.39
5.4.210.0060.04212.39
5.4.200.0060.04412.39
5.4.190.0060.04212.39
5.4.180.0070.04012.38
5.4.170.0050.04612.39
5.4.160.0060.04312.39
5.4.150.0070.04212.39
5.4.140.0090.04212.08
5.4.130.0080.03912.06
5.4.120.0100.04012.02
5.4.110.0080.04212.02
5.4.100.0080.04112.02
5.4.90.0080.04312.02
5.4.80.0080.04112.02
5.4.70.0080.03912.02
5.4.60.0070.04012.02
5.4.50.0070.04212.01
5.4.40.0070.04012.00
5.4.30.0090.03912.00
5.4.20.0090.03811.99
5.4.10.0070.04011.99
5.4.00.0060.03911.49
5.3.280.0090.04012.71
5.3.270.0060.04612.72
5.3.260.0080.04512.72
5.3.250.0060.04612.72
5.3.240.0070.04312.72
5.3.230.0050.04412.71
5.3.220.0090.04212.68
5.3.210.0060.04412.68
5.3.200.0060.04112.68
5.3.190.0070.04112.68
5.3.180.0070.04012.67
5.3.170.0070.04212.67
5.3.160.0080.04312.67
5.3.150.0080.04012.67
5.3.140.0060.04112.66
5.3.130.0070.04412.66
5.3.120.0070.04312.66
5.3.110.0070.04312.66
5.3.100.0060.04312.12
5.3.90.0060.04412.09
5.3.80.0070.05012.08
5.3.70.0080.04312.08
5.3.60.0090.04012.07
5.3.50.0110.04012.01
5.3.40.0100.04312.01
5.3.30.0060.03611.97
5.3.20.0070.04211.75
5.3.10.0070.03611.71
5.3.00.0070.03611.70

preferences:
142.32 ms | 1394 KiB | 7 Q