3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "foobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisoutfoobarbizbazbuztestingthisout"; echo memory_get_usage() . "\n"; $c = mb_substr($a, 0, strlen($a) - 1); echo memory_get_usage() . "\n";
Output for 7.4.0 - 7.4.1
387504 388432
Output for 7.3.0 - 7.3.13
387424 388352
Output for 7.2.0 - 7.2.26
383576 384504
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33
346936 347864
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
216984 218064
Output for 5.4.10 - 5.4.45
217504 218584
Output for 5.4.0 - 5.4.9
216976 218056
Output for 5.3.11 - 5.3.29
621560 622632
Output for 5.3.0 - 5.3.10
621256 622328
Output for 5.2.10 - 5.2.17
79736 80800
Output for 5.2.7 - 5.2.9
80168 81240
Output for 5.2.3 - 5.2.6
80488 81560
Output for 5.2.1 - 5.2.2
78384 79456
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0
Fatal error: Call to undefined function memory_get_usage() in /in/cUBXe on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: memory_get_usage() in /in/cUBXe on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Fatal error: Call to undefined function: memory_get_usage() in /in/cUBXe on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: memory_get_usage() in /in/cUBXe on line 4

preferences:
246.6 ms | 401 KiB | 325 Q