3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html lang=en> <!-- Eitan Zinberg: This file contains text for review of TMNT. It is linked to a css document that formats it. --> <head> <title>Rancid Tomatoes</title> <meta charset="utf-8" /> <link href="movie.css" type="text/css" rel="stylesheet" /> <link href="http://ycfac197.mc.yu.edu/COM3780/12fa/homework/2/rotten.gif" type="image/gif" rel="shortcut icon" /> </head> <body> <?php $movie = $_GET ["film"]; $info = file($movie . "/info.txt"); $rating = get_rating($info[2]); function get_rating($number){ if ($number >= 60){ return "Fresh"; } else{ return "Rotten"; } } ?> <div id="banner"> <img src="http://ycfac197.mc.yu.edu/COM3780/12fa/homework/2/banner.png" alt="Rancid Tomatoes" /> </div> <h1><?= $info[0] ($info[1]) ?></h1> <div id="content"> <div id="overview"> <div> <img src="<?= $movie ?>/overview.png" alt="general overview" /> </div> <dl> <?php $overview = file($movie . "/overview.txt"); foreach($overview as $line){ list($heading, $details) = explode(":", $line) ?> <dt><?= $heading ?></dt> <dd><?= $details ?> </dd> <?php } ?> </dl> </div> <div id="reviews"> <div id="rating"> <img src="http://ycfac197.mc.yu.edu/COM3780/12fa/homework/2/<?= $rating ?>big.png" alt="<?= $rating ?>" /> <span><?= $info[2] ?>%</span> </div> <div class="column"> <?php $count = 0; $files = glob($movie . "/review*.txt"); $number = count($files); foreach($files as $reviews){ list($review, $freshness, $name, $publication) = $reviews; ?> <p> <img src="http://ycfac197.mc.yu.edu/COM3780/12fa/homework/2/<?= $freshness ?>.gif" alt="<?= $freshness ?>" /> <q><?= $review ?></q> </p> <p> <img src="http://ycfac197.mc.yu.edu/COM3780/12fa/homework/2/critic.gif" alt="Critic" /> $<?= $name ?><br /> <span class="publication"><?= $publication ?></span> </p> <?php $count++; if($count >= $number/2){ </div> <div class="column"> } ?> <?php } ?> </div> <footer><span>(1- <?= $number ?> ) of <?= $number ?></span></footer> </div> <div id="validator"> <a href="http://validator.w3.org/check/referer"><img src="http://ycfac197.mc.yu.edu/COM3780/icons/w3c-html.png" alt="Valid HTML5"></a> <br/> <a href="http://jigsaw.w3.org/css-validator/check/referer?profile=css3"><img src="http://ycfac197.mc.yu.edu/COM3780/icons/w3c-css.png" alt="Valid CSS"></a> </div> </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)
5.4.380.0230.03019.09
5.4.370.0130.04019.22
5.4.360.0230.03319.13
5.4.350.0170.03719.31
5.4.340.0100.04318.84
5.4.320.0170.04319.16
5.4.310.0170.03719.24
5.4.300.0200.03319.15
5.4.290.0170.03719.31
5.4.280.0200.03319.16
5.4.270.0200.03318.98
5.4.260.0170.04719.21
5.4.250.0130.04019.06
5.4.240.0230.03019.05
5.4.230.0170.03719.23
5.4.220.0430.03019.17
5.4.210.0170.03719.08
5.4.200.0330.03718.99
5.4.190.0130.05019.19
5.4.180.0330.04019.13
5.4.170.0230.03019.30
5.4.160.0200.05319.13
5.4.150.0170.04019.11
5.4.140.0170.03716.34
5.4.130.0200.03316.29
5.4.120.0300.04016.52
5.4.110.0100.04016.52
5.4.100.0200.04016.52
5.4.90.0170.03316.51
5.4.80.0130.04016.34
5.4.70.0130.03716.50
5.4.60.0100.04016.27
5.4.50.0130.03716.43
5.4.40.0230.07016.52
5.4.30.0200.03716.51
5.4.20.0330.06316.43
5.4.10.0200.05716.53
5.4.00.0170.04316.16
5.3.290.0200.04314.89
5.3.280.0270.04014.75
5.3.270.0170.07714.63
5.3.260.0200.07314.69
5.3.250.0200.08014.51
5.3.240.0200.04014.61
5.3.230.0170.07014.51
5.3.220.0130.06314.57
5.3.210.0200.03314.49
5.3.200.0270.07014.47
5.3.190.0200.03714.54
5.3.180.0300.06714.64
5.3.170.0100.05014.49
5.3.160.0170.04014.48
5.3.150.0270.06714.79
5.3.140.0200.05314.53
5.3.130.0370.05314.56
5.3.120.0170.04314.47
5.3.110.0230.04714.59
5.3.100.0200.06714.03
5.3.90.0270.07314.24
5.3.80.0270.05314.04
5.3.70.0300.05714.03
5.3.60.0330.03314.08
5.3.50.0230.07013.94
5.3.40.0300.05013.86
5.3.30.0270.06713.93
5.3.20.0300.05013.81
5.3.10.0270.04313.57
5.3.00.0270.04313.66
5.2.170.0200.06011.17
5.2.160.0300.05311.09
5.2.150.0270.06011.19
5.2.140.0230.04711.24
5.2.130.0230.04311.05
5.2.120.0230.03011.20
5.2.110.0200.05011.20
5.2.100.0200.02311.20
5.2.90.0300.04711.13
5.2.80.0130.04311.02
5.2.70.0130.07011.04
5.2.60.0200.03311.07
5.2.50.0170.03710.95
5.2.40.0130.02711.13
5.2.30.0130.04310.88
5.2.20.0100.03310.90
5.2.10.0170.02310.83
5.2.00.0100.03010.66
5.1.60.0030.0309.91
5.1.50.0200.02010.24
5.1.40.0100.02310.12
5.1.30.0130.05010.36
5.1.20.0130.03010.34
5.1.10.0170.05010.14
5.1.00.0130.02710.14
5.0.50.0030.0238.46
5.0.40.0100.0408.59
5.0.30.0070.0308.25
5.0.20.0070.0238.11
5.0.10.0030.0208.11
5.0.00.0070.0608.11
4.4.90.0070.0277.29
4.4.80.0100.0307.29
4.4.70.0370.0207.29
4.4.60.0030.0177.29
4.4.50.0070.0137.29
4.4.40.0030.0277.29
4.4.30.0070.0137.29
4.4.20.0030.0177.29
4.4.10.0030.0177.29
4.4.00.0000.0307.29
4.3.110.0070.0137.29
4.3.100.0030.0177.29
4.3.90.0070.0207.29
4.3.80.0070.0237.29
4.3.70.0070.0177.29
4.3.60.0030.0177.29
4.3.50.0030.0177.29
4.3.40.0070.0237.29
4.3.30.0030.0137.29
4.3.20.0030.0177.29
4.3.10.0000.0177.29
4.3.00.0000.0177.29

preferences:
146.27 ms | 1394 KiB | 7 Q