3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(dns_get_record('')); var_dump(dns_get_record(null)); var_dum(dns_get_record('php'));
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: dns_get_record(): An unexpected server failure occurred. in /in/57qtB on line 2 bool(false) Deprecated: dns_get_record(): Passing null to parameter #1 ($hostname) of type string is deprecated in /in/57qtB on line 3 Warning: dns_get_record(): An unexpected server failure occurred. in /in/57qtB on line 3 bool(false) Fatal error: Uncaught Error: Call to undefined function var_dum() in /in/57qtB:4 Stack trace: #0 {main} thrown in /in/57qtB on line 4
Process exited with code 255.
Output for 7.2.29 - 7.2.33, 7.3.16 - 7.3.33, 7.4.3 - 7.4.33, 8.0.0 - 8.0.30
Warning: dns_get_record(): An unexpected server failure occurred. in /in/57qtB on line 2 bool(false) Warning: dns_get_record(): An unexpected server failure occurred. in /in/57qtB on line 3 bool(false) Fatal error: Uncaught Error: Call to undefined function var_dum() in /in/57qtB:4 Stack trace: #0 {main} thrown in /in/57qtB on line 4
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.6, 7.4.0
Warning: dns_get_record(): A temporary server error occurred. in /in/57qtB on line 2 bool(false) Warning: dns_get_record(): A temporary server error occurred. in /in/57qtB on line 3 bool(false) Fatal error: Uncaught Error: Call to undefined function var_dum() in /in/57qtB:4 Stack trace: #0 {main} thrown in /in/57qtB on line 4
Process exited with code 255.
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
Warning: dns_get_record(): A temporary server error occurred. in /in/57qtB on line 2 bool(false) Warning: dns_get_record(): A temporary server error occurred. in /in/57qtB on line 3 bool(false) Fatal error: Call to undefined function var_dum() in /in/57qtB on line 4
Process exited with code 255.

preferences:
193.78 ms | 402 KiB | 183 Q