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)
8.3.110.0090.00020.94
8.3.100.0070.00018.58
8.3.90.0090.00626.77
8.3.80.0050.00517.97
8.3.70.0120.00916.50
8.3.60.0110.00718.28
8.3.50.0120.00516.37
8.3.40.0140.00018.82
8.3.30.0120.00318.71
8.3.20.0000.00821.90
8.3.10.0000.00823.70
8.3.00.0040.00419.68
8.2.230.0060.00322.58
8.2.220.0110.00024.06
8.2.210.0030.00526.77
8.2.200.0070.00316.75
8.2.190.0080.00816.88
8.2.180.0100.00716.50
8.2.170.0100.00319.14
8.2.160.0070.00719.34
8.2.150.0050.00225.66
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0040.00420.66
8.2.110.0040.00422.07
8.2.100.0030.00620.52
8.1.290.0040.00430.84
8.1.280.0110.00325.92
8.1.270.0100.00724.66
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0060.00318.62
8.1.230.0090.00018.45
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:
25.03 ms | 403 KiB | 5 Q