3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ar = []; $ar['ar0']['y'] = 'Yes'; $ar['ar0']['n'] = 'No'; $ar['ar1']['g'] = 'good'; $ar['ar1']['b'] = 'bad'; $ar['ar2']['m'] = 'mom'; $ar['ar2']['d'] = 'dad'; print_r($ar); $res_ar = []; // resultant array $ar_names = []; // array of unique names foreach($ar as $ind => $row){ if (!empty($row['y']) && $row['y'] == 'Yes') $res_ar[$ind] = $row; } print_r($res_ar);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
vld0.0100.00714.51
git.master0.0060.00915.13
rfc.partials0.0080.01416.90

preferences:
219.23 ms | 454 KiB | 5 Q