3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"data":[{"photo":{"url":"https://filerepo.grupawp.pl/api/v1/display/embed/8b9a3db8-c43c-4d0f-b815-1d7c7aedd1c3","author":"Witold Ziomek","source":"Materiały WP","width":"5184","height":"3456"},"points":[{"left":"42%","top":"70%","title":"Drzwi","photo":{}},{"left":"83%","top":"21%","title":"Okno","photo":{}}]}]}'; $d = json_decode($json, true); print_r($d);
Output for 7.3.13 - 7.3.33, 7.4.0 - 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.4, 8.3.6 - 8.3.7
Array ( [data] => Array ( [0] => Array ( [photo] => Array ( [url] => https://filerepo.grupawp.pl/api/v1/display/embed/8b9a3db8-c43c-4d0f-b815-1d7c7aedd1c3 [author] => Witold Ziomek [source] => Materiały WP [width] => 5184 [height] => 3456 ) [points] => Array ( [0] => Array ( [left] => 42% [top] => 70% [title] => Drzwi [photo] => Array ( ) ) [1] => Array ( [left] => 83% [top] => 21% [title] => Okno [photo] => Array ( ) ) ) ) ) )
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Array ( [data] => Array ( [0] => Array ( [photo] => Array ( [url] => https://filerepo.grupawp.pl/api/v1/display/embed/8b9a3db8-c43c-4d0f-b815-1d7c7aedd1c3 [author] => Witold Ziomek [source] => Materiały WP [width] => 5184 [height] => 3456 ) [points] => Array ( [0] => Array ( [left] => 42% [top] => 70% [title] => Drzwi [photo] => Array ( ) ) [1] => Array ( [left] => 83% [top] => 21% [title] => Okno [photo] => Array ( ) ) ) ) ) )

preferences:
148.37 ms | 405 KiB | 144 Q