3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = "abcdefghijklmnopqrstuvwxyz"; $b = base64_encode($d); print "len "+count($d)+"; enc: "+ count($b)+";";
Output for 7.2.0
Warning: count(): Parameter must be an array or an object that implements Countable in /in/ds6HP on line 5 Warning: A non-numeric value encountered in /in/ds6HP on line 5 Warning: A non-numeric value encountered in /in/ds6HP on line 5 Warning: count(): Parameter must be an array or an object that implements Countable in /in/ds6HP on line 5 Warning: A non-numeric value encountered in /in/ds6HP on line 5 2
Output for 7.1.0 - 7.1.10
Warning: A non-numeric value encountered in /in/ds6HP on line 5 Warning: A non-numeric value encountered in /in/ds6HP on line 5 Warning: A non-numeric value encountered in /in/ds6HP on line 5 2
Output for 4.3.0 - 7.0.20
2