3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var1 = 123; $var2 = '123'; $var3 = true; $var4 = ['りんご','バナナ','メロン']; var_dump($var1,$var2,$var3,$var4);
based on DRcQI
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.26, 7.4.0 - 7.4.13, 8.0.0 - 8.0.2
int(123) string(3) "123" bool(true) array(3) { [0]=> string(9) "りんご" [1]=> string(9) "バナナ" [2]=> string(9) "メロン" }