3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s='third option showing that you haven't understood anything at all'; $lenght = strlen($s); $limit =20; $r=''; $m=1; for($i=1;$i<$lenght;$i++){ $curr = $s[$i]; if ($i>=$limit*$m && $curr ==' '){ $curr = '<br />'; $m++; } $r.=$curr; } echo $r;

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.140.0070.06716.52
5.4.130.0100.05716.51
5.4.120.0030.07316.24
5.4.110.0070.04016.50
5.4.100.0070.07716.28
5.4.90.0100.06716.39
5.4.80.0030.04316.42
5.4.70.0030.06016.52
5.4.60.0000.04316.45
5.4.50.0000.04316.64
5.4.40.0070.07016.64
5.4.30.0100.04316.36
5.4.20.0000.04016.40
5.4.10.0030.03716.31
5.4.00.0030.03315.94
5.3.240.0030.06314.55
5.3.230.0000.05314.58
5.3.220.0100.05014.54
5.3.210.0130.07314.50
5.3.200.0070.07014.50
5.3.190.0030.06314.46
5.3.180.0100.05314.49
5.3.170.0070.07314.54
5.3.160.0070.03714.49
5.3.150.0030.04014.51
5.3.140.0070.05314.53
5.3.130.0100.03314.47
5.3.120.0130.05714.38
5.3.110.0070.06014.49
5.3.100.0100.05014.01
5.3.90.0100.05713.92
5.3.80.0030.04713.81
5.3.70.0130.06013.95
5.3.60.0030.03713.95
5.3.50.0130.03013.88
5.3.40.0070.04313.87
5.3.30.0130.03313.84
5.3.20.0070.03313.78
5.3.10.0070.04313.48
5.3.00.0070.07013.57

preferences:
144.45 ms | 1394 KiB | 7 Q