3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php //Enter your code here, enjoy! $arr = array(); for($i = 10000; $i > 0 ; $i--) { $arr[] = (int)mt_rand(1,100000); } echo memory_get_usage();

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)
7.0.00.0000.07320.22
5.6.160.0170.03720.55
5.6.150.0100.08018.16
5.6.140.0070.04318.17
5.6.130.0070.07318.18
5.6.120.0170.07321.11
5.6.110.0170.08020.97
5.6.100.0100.04720.98
5.6.90.0200.06721.12
5.6.80.0030.08320.53
5.5.300.0030.04017.97
5.5.290.0070.08318.07
5.5.280.0070.06320.88
5.5.270.0070.08320.67
5.5.260.0070.08020.67
5.5.250.0070.06720.58
5.5.240.0270.06720.26

preferences:
141.1 ms | 1386 KiB | 7 Q