3v4l.org

run code in 300+ PHP versions simultaneously
<?php $target_dir = "in/"; $uploaded_file = 'asurite_hw1.m'; // Splits the input file name and its extension. $base_name = pathinfo($uploaded_file, PATHINFO_FILENAME); $extension = pathinfo($uploaded_file, PATHINFO_EXTENSION); // Searches through other submissions from the student // and returns the next highest attempt ct. $previous_files = glob($target_dir . $base_name . '*'); $previous_files = array('asurite_hw1_1.m'); $attempt = 1; foreach ($previous_files as $f) { $r = preg_match('/.+_(\d+)\.m/', $f, $matches); if (count($matches) > 1 && $attempt <= $matches[1]) { $attempt = $attempt + 1; } } print_r($id); $ ?>

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.0.20.0270.05720.33
7.0.10.0070.07020.23
7.0.00.0100.08020.15
5.6.170.0030.04020.44
5.6.160.0170.07020.50
5.6.150.0030.07318.15
5.6.140.0070.07718.11
5.6.130.0000.05018.18
5.6.120.0100.07321.01
5.6.110.0070.07720.98
5.6.100.0100.07021.13
5.6.90.0230.07020.97
5.6.80.0030.07320.51
5.5.310.0270.06720.30
5.5.300.0070.05017.98
5.5.290.0030.05717.92
5.5.280.0130.07320.80
5.5.270.0100.07020.87
5.5.260.0070.04320.95
5.5.250.0000.07020.78
5.5.240.0230.07020.28

preferences:
149.63 ms | 1394 KiB | 7 Q