3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = '"shoes":"\u978b\u5b50","canoe":"\u7368\u6728\u821f","dish":"\u789f\u5f62\u885b\u661f\u5929\u7dda","fx_weathervane":"\u98a8\u5411\u8a08","tricycle":"\u4e09\u8f2a\u8eca","horns":"\u725b\u89d2","fx_craw":"\u70cf\u9d09","babieshoes":"\u5b30\u5152\u978b","wateringcan":"\u7051\u6c34\u58fa","umbrella":"\u96e8\u5098","barrel":"\u6728\u6876","matchbox":"\u706b\u67f4\u76d2","trafficcone":"\u4ea4\u901a\u9310","cow":"\u725b","mailbox":"\u90f5\u7bb1","cap":"\u4f11\u9592\u5e3d","plane":"\u98db\u6a5f","syringe":"\u6ce8\u5c04\u5668","key":"\u9470\u5319","barbecue":"\u70e4\u8089\u67b6","fx_kite":"\u98a8\u7b8f","caution":"\u8b66\u544a\u6a19\u8a8c","cigarette":"\u9999\u83f8","bell":"\u9234","pinwheel":"\u7d19\u98a8\u8eca","mappleleaf":"\u6953\u8449","snail":"\u934b\u725b","fx_windchime":"\u98a8\u9234","can":"\u58d3\u6241\u7684\u7f50\u5b50","clock":"\u6642\u9418","chair":"\u6905\u5b50","plush":"\u6cf0\u8fea\u718a","huntingtrophy":"\u72e9\u7375\u6230\u5229\u54c1","rifle":"\u4f86\u798f\u69cd","whiskybottle":"\u5a01\u58eb\u5fcc\u9152\u74f6","skateboard":"\u6ed1\u677f","gutter":"\u5929\u6e9d","axe":"\u65a7\u982d","pan":"\u5e73\u5e95\u934b","wheel":"\u6a61\u81a0\u8f2a\u80ce","spider":"\u8718\u86db","footprint":"\u8173\u5370","butterfly":"\u8774\u8776","rat":"\u8001\u9f20","horseshoe":"\u99ac\u8e44\u9435","fx_cockroach":"\u87d1\u8782","horse":"\u99ac","tincan":"\u7f50\u982d","bazooka":"\u706b\u7bad\u70ae","newspaper":"\u5831\u7d19","doormat":"\u9580\u588a","indianchefhat":"\u5370\u5730\u5b89\u914b\u9577\u5e3d","screwdriver":"\u87ba\u7d72\u8d77\u5b50","apple":"\u860b\u679c","dollard":"\u9214\u7968","hat":"\u6f01\u592b\u5e3d","brokenglass":"\u788e\u73bb\u7483","alarmclock":"\u9b27\u9418","firelight":"\u624b\u96fb\u7b52","tornfabric":"\u85cd\u8272\u5e03\u6599","handledoor":"\u9580\u628a","bucket":"\u6c34\u6876","puma":"\u7f8e\u6d32\u7345","watermelon":"\u897f\u74dc","spiderweb":"\u8718\u86db\u7db2","dogcollar":"\u72d7\u9805\u5708","ladybeetle":"\u74e2\u87f2","tshirt":"T \u6064","squirrel":"\u677e\u9f20","skull":"\u982d\u9aa8","flower":"\u82b1"}'; var_dump($string); $string = iconv('ASCII', 'UTF-8', $string); var_dump($string);
based on 2ndDb
Output for 5.3.19 - 5.5.34, 5.6.8 - 5.6.20, 5.6.28 - 7.0.5, 7.0.20 - 7.2.0
string(2051) ""shoes":"\u978b\u5b50","canoe":"\u7368\u6728\u821f","dish":"\u789f\u5f62\u885b\u661f\u5929\u7dda","fx_weathervane":"\u98a8\u5411\u8a08","tricycle":"\u4e09\u8f2a\u8eca","horns":"\u725b\u89d2","fx_craw":"\u70cf\u9d09","babieshoes":"\u5b30\u5152\u978b","wateringcan":"\u7051\u6c34\u58fa","umbrella":"\u96e8\u5098","barrel":"\u6728\u6876","matchbox":"\u706b\u67f4\u76d2","trafficcone":"\u4ea4\u901a\u9310","cow":"\u725b","mailbox":"\u90f5\u7bb1","cap":"\u4f11\u9592\u5e3d","plane":"\u98db\u6a5f","syringe":"\u6ce8\u5c04\u5668","key":"\u9470\u5319","barbecue":"\u70e4\u8089\u67b6","fx_kite":"\u98a8\u7b8f","caution":"\u8b66\u544a\u6a19\u8a8c","cigarette":"\u9999\u83f8","bell":"\u9234","pinwheel":"\u7d19\u98a8\u8eca","mappleleaf":"\u6953\u8449","snail":"\u934b\u725b","fx_windchime":"\u98a8\u9234","can":"\u58d3\u6241\u7684\u7f50\u5b50","clock":"\u6642\u9418","chair":"\u6905\u5b50","plush":"\u6cf0\u8fea\u718a","huntingtrophy":"\u72e9\u7375\u6230\u5229\u54c1","rifle":"\u4f86\u798f\u69cd","whiskybottle":"\u5a01\u58eb\u5fcc\u9152\u74f6","skateboard":"\u6ed1\u677f","gutter":"\u5929\u6e9d","axe":"\u65a7\u982d","pan":"\u5e73\u5e95\u934b","wheel":"\u6a61\u81a0\u8f2a\u80ce","spider":"\u8718\u86db","footprint":"\u8173\u5370","butterfly":"\u8774\u8776","rat":"\u8001\u9f20","horseshoe":"\u99ac\u8e44\u9435","fx_cockroach":"\u87d1\u8782","horse":"\u99ac","tincan":"\u7f50\u982d","bazooka":"\u706b\u7bad\u70ae","newspaper":"\u5831\u7d19","doormat":"\u9580\u588a","indianchefhat":"\u5370\u5730\u5b89\u914b\u9577\u5e3d","screwdriver":"\u87ba\u7d72\u8d77\u5b50","apple":"\u860b\u679c","dollard":"\u9214\u7968","hat":"\u6f01\u592b\u5e3d","brokenglass":"\u788e\u73bb\u7483","alarmclock":"\u9b27\u9418","firelight":"\u624b\u96fb\u7b52","tornfabric":"\u85cd\u8272\u5e03\u6599","handledoor":"\u9580\u628a","bucket":"\u6c34\u6876","puma":"\u7f8e\u6d32\u7345","watermelon":"\u897f\u74dc","spiderweb":"\u8718\u86db\u7db2","dogcollar":"\u72d7\u9805\u5708","ladybeetle":"\u74e2\u87f2","tshirt":"T \u6064","squirrel":"\u677e\u9f20","skull":"\u982d\u9aa8","flower":"\u82b1"}" string(2051) ""shoes":"\u978b\u5b50","canoe":"\u7368\u6728\u821f","dish":"\u789f\u5f62\u885b\u661f\u5929\u7dda","fx_weathervane":"\u98a8\u5411\u8a08","tricycle":"\u4e09\u8f2a\u8eca","horns":"\u725b\u89d2","fx_craw":"\u70cf\u9d09","babieshoes":"\u5b30\u5152\u978b","wateringcan":"\u7051\u6c34\u58fa","umbrella":"\u96e8\u5098","barrel":"\u6728\u6876","matchbox":"\u706b\u67f4\u76d2","trafficcone":"\u4ea4\u901a\u9310","cow":"\u725b","mailbox":"\u90f5\u7bb1","cap":"\u4f11\u9592\u5e3d","plane":"\u98db\u6a5f","syringe":"\u6ce8\u5c04\u5668","key":"\u9470\u5319","barbecue":"\u70e4\u8089\u67b6","fx_kite":"\u98a8\u7b8f","caution":"\u8b66\u544a\u6a19\u8a8c","cigarette":"\u9999\u83f8","bell":"\u9234","pinwheel":"\u7d19\u98a8\u8eca","mappleleaf":"\u6953\u8449","snail":"\u934b\u725b","fx_windchime":"\u98a8\u9234","can":"\u58d3\u6241\u7684\u7f50\u5b50","clock":"\u6642\u9418","chair":"\u6905\u5b50","plush":"\u6cf0\u8fea\u718a","huntingtrophy":"\u72e9\u7375\u6230\u5229\u54c1","rifle":"\u4f86\u798f\u69cd","whiskybottle":"\u5a01\u58eb\u5fcc\u9152\u74f6","skateboard":"\u6ed1\u677f","gutter":"\u5929\u6e9d","axe":"\u65a7\u982d","pan":"\u5e73\u5e95\u934b","wheel":"\u6a61\u81a0\u8f2a\u80ce","spider":"\u8718\u86db","footprint":"\u8173\u5370","butterfly":"\u8774\u8776","rat":"\u8001\u9f20","horseshoe":"\u99ac\u8e44\u9435","fx_cockroach":"\u87d1\u8782","horse":"\u99ac","tincan":"\u7f50\u982d","bazooka":"\u706b\u7bad\u70ae","newspaper":"\u5831\u7d19","doormat":"\u9580\u588a","indianchefhat":"\u5370\u5730\u5b89\u914b\u9577\u5e3d","screwdriver":"\u87ba\u7d72\u8d77\u5b50","apple":"\u860b\u679c","dollard":"\u9214\u7968","hat":"\u6f01\u592b\u5e3d","brokenglass":"\u788e\u73bb\u7483","alarmclock":"\u9b27\u9418","firelight":"\u624b\u96fb\u7b52","tornfabric":"\u85cd\u8272\u5e03\u6599","handledoor":"\u9580\u628a","bucket":"\u6c34\u6876","puma":"\u7f8e\u6d32\u7345","watermelon":"\u897f\u74dc","spiderweb":"\u8718\u86db\u7db2","dogcollar":"\u72d7\u9805\u5708","ladybeetle":"\u74e2\u87f2","tshirt":"T \u6064","squirrel":"\u677e\u9f20","skull":"\u982d\u9aa8","flower":"\u82b1"}"
Output for 7.0.6
string(2051) ""shoes":"\u978b\u5b50","canoe":"\u7368\u6728\u821f","dish":"\u789f\u5f62\u885b\u661f\u5929\u7dda","fx_weathervane":"\u98a8\u5411\u8a08","tricycle":"\u4e09\u8f2a\u8eca","horns":"\u725b\u89d2","fx_craw":"\u70cf\u9d09","babieshoes":"\u5b30\u5152\u978b","wateringcan":"\u7051\u6c34\u58fa","umbrella":"\u96e8\u5098","barrel":"\u6728\u6876","matchbox":"\u706b\u67f4\u76d2","trafficcone":"\u4ea4\u901a\u9310","cow":"\u725b","mailbox":"\u90f5\u7bb1","cap":"\u4f11\u9592\u5e3d","plane":"\u98db\u6a5f","syringe":"\u6ce8\u5c04\u5668","key":"\u9470\u5319","barbecue":"\u70e4\u8089\u67b6","fx_kite":"\u98a8\u7b8f","caution":"\u8b66\u544a\u6a19\u8a8c","cigarette":"\u9999\u83f8","bell":"\u9234","pinwheel":"\u7d19\u98a8\u8eca","mappleleaf":"\u6953\u8449","snail":"\u934b\u725b","fx_windchime":"\u98a8\u9234","can":"\u58d3\u6241\u7684\u7f50\u5b50","clock":"\u6642\u9418","chair":"\u6905\u5b50","plush":"\u6cf0\u8fea\u718a","huntingtrophy":"\u72e9\u7375\u6230\u5229\u54c1","rifle":"\u4f86\u798f\u69cd","whiskybottle":"\u5a01\u58eb\u5fcc\u9152\u74f6","skateboard":"\u6ed1\u677f","gutter":"\u5929\u6e9d","axe":"\u65a7\u982d","pan":"\u5e73\u5e95\u934b","wheel":"\u6a61\u81a0\u8f2a\u80ce","spider":"\u8718\u86db","footprint":"\u8173\u5370","butterfly":"\u8774\u8776","rat":"\u8001\u9f20","horseshoe":"\u99ac\u8e44\u9435","fx_cockroach":"\u87d1\u8782","horse":"\u99ac","tincan":"\u7f50\u982d","bazooka":"\u706b\u7bad\u70ae","newspaper":"\u5831\u7d19","doormat":"\u9580\u588a","indianchefhat":"\u5370\u5730\u5b89\u914b\u9577\u5e3d","screwdriver":"\u87ba\u7d72\u8d77\u5b50","apple":"\u860b\u679c","dollard":"\u9214\u7968","hat":"\u6f01\u592b\u5e3d","brokenglass":"\u788e\u73bb\u7483","alarmclock":"\u9b27\u9418","firelight":"\u624b\u96fb\u7b52","tornfabric":"\u85cd\u8272\u5e03\u6599","handledoor":"\u9580\u628a","bucket":"\u6c34\u6876","puma":"\u7f8e\u6d32\u7345","watermelon":"\u897f\u74dc","spiderweb":"\u8718\u86db\u7db2","dogcollar":"\u72d7\u9805\u5708","ladybeetle":"\u74e2\u87f2","tshirt":"T \u6064","squirrel":"\u677e\u9f20","skull":"\u982d\u9aa8","flower":"\u82b1"}" Fatal error: Uncaught Error: Call to undefined function iconv() in /in/8eY4D:6 Stack trace: #0 {main} thrown in /in/8eY4D on line 6
Process exited with code 255.
Output for 5.5.35, 5.6.21
string(2051) ""shoes":"\u978b\u5b50","canoe":"\u7368\u6728\u821f","dish":"\u789f\u5f62\u885b\u661f\u5929\u7dda","fx_weathervane":"\u98a8\u5411\u8a08","tricycle":"\u4e09\u8f2a\u8eca","horns":"\u725b\u89d2","fx_craw":"\u70cf\u9d09","babieshoes":"\u5b30\u5152\u978b","wateringcan":"\u7051\u6c34\u58fa","umbrella":"\u96e8\u5098","barrel":"\u6728\u6876","matchbox":"\u706b\u67f4\u76d2","trafficcone":"\u4ea4\u901a\u9310","cow":"\u725b","mailbox":"\u90f5\u7bb1","cap":"\u4f11\u9592\u5e3d","plane":"\u98db\u6a5f","syringe":"\u6ce8\u5c04\u5668","key":"\u9470\u5319","barbecue":"\u70e4\u8089\u67b6","fx_kite":"\u98a8\u7b8f","caution":"\u8b66\u544a\u6a19\u8a8c","cigarette":"\u9999\u83f8","bell":"\u9234","pinwheel":"\u7d19\u98a8\u8eca","mappleleaf":"\u6953\u8449","snail":"\u934b\u725b","fx_windchime":"\u98a8\u9234","can":"\u58d3\u6241\u7684\u7f50\u5b50","clock":"\u6642\u9418","chair":"\u6905\u5b50","plush":"\u6cf0\u8fea\u718a","huntingtrophy":"\u72e9\u7375\u6230\u5229\u54c1","rifle":"\u4f86\u798f\u69cd","whiskybottle":"\u5a01\u58eb\u5fcc\u9152\u74f6","skateboard":"\u6ed1\u677f","gutter":"\u5929\u6e9d","axe":"\u65a7\u982d","pan":"\u5e73\u5e95\u934b","wheel":"\u6a61\u81a0\u8f2a\u80ce","spider":"\u8718\u86db","footprint":"\u8173\u5370","butterfly":"\u8774\u8776","rat":"\u8001\u9f20","horseshoe":"\u99ac\u8e44\u9435","fx_cockroach":"\u87d1\u8782","horse":"\u99ac","tincan":"\u7f50\u982d","bazooka":"\u706b\u7bad\u70ae","newspaper":"\u5831\u7d19","doormat":"\u9580\u588a","indianchefhat":"\u5370\u5730\u5b89\u914b\u9577\u5e3d","screwdriver":"\u87ba\u7d72\u8d77\u5b50","apple":"\u860b\u679c","dollard":"\u9214\u7968","hat":"\u6f01\u592b\u5e3d","brokenglass":"\u788e\u73bb\u7483","alarmclock":"\u9b27\u9418","firelight":"\u624b\u96fb\u7b52","tornfabric":"\u85cd\u8272\u5e03\u6599","handledoor":"\u9580\u628a","bucket":"\u6c34\u6876","puma":"\u7f8e\u6d32\u7345","watermelon":"\u897f\u74dc","spiderweb":"\u8718\u86db\u7db2","dogcollar":"\u72d7\u9805\u5708","ladybeetle":"\u74e2\u87f2","tshirt":"T \u6064","squirrel":"\u677e\u9f20","skull":"\u982d\u9aa8","flower":"\u82b1"}" Fatal error: Call to undefined function iconv() in /in/8eY4D on line 6
Process exited with code 255.