3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump( array_combine( ['payment_id', 'package', 'price', 'medium', 'convert_type'], array_slice([0, 1, 2, 3, 4, 5, 6, 7, 8], 1, 5) ) );
based on S1dMV
Output for 5.4.0 - 7.2.0
array(5) { ["payment_id"]=> int(1) ["package"]=> int(2) ["price"]=> int(3) ["medium"]=> int(4) ["convert_type"]=> int(5) }
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/HpHuA on line 5
Process exited with code 255.