3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $pricingSlot[0][type] = 'he'; $pricingSlot[0][max] = '5'; $pricingSlot[0][min] = '1'; $pricingSlot[1][type] = 'she'; $pricingSlot[1][max] = '15'; $pricingSlot[1][min] = '2'; foreach($pricingSlot as $key => $value) { echo 'key = '.$key; echo 'value = '.$value; } ?>
based on Rsa8Y
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Use of undefined constant type - assumed 'type' in /in/lHSaT on line 3 Notice: Use of undefined constant max - assumed 'max' in /in/lHSaT on line 4 Notice: Use of undefined constant min - assumed 'min' in /in/lHSaT on line 5 Notice: Use of undefined constant type - assumed 'type' in /in/lHSaT on line 6 Notice: Use of undefined constant max - assumed 'max' in /in/lHSaT on line 7 Notice: Use of undefined constant min - assumed 'min' in /in/lHSaT on line 8 key = 0 Notice: Array to string conversion in /in/lHSaT on line 12 value = Arraykey = 1 Notice: Array to string conversion in /in/lHSaT on line 12 value = Array
Output for 4.3.0 - 5.3.29
Notice: Use of undefined constant type - assumed 'type' in /in/lHSaT on line 3 Notice: Use of undefined constant max - assumed 'max' in /in/lHSaT on line 4 Notice: Use of undefined constant min - assumed 'min' in /in/lHSaT on line 5 Notice: Use of undefined constant type - assumed 'type' in /in/lHSaT on line 6 Notice: Use of undefined constant max - assumed 'max' in /in/lHSaT on line 7 Notice: Use of undefined constant min - assumed 'min' in /in/lHSaT on line 8 key = 0value = Arraykey = 1value = Array