3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DB { function escapeSimple($item) { return $item; } } $db = new StdClass(); $db->db = new DB(); $values = array( 'one', 'two', 'three', ); for ($i = 1; $i <= 1000; $i++) { $values_new = array(); foreach($values as $i => $value) { $values_new[$i] = $db->db->escapeSimple($value); } }
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.29, 7.2.29 - 7.2.33, 7.3.16 - 7.3.33, 7.4.3 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6

Process exited with code 137.

preferences:
179.09 ms | 403 KiB | 199 Q