3v4l.org

run code in 300+ PHP versions simultaneously
<?php CONST MIN = 1; CONST MAX = 1000000000; $result = 0; for ($i = MIN; $i <= MAX; $i++) { $result += $i; } var_dump($result); $result = (MIN + MAX) * (MAX / 2) //It's *MAX/2 because the step is 1 (there are MAX elements to the series).

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.10.0030.05317.23
5.5.00.0100.07317.19
5.4.170.0130.07018.94
5.4.160.0070.05018.95
5.4.150.0100.07719.02
5.4.140.0070.06716.27
5.4.130.0030.07316.26
5.4.120.0200.05716.17
5.4.110.0030.06716.26
5.4.100.0100.07016.19
5.4.90.0000.05716.17
5.4.80.0030.06316.13
5.4.70.0070.07016.16
5.4.60.0130.05016.50
5.4.50.0000.08316.23
5.4.40.0070.06716.36
5.4.30.0100.07316.50
5.4.20.0070.03316.22
5.4.10.0030.06316.38
5.4.00.0170.04715.69
5.3.270.0100.07714.55
5.3.260.0030.08014.46
5.3.250.0130.05714.55
5.3.240.0170.05714.58
5.3.230.0100.05314.57
5.3.220.0070.04714.50
5.3.210.0130.07014.54
5.3.200.0030.08314.54
5.3.190.0000.07314.39
5.3.180.0070.07314.42
5.3.170.0030.08014.51
5.3.160.0030.07714.52
5.3.150.0100.07014.53
5.3.140.0070.08014.38
5.3.130.0030.08014.49
5.3.120.0030.05014.46
5.3.110.0070.03714.54
5.3.100.0070.07313.86
5.3.90.0100.06013.93
5.3.80.0070.06013.89
5.3.70.0100.07313.79
5.3.60.0030.05313.99
5.3.50.0070.07313.94
5.3.40.0230.03313.91
5.3.30.0070.06313.84
5.3.20.0070.06313.46
5.3.10.0030.03713.60
5.3.00.0030.03713.41

preferences:
140.36 ms | 1394 KiB | 7 Q