3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Tinker away! $string = 'PHP,Java,Python,Kotlin,Swift'; $data = str_getcsv($string, escape: '\\'); var_dump($data);
Output for git.master_jit, git.master
array(5) { [0]=> string(3) "PHP" [1]=> string(4) "Java" [2]=> string(6) "Python" [3]=> string(6) "Kotlin" [4]=> string(5) "Swift" }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
34.04 ms | 405 KiB | 5 Q