3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contact_rec = array( 0 => "alice" 1 => "bob", 2 => "charlie", 3 => "denise", 4 => "erynn", ); $contact_rec[0]=""; //The emails of the client foreach($contact as $key => $value) { if($value['email'] != null) $contact_rec[] = $value['email']; } foreach($contact_rec as $key => $value) { $contact_rec[$value] = $value; unset($contact_rec[$key]); }

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)
5.4.100.0160.04411.99
5.4.90.0200.05011.99
5.4.80.0180.04011.99
5.4.70.0240.05511.98
5.4.60.0180.03911.98
5.4.50.0170.04211.98
5.4.40.0420.05711.97
5.4.30.0150.04611.97
5.4.20.0190.04211.96
5.4.10.0230.05611.97
5.4.00.0160.04211.46
5.3.200.0210.04112.68
5.3.190.0230.06112.68
5.3.180.0190.06312.67
5.3.170.0220.04112.67
5.3.160.0210.05412.67
5.3.150.0190.04312.67
5.3.140.0230.05212.66
5.3.130.0270.05712.66
5.3.120.0220.05012.66
5.3.110.0190.04612.66
5.3.100.0230.06112.12
5.3.90.0220.05012.09
5.3.80.0180.04512.07
5.3.70.0190.05312.08
5.3.60.0180.04312.07
5.3.50.0190.05212.00
5.3.40.0190.04212.00
5.3.30.0250.05411.95
5.3.20.0240.05611.72
5.3.10.0170.04011.68
5.3.00.0180.04011.67

preferences:
177.61 ms | 1394 KiB | 7 Q