3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = '{"results":[{"id":83213964,"domainId":648668,"name":"pc-gear.nl","type":"SOA","content":"een.dnssrv.nl hostmaster@neostrada.nl 2019102501","ttl":3600,"prio":0},{"id":83213965,"domainId":648668,"name":"pc-gear.nl","type":"NS","content":"een.dnssrv.nl","ttl":3600,"prio":0},{"id":83213966,"domainId":648668,"name":"pc-gear.nl","type":"NS","content":"twee.dnssrv.nl","ttl":3600,"prio":0},{"id":83213968,"domainId":648668,"name":"pc-gear.nl","type":"A","content":"185.87.187.226","ttl":3600,"prio":0},{"id":83213969,"domainId":648668,"name":"localhost.pc-gear.nl","type":"A","content":"127.0.0.1","ttl":3600,"prio":0},{"id":83213970,"domainId":648668,"name":"*.pc-gear.nl","type":"A","content":"185.87.187.226","ttl":3600,"prio":0},{"id":83213971,"domainId":648668,"name":"www.pc-gear.nl","type":"A","content":"185.87.187.226","ttl":3600,"prio":0},{"id":83213972,"domainId":648668,"name":"mail.pc-gear.nl","type":"A","content":"185.87.187.226","ttl":3600,"prio":0},{"id":83213973,"domainId":648668,"name":"webmail.pc-gear.nl","type":"A","content":"185.87.187.226","ttl":3600,"prio":0},{"id":83213974,"domainId":648668,"name":"cpanel.pc-gear.nl","type":"A","content":"185.87.187.226","ttl":3600,"prio":0},{"id":83213975,"domainId":648668,"name":"pc-gear.nl","type":"AAAA","content":"2a00:f10:305:0:1c00:9fff:fe00:51a","ttl":3600,"prio":0},{"id":83213976,"domainId":648668,"name":"*.pc-gear.nl","type":"AAAA","content":"2a00:f10:305:0:1c00:9fff:fe00:51a","ttl":3600,"prio":0},{"id":83213977,"domainId":648668,"name":"www.pc-gear.nl","type":"AAAA","content":"2a00:f10:305:0:1c00:9fff:fe00:51a","ttl":3600,"prio":0},{"id":83213978,"domainId":648668,"name":"mail.pc-gear.nl","type":"AAAA","content":"2a00:f10:305:0:1c00:9fff:fe00:51a","ttl":3600,"prio":0},{"id":83213979,"domainId":648668,"name":"_dmarc.pc-gear.nl","type":"TXT","content":"v=DMARC1; p=none;","ttl":3600,"prio":0},{"id":83213980,"domainId":648668,"name":"pc-gear.nl","type":"MX","content":"mail.pc-gear.nl","ttl":3600,"prio":10},{"id":83213981,"domainId":648668,"name":"pc-gear.nl","type":"TXT","content":"v=spf1 a mx include:spf.totaalholding.nl ip4:185.87.187.226 -all","ttl":3600,"prio":0},{"id":92619388,"domainId":648668,"name":"pc-gear.nl","type":"NS","content":"drie.dnssrv.nl","ttl":3600,"prio":0}]}'; $data = json_decode($result,true); echo $data['results'][0]['type']; print_r(array_column($data['results'],'type'));
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.28, 8.4.1 - 8.4.14, 8.5.0 - 8.5.1
SOAArray ( [0] => SOA [1] => NS [2] => NS [3] => A [4] => A [5] => A [6] => A [7] => A [8] => A [9] => A [10] => AAAA [11] => AAAA [12] => AAAA [13] => AAAA [14] => TXT [15] => MX [16] => TXT [17] => NS )
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.

preferences:
191.77 ms | 407 KiB | 5 Q