3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = '012/sekolah/smk/2018'; $arr = preg_split('/(?<=[0-9])/i',$var); $arr[2] +=1 [1]+=0; $var = implode('',$arr); echo $var;
based on 1nI5k
Output for 5.6.38 - 7.3.0rc3
Parse error: syntax error, unexpected '[' in /in/skVou on line 4
Process exited with code 255.