3v4l.org

run code in 300+ PHP versions simultaneously
<?php is_noble('Example'); // true $a = 'Hello'; $b = 'World'; is_noble($a); // true is_noble($a . $b); // true, конкатенация двух чистых строк тоже чистая is_noble("Hi $b"); // true is_noble($_GET['id']); // false потому что данные от пользователя is_noble(sprintf('Hi %s', $_GET['name'])); // false is_noble('/bin/rm -rf ' . $_GET['path']); // false is_noble('<img src=' . htmlentities($_GET['src']) . ' />'); // false — никакой ескейпинг не делает строку чистой is_noble('WHERE id = ' . $db->real_escape_string($_GET['id'])); // false

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.60.0110.00418.56
8.3.50.0120.00318.19
8.3.40.0110.00719.13
8.3.30.0120.00318.85
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.180.0110.00425.92
8.2.170.0140.00718.77
8.2.160.0030.01022.96
8.2.150.0110.00725.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0030.00521.12
8.2.110.0000.00820.33
8.2.100.0060.00320.35
8.1.280.0100.00725.92
8.1.270.0110.00424.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00419.12
8.1.230.0060.00322.09

preferences:
30.55 ms | 400 KiB | 5 Q