3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = "vnd.asd/asd,asd.test+asd"; $explode = explode( '.', $x ); print_r( $explode ); echo array_pop( $explode ) . "\n"; echo array_pop( explode( '.', $x ) );
based on GPFv9
Output for 7.0.0 - 7.1.0
Array ( [0] => vnd [1] => asd/asd,asd [2] => test+asd ) test+asd Notice: Only variables should be passed by reference in /in/ChGQ1 on line 8 test+asd
Output for 5.1.0 - 5.6.21
Array ( [0] => vnd [1] => asd/asd,asd [2] => test+asd ) test+asd Strict Standards: Only variables should be passed by reference in /in/ChGQ1 on line 8 test+asd
Output for 5.0.5
Array ( [0] => vnd [1] => asd/asd,asd [2] => test+asd ) test+asd Fatal error: Only variables can be passed by reference in /in/ChGQ1 on line 8
Process exited with code 255.
Output for 4.3.0 - 5.0.4
Array ( [0] => vnd [1] => asd/asd,asd [2] => test+asd ) test+asd test+asd