3v4l.org

run code in 300+ PHP versions simultaneously
<?php $log_data = time() . " - " . memory_get_usage() . PHP_EOL; echo $log_data;
Output for 7.3.0 - 7.3.1
1402405871 - 386320
Output for 7.2.0 - 7.2.13
1402405871 - 382392
Output for 7.1.25
1402405871 - 345688
Output for 7.1.0, 7.1.7
1402405871 - 345760
Output for 7.1.5 - 7.1.6
1402405871 - 345840
Output for 7.0.0 - 7.0.20
1402405871 - 345744
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.28
1402405871 - 216440
Output for 5.4.10 - 5.4.45
1402405871 - 216960
Output for 5.4.0 - 5.4.9
1402405871 - 216432
Output for 5.3.11 - 5.3.29
1402405871 - 619152
Output for 5.3.0 - 5.3.10
1402405871 - 618848
Output for 5.2.10 - 5.2.17
1402405871 - 76912
Output for 5.2.7 - 5.2.9
1402405871 - 77416
Output for 5.2.3 - 5.2.6
1402405871 - 77736
Output for 5.2.2
1402405871 - 75592
Output for 5.2.1
1402405871 - 75536
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/oPI2C on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: memory_get_usage() in /in/oPI2C on line 3
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/oPI2C on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: memory_get_usage() in /in/oPI2C on line 3

preferences:
128.83 ms | 401 KiB | 232 Q