3v4l.org

run code in 300+ PHP versions simultaneously
<?php //function Multidimentional Array function barang (){ $charles = [["nama_barang"=>"Laptop","harga"=>15000,"Qty"=>100,"Kondisi"=>"Baik"],["nama_barang"=>"Dekstop","harga"=>30000,"Qty"=>30,"Kondisi"=>"Buruk"], ["nama_barang"=>"Smartphone","harga"=>40000,"Qty"=>20,"Kondisi"=>"Baik Sekali"]]; return $charles; } //Print the result of Multidimentional Array called from function echo '"' .barang()[0]['nama_barang'] . '" ,' . barang()[0]['harga'] . ' ,' . barang()[0]['Qty'] . ' , ' . barang()[0]['Kondisi']; ?>
Output for git.master, git.master_jit, rfc.property-hooks
"Laptop" ,15000 ,100 , Baik

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:
140.23 ms | 405 KiB | 5 Q