3v4l.org

run code in 300+ PHP versions simultaneously
<?php <html><body><h1>1KB Forum</h1><?mysql_connect('localhost','username','********');mysql_select_db('d');extract($_REQUEST);$v=intval($v);$i=0;$q='mysql_query';$f='mysql_fetch_row';$n='mysql_num_rows';$x='<input type="';$s="SELECT*FROM";$t='CREATE TABLE IF NOT EXISTS t(i INT AUTO_INCREMENT,a INT,b TEXT,KEY(i))';$h='htmlspecialchars';$q($t);$q(str_replace('t','p',$t));$l=' ORDER BY';$o='';$u='INSERT INTO';$c="b)VALUES('";if($b){if(!$v)$q("$u t($c$e')");$v=max($v,mysql_insert_id());$q("$u p(a,$c$v','$b')");}if($v){$t=$q("$s p WHERE a=$v$l i");echo'<a href="f.php">Back</a>';for(;$i<$n($t);++$i){$r=$f($t);echo'<hr/>'.nl2br($h($r[2]));}}else{$t=$q("$s t$l-i");for(;$i<$n($t);++$i){$r=$f($t);echo'<a href="f.php?v='.$r[0].'">'.$h($r[2]).'</a><br/>';}$o='Title:'.$x.'text"name="e"/><br/>';}echo'<hr/>Post:<form action="f.php"method="post">'.$x.'hidden"name="v"value="'."$v\"/>$o<textarea name=\"b\"></textarea>$x";?>submit"name="w"value="Post"/></form></body></htm ?>

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.5.100.3270.04019.38
5.5.90.3430.03719.36
5.5.80.3370.04019.32
5.5.70.3770.03319.57
5.5.60.3730.04019.36
5.5.50.3930.04019.25
5.5.40.4030.04719.32
5.5.30.4100.03719.32
5.5.20.4070.04719.41
5.5.10.4100.03719.33
5.5.00.4070.04019.41
5.4.260.3170.03719.03
5.4.250.3600.03019.10
5.4.240.3700.03719.12
5.4.230.3470.04319.01
5.4.220.4330.04319.10
5.4.210.4270.04019.11
5.4.200.3700.04019.04
5.4.190.4130.04019.26
5.4.180.4200.03719.04
5.4.170.3300.04019.09
5.4.160.4130.03719.01
5.4.150.3700.03019.25
5.4.140.3870.03716.24
5.4.130.4230.03716.35
5.4.120.3930.04016.39
5.4.110.3570.04016.24
5.4.100.3400.04016.59
5.4.90.3770.03016.30
5.4.80.3330.03016.45
5.4.70.0070.03016.35
5.4.60.0000.07716.21
5.4.50.3700.03716.21
5.4.40.3230.03016.34
5.4.30.3530.02716.55
5.4.20.3800.03316.38
5.4.10.4570.03716.20
5.4.00.4130.03315.83
5.3.280.3330.04014.55
5.3.270.3870.03714.46
5.3.260.4130.04014.56
5.3.250.4030.03014.56
5.3.240.4200.03714.57
5.3.230.3730.04314.44
5.3.220.3600.04014.52
5.3.210.3300.03714.56
5.3.200.3400.04014.67
5.3.190.3730.03714.54
5.3.180.3930.04014.48
5.3.170.2800.03714.65
5.3.160.0070.03714.34
5.3.150.3270.03714.35
5.3.140.3700.04014.50
5.3.130.3270.04014.52
5.3.120.3400.04014.54
5.3.110.4130.04014.52
5.3.100.4370.03314.01
5.3.90.4230.03313.99
5.3.80.4170.04014.00
5.3.70.4300.04313.96
5.3.60.4170.04013.94
5.3.50.3670.04013.71
5.3.40.2170.04013.73
5.3.30.0000.04013.88
5.3.20.1300.03313.65
5.3.10.3470.04313.62
5.3.00.3630.04313.59

preferences:
139.35 ms | 1394 KiB | 7 Q