3v4l.org

run code in 300+ PHP versions simultaneously
<?php $range = range(1, 10000); $range = array_rand($range, count($range)); foreach ($range as &$r) { $s = &$r; $s++; $s *= $s % 2; $s = array_sum($range) % count($range); }

Abusive script

This script was stopped while abusing our resources

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.450.3202.17722.11
5.4.440.3602.13722.16
5.4.430.3202.17722.14
5.4.420.0272.47022.31
5.4.410.2632.23321.77
5.4.400.4572.03721.54
5.4.390.3902.08321.40
5.4.380.3802.10321.49
5.4.370.3732.10021.51
5.4.360.4232.07021.47
5.4.350.3872.11021.41
5.4.340.4032.08021.46
5.4.320.4172.06321.48
5.4.310.3832.11021.51
5.4.300.3772.11721.51
5.4.290.3672.12321.52
5.4.280.0272.46721.50
5.4.270.3502.12721.53
5.4.260.0332.38721.49
5.4.250.4272.01321.43
5.4.240.3832.06021.46
5.4.230.3971.96721.31
5.4.220.3401.56321.49
5.4.210.2370.98721.27
5.4.200.1730.71319.26
5.4.190.1730.74021.30
5.4.180.1470.63021.51
5.4.170.1570.52021.29
5.4.160.1170.55321.27
5.4.150.1100.53321.48
5.4.140.1170.52319.03
5.4.130.1330.50018.95
5.4.120.1230.43319.05
5.4.110.1200.44719.07
5.4.100.1400.42319.03
5.4.90.1530.40019.06
5.4.80.0700.46318.88
5.4.70.1270.44019.11
5.4.60.1500.42018.93
5.4.50.1130.48318.96
5.4.40.1400.51718.88
5.4.30.3132.17019.16
5.4.20.3232.17319.16
5.4.10.3432.15319.20

preferences:
23.23 ms | 403 KiB | 5 Q