3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = ['foo', 0]; sort($items); var_dump($items);
Output for 7.2.0 - 7.2.32, 7.3.0 - 7.3.20, 7.4.0 - 7.4.8, 8.0.0alpha1 - alpha3
array(2) { [0]=> string(3) "foo" [1]=> int(0) }