3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $edad = array( valor1=>"23", valor2=>"19", valor3=>"28", valor4=>"33" ); print_r (array_values($edad)); ?>
based on hMH3g
Output for 7.2.0
Warning: Use of undefined constant valor1 - assumed 'valor1' (this will throw an Error in a future version of PHP) in /in/lpmcd on line 4 Warning: Use of undefined constant valor2 - assumed 'valor2' (this will throw an Error in a future version of PHP) in /in/lpmcd on line 5 Warning: Use of undefined constant valor3 - assumed 'valor3' (this will throw an Error in a future version of PHP) in /in/lpmcd on line 6 Warning: Use of undefined constant valor4 - assumed 'valor4' (this will throw an Error in a future version of PHP) in /in/lpmcd on line 7 Array ( [0] => 23 [1] => 19 [2] => 28 [3] => 33 )
Output for 5.3.20 - 7.1.10
Notice: Use of undefined constant valor1 - assumed 'valor1' in /in/lpmcd on line 4 Notice: Use of undefined constant valor2 - assumed 'valor2' in /in/lpmcd on line 5 Notice: Use of undefined constant valor3 - assumed 'valor3' in /in/lpmcd on line 6 Notice: Use of undefined constant valor4 - assumed 'valor4' in /in/lpmcd on line 7 Array ( [0] => 23 [1] => 19 [2] => 28 [3] => 33 )