3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(json_decode('{"cells": [4,8,11,18,19], "distance": 2}'));
Output for 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.26, 8.0.0 - 8.0.13, 8.1rc1 - rc3
object(stdClass)#1 (2) { ["cells"]=> array(5) { [0]=> int(4) [1]=> int(8) [2]=> int(11) [3]=> int(18) [4]=> int(19) } ["distance"]=> int(2) }

preferences:
34.58 ms | 460 KiB | 5 Q