3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output for 8.1.0 - 8.1.32, 8.2.0 - 8.2.28, 8.3.0 - 8.3.19, 8.4.1 - 8.4.5
NULL -> Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /in/b55r5 on line 7 array ( 0 => '', ) --- int(0) -> array ( 0 => '0', ) --- string(1) "0" -> array ( 0 => '0', ) --- string(0) "" -> array ( 0 => '', ) --- string(1) "a" -> array ( 0 => 'a', ) --- string(5) "b,c,d" -> array ( 0 => 'b', 1 => 'c', 2 => 'd', ) --- string(7) "1,2,3,4" -> array ( 0 => '1', 1 => '2', 2 => '3', 3 => '4', ) ---
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30
NULL -> array ( 0 => '', ) --- int(0) -> array ( 0 => '0', ) --- string(1) "0" -> array ( 0 => '0', ) --- string(0) "" -> array ( 0 => '', ) --- string(1) "a" -> array ( 0 => 'a', ) --- string(5) "b,c,d" -> array ( 0 => 'b', 1 => 'c', 2 => 'd', ) --- string(7) "1,2,3,4" -> array ( 0 => '1', 1 => '2', 2 => '3', 3 => '4', ) ---

preferences:
135.05 ms | 414 KiB | 5 Q