3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); $instruments = array(); $instruments['111'] = '111'; $instruments['222'] = '222'; $instruments['333'] = '333'; var_dump($instruments);
Output for 7.4.0 - 7.4.29, 8.0.1 - 8.0.19, 8.1.0 - 8.1.6
array(3) { [111]=> string(3) "111" [222]=> string(3) "222" [333]=> string(3) "333" }

preferences:
24.31 ms | 409 KiB | 5 Q