3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(array_diff(array(312, 401, 1599, 3), array(401) )); // returns [312, 1599, 3] print_r(array_filter(array(312, 401, 1599, 3), function($i){return $i != 401;})); print_r(array_delete( array(312, 401, 1599, 3), 401 ) )

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)
7.0.10.0100.08320.16
7.0.00.0030.07019.99
5.6.160.0070.08320.46
5.6.150.0000.09018.12
5.6.140.0030.05318.27
5.6.130.0030.06018.12
5.6.120.0000.04720.90
5.6.110.0130.07021.03
5.6.100.0030.07320.98
5.6.90.0100.07020.95
5.6.80.0100.05320.48
5.5.300.0170.03717.95
5.5.290.0030.05017.97
5.5.280.0070.03720.66
5.5.270.0070.07720.73
5.5.260.0030.04720.84
5.5.250.0070.06020.60
5.5.240.0200.06720.28

preferences:
140.99 ms | 1394 KiB | 7 Q