3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Arrange $object = new SplFixedArray(2); $object[0] = 'first-value'; $object[1] = 'second-value'; // Act foreach ($object as $key1 => $val1) { foreach ($object as $key2 => $val2) { break; } } // Assert // Will never execute... assert(TRUE === FALSE); // Zjistěte proč v článku na pehapkari.cz: https://github.com/pehapkari/pehapkari.cz/pull/285 // Step into explanation at GitHub: https://github.com/pehapkari/pehapkari.cz/pull/285/files#diff-7677a91736a5051440021053d8fa6962R9

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)
7.4.40.0162.44916.43
7.4.30.0202.36416.49
7.3.160.0102.46416.42
7.3.150.0242.34716.46
7.3.50.0262.39214.66
7.3.40.0172.45714.53
7.2.290.0232.45216.64
7.2.180.0132.45014.84
7.2.170.0132.41314.76
7.2.70.1502.30514.85
7.2.60.1262.34514.89
7.2.50.1612.31514.59
7.2.40.1352.29114.81
7.1.280.0102.45213.42
7.1.170.1362.34313.44
7.1.110.0172.35816.26
7.1.100.0202.36016.16
7.0.300.1592.30913.43
7.0.250.0162.46315.60
7.0.240.0482.33416.10

preferences:
10.13 ms | 406 KiB | 5 Q