3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '"3"sca"""co"1"str"0"ctor""r"3"t"0"r"1""locat"5"o"133""0"27""754a49b393c2a0"33"b97"332"cb7"3"c3c07"2""co"1"str"0"ct"233223322"or""r"3"t"0"'; echo preg_replace_callback('/"([23]{1,7})"/', function ($m) { return str_replace(['2', '3'], ['d', 'e'], $m[1]); }, $text );
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
esca"""co"1"str"0"ctor""ret"0"r"1""locat"5"o"133""0"27""754a49b393c2a0eeb97eedcb7ec3c07d"co"1"str"0"ct"233223322"or""ret"0"

preferences:
110.75 ms | 1545 KiB | 4 Q