3v4l.org

run code in 500+ PHP versions simultaneously
<?php $sandbox = [ 'first' => ['#finished' => 1], 'second' => ['#finished' => .5], 'third' => ['#finished' => .1], ]; $overall_finished = array_sum(array_column($sandbox, '#finished')); echo $overall_finished / count($sandbox);

preferences:
48.88 ms | 1482 KiB | 5 Q