3v4l.org

run code in 300+ PHP versions simultaneously
<?php $host = 'https://www.google.com'; $level_size = 2; echo join( '.', array_reverse( array_slice( array_reverse( explode( '.', $host ) ), 0, $level_size) ) );

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
153.36 ms | 2012 KiB | 14 Q