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::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)
8.3.60.0070.01018.31
8.3.50.0120.00321.97
8.3.40.0070.00718.98
8.3.30.0040.01119.16
8.3.20.0030.00520.20
8.3.10.0040.00423.69
8.3.00.0050.00221.02
8.2.180.0170.00316.75
8.2.170.0090.00622.96
8.2.160.0070.01020.39
8.2.150.0090.00024.18
8.2.140.0070.00024.66
8.2.130.0100.00026.16
8.2.120.0080.00019.28
8.2.110.0050.00322.11
8.2.100.0120.00017.91
8.2.90.0000.00819.05
8.2.80.0080.00017.97
8.2.70.0060.00317.50
8.2.60.0050.00317.90
8.2.50.0030.00518.07
8.2.40.0050.00319.75
8.2.30.0000.00718.06
8.2.20.0000.00717.69
8.2.10.0000.00818.00
8.2.00.0080.00017.74
8.1.280.0130.00025.92
8.1.270.0080.00022.19
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0090.00023.92
8.1.230.0050.00519.16
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0000.00817.23
8.1.190.0090.00017.13
8.1.180.0040.00418.10
8.1.170.0000.00818.45
8.1.160.0000.00722.02
8.1.150.0000.00818.59
8.1.140.0050.00317.32
8.1.130.0030.00317.81
8.1.120.0000.00717.25
8.1.110.0070.00017.28
8.1.100.0000.00817.23
8.1.90.0000.00717.34
8.1.80.0040.00417.37
8.1.70.0070.00017.27
8.1.60.0030.00617.43
8.1.50.0060.00317.38
8.1.40.0040.00417.46
8.1.30.0030.00517.57
8.1.20.0000.00817.50
8.1.10.0040.00417.53
8.1.00.0040.00417.36
8.0.300.0070.00018.77
8.0.290.0050.00216.75
8.0.280.0000.00718.38
8.0.270.0030.00517.19
8.0.260.0030.00317.07
8.0.250.0000.00716.99
8.0.240.0000.00816.89
8.0.230.0000.00816.93
8.0.220.0000.00616.90
8.0.210.0000.00716.90
8.0.200.0070.00316.82
8.0.190.0070.00016.87
8.0.180.0040.00416.88
8.0.170.0030.00516.93
8.0.160.0000.00716.92
8.0.150.0080.00316.74
8.0.140.0030.00516.79
8.0.130.0040.00413.38
8.0.120.0050.00316.92
8.0.110.0030.00316.91
8.0.100.0040.00416.79
8.0.90.0000.00716.78
8.0.80.0110.01116.78
8.0.70.0000.00716.89
8.0.60.0040.00416.86
8.0.50.0070.00016.76
8.0.30.0070.01117.03
8.0.20.0100.01317.40
8.0.10.0040.00416.82
8.0.00.0060.01416.84
7.4.330.0000.00515.09
7.4.320.0000.00716.50
7.4.300.0040.00416.43
7.4.290.0030.00316.35
7.4.280.0000.00816.54
7.4.270.0070.00016.36
7.4.260.0000.01116.39
7.4.250.0000.00716.27
7.4.240.0050.00216.59
7.4.230.0000.00716.62
7.4.220.0070.01016.50
7.4.210.0100.00316.55
7.4.200.0030.00316.44
7.4.160.0090.00616.43
7.4.150.0150.01217.40
7.4.140.0090.01417.86
7.4.130.0140.00316.38
7.4.120.0100.00716.52
7.4.110.0100.00616.64
7.4.100.0030.01416.43
7.4.90.0060.01516.52
7.4.80.0120.00919.39
7.4.70.0060.01316.63
7.4.60.0070.01016.50
7.4.50.0040.00416.58
7.4.40.0090.00616.28
7.4.30.0090.00716.59
7.4.00.0000.01515.09
7.3.330.0020.00213.32
7.3.320.0000.00713.25
7.3.310.0070.00016.18
7.3.300.0080.00016.36
7.3.290.0000.01416.38
7.3.280.0120.00516.37
7.3.270.0110.00617.40
7.3.260.0070.01116.43
7.3.250.0120.00516.49
7.3.240.0090.00916.47
7.3.230.0080.00916.39
7.3.210.0160.00316.39
7.3.200.0090.01219.39
7.3.190.0100.01116.41
7.3.180.0110.00416.29
7.3.170.0090.02616.38
7.3.160.0000.01516.38
7.3.120.0070.01014.99
7.2.330.0130.00516.48
7.2.320.0090.01216.54
7.2.310.0120.00316.75
7.2.300.0060.01216.73
7.2.290.0160.00316.63
7.2.60.0040.00816.89
7.2.00.0040.01119.43
7.1.200.0150.00415.32
7.1.100.0060.00917.75
7.1.70.0000.00717.03
7.1.60.0030.02119.70
7.1.50.0210.00034.67
7.1.00.0030.07722.43
7.0.200.0090.00016.72
7.0.140.0030.07022.10
7.0.60.0130.06319.97
7.0.50.0030.04717.74
7.0.40.0130.08320.24
7.0.30.0670.06320.24
7.0.20.0230.08320.12
7.0.10.0030.05320.30
7.0.00.0100.05020.10
5.6.280.0100.06721.11
5.6.210.0100.08320.62
5.6.200.0070.04718.18
5.6.190.0070.04020.77
5.6.180.0270.08320.76
5.6.170.0270.07020.40
5.6.160.0170.06720.48
5.6.150.0070.04018.29
5.6.140.0070.08018.16
5.6.130.0100.08018.17
5.6.120.0100.05020.95
5.6.110.0170.06721.01
5.6.100.0030.08021.12
5.6.90.0200.07321.01
5.6.80.0030.04020.39
5.6.70.2370.03720.39
5.5.350.0100.04320.46
5.5.340.0130.05717.97
5.5.330.0030.04020.13
5.5.320.0070.04020.44
5.5.310.0200.04720.36
5.5.300.0030.05018.08
5.5.290.0070.09017.93
5.5.280.0070.05720.77
5.5.270.0030.04020.85
5.5.260.0170.05720.77
5.5.250.0030.04020.59
5.5.240.0230.07020.36
5.4.450.0100.06319.38
5.4.440.1230.04019.44
5.4.430.0030.05719.39
5.4.420.0100.04319.37
5.4.410.1600.03719.29
5.4.400.2470.04018.83
5.4.390.0170.06319.20
5.4.380.0030.07719.20
5.4.370.1100.05319.12
5.4.360.2170.03318.98
5.4.350.2170.04019.10
5.4.340.2100.04018.95
5.4.320.1600.03319.23
5.4.310.1930.03319.20
5.4.300.2100.03718.96
5.4.290.2270.04319.25
5.4.280.1330.03719.13
5.4.270.0070.04019.05
5.4.260.0130.06019.21
5.4.250.0000.05719.14
5.4.240.1770.04319.04
5.4.230.2000.04019.14
5.4.220.2200.04319.11
5.4.210.2130.04719.29
5.4.200.2230.04019.07
5.4.190.2030.03319.05
5.4.180.2230.04019.21
5.4.170.0030.07719.05
5.4.160.0070.05018.95
5.4.150.0000.08018.92
5.4.140.1130.05016.51
5.4.130.1700.03716.36
5.4.120.2270.03716.53
5.4.110.2070.03016.32
5.4.100.0030.04016.43
5.4.90.0300.07016.50
5.4.80.0100.05016.58
5.4.70.0170.03716.47
5.4.60.0200.04016.52
5.4.50.0200.04716.41
5.4.40.0200.03316.36
5.4.30.0200.04016.18
5.4.20.0200.05316.53
5.4.10.0170.04016.48
5.4.00.0100.02715.73
5.3.290.0000.08314.60
5.3.280.0070.04014.51
5.3.270.0070.03714.75
5.3.260.0030.05014.58
5.3.250.1430.05014.62
5.3.240.2400.04014.60
5.3.230.2230.04314.83
5.3.220.2370.04714.68
5.3.210.0030.04714.72
5.3.200.0800.05014.58
5.3.190.0070.07714.59
5.3.180.0000.04714.57
5.3.170.0030.06014.59
5.3.160.1930.04314.55
5.3.150.2130.03014.46
5.3.140.2230.04314.56
5.3.130.2130.04314.61
5.3.120.2300.04014.64
5.3.110.2130.03714.52
5.3.100.2100.04014.18
5.3.90.1530.04313.95
5.3.80.1930.03014.11
5.3.70.1230.03314.17
5.3.60.0230.04014.02
5.3.50.0300.04013.98
5.3.40.0300.06313.88
5.3.30.0170.04713.82
5.3.20.0170.04713.63
5.3.10.0230.06013.60
5.3.00.0230.04313.70
5.2.170.0100.04311.10
5.2.160.0170.03011.03
5.2.150.0170.03011.20
5.2.140.0130.03711.07
5.2.130.0170.03311.04
5.2.120.0200.05711.03
5.2.110.0230.04311.01
5.2.100.0170.02711.19
5.2.90.0130.03711.11
5.2.80.0170.03310.99
5.2.70.0200.04311.14
5.2.60.0200.02710.92
5.2.50.0100.03311.09
5.2.40.0200.05311.07
5.2.30.0070.03311.04
5.2.20.0100.03310.87
5.2.10.0130.03710.77
5.2.00.0170.03310.72
5.1.60.0130.0279.92
5.1.50.0170.0439.98
5.1.40.0230.0339.91
5.1.30.0170.02710.46
5.1.20.0100.03010.28
5.1.10.0070.03010.30
5.1.00.0130.0239.99
5.0.50.0070.0208.53
5.0.40.0000.0208.49
5.0.30.0070.0438.13
5.0.20.0030.0238.29
5.0.10.0100.0338.25
5.0.00.0030.0378.04
4.4.90.0030.0177.32
4.4.80.0100.0137.32
4.4.70.0070.0137.32
4.4.60.0030.0177.32
4.4.50.0030.0177.32
4.4.40.0070.0307.32
4.4.30.0070.0337.32
4.4.20.0030.0207.32
4.4.10.0100.0137.32
4.4.00.0070.0237.32
4.3.110.0070.0177.32
4.3.100.0070.0177.32
4.3.90.0070.0177.32
4.3.80.0070.0277.32
4.3.70.0130.0107.32
4.3.60.0000.0207.32
4.3.50.0100.0237.32
4.3.40.0030.0307.32
4.3.30.0030.0207.32
4.3.20.0070.0177.32
4.3.10.0070.0137.32
4.3.00.0030.0177.32

preferences:
36.19 ms | 401 KiB | 5 Q