3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat."; $arr = explode(" ", $str); $placeholder = array('<span id="float-placeholder"></span>'); if ( sizeof( $arr ) > 70 ) { array_splice( $original, 70, 0, $placeholder ); } else { }
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_splice() expects parameter 1 to be array, null given in /in/SmURh on line 11
Output for hhvm-3.10.0 - 3.12.0
Warning: Invalid operand type was used: expects array(s) in /in/SmURh on line 11
Output for 4.3.2 - 5.2.17
Warning: array_splice(): The first argument should be an array in /in/SmURh on line 11
Output for 4.3.0 - 4.3.1
Warning: array_splice() [http://www.php.net/function.array-splice]: The first argument should be an array in /in/SmURh on line 11