3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Something { public function __construct() { // $this->current_user = Auth::get_user(); } public function another_thing() { $groups = array_filter(array(0, 1, 5, 10, 50), function($item) { return $item < $this->current_user->group; }); } } Something = new Something(); $something->another_thing();

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.210.0120.04712.40
5.4.200.0220.06812.39
5.4.190.0120.04912.39
5.4.180.0220.06912.39
5.4.170.0130.04612.40
5.4.160.0250.07612.40
5.4.150.0120.04512.39
5.4.140.0220.06812.08
5.4.130.0300.06012.07
5.4.120.0210.06812.03
5.4.110.0120.04512.03
5.4.100.0090.04712.03
5.4.90.0140.04312.03
5.4.80.0110.05012.03
5.4.70.0100.04412.02
5.4.60.0230.06412.02
5.4.50.0250.06312.02
5.4.40.0150.04412.01
5.4.30.0140.07112.01
5.4.20.0110.04612.00
5.4.10.0090.04912.01
5.4.00.0100.04411.50
5.3.270.0240.06912.72
5.3.260.0210.07212.72
5.3.250.0230.05912.72
5.3.240.0250.06412.72
5.3.230.0160.04212.71
5.3.220.0290.06012.68
5.3.210.0140.04812.68
5.3.200.0170.04712.68
5.3.190.0140.04312.68
5.3.180.0140.04212.67
5.3.170.0140.04612.67
5.3.160.0160.04212.67
5.3.150.0140.04512.67
5.3.140.0130.04312.66
5.3.130.0130.04712.66
5.3.120.0120.04512.66
5.3.110.0210.06712.65
5.3.100.0140.05712.13
5.3.90.0200.06512.11
5.3.80.0130.04312.09
5.3.70.0130.04612.09
5.3.60.0160.04112.08
5.3.50.0240.06312.03
5.3.40.0150.05412.03
5.3.30.0260.06711.98
5.3.20.0180.07511.77
5.3.10.0130.04511.73
5.3.00.0220.05711.72

preferences:
138.57 ms | 1394 KiB | 7 Q