3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array("test"=>"1", "test2"=>2, "test3"=>3); $needed = array("test", "test2"); $a = array_filter($a, function ($item, $needed) { return in_array($item, $needed); });

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.01116.75
8.3.50.0070.00718.09
8.3.40.0030.01318.85
8.3.30.0140.00718.80
8.3.20.0050.00220.34
8.3.10.0050.00323.53
8.3.00.0030.00523.61
8.2.180.0140.00018.42
8.2.170.0150.00622.96
8.2.160.0140.00320.57
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00319.19
8.2.120.0040.00426.35
8.2.110.0050.00522.02
8.2.100.0050.00517.93
8.2.90.0080.00019.28
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0050.00317.93
8.2.50.0080.00018.07
8.2.40.0040.00422.32
8.2.30.0070.00420.66
8.2.20.0000.00817.62
8.2.10.0040.00418.13
8.2.00.0050.00218.12
8.1.280.0070.00725.92
8.1.270.0170.00020.16
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00623.87
8.1.230.0030.00717.76
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.23
8.1.190.0050.00317.36
8.1.180.0080.00018.10
8.1.170.0040.00418.59
8.1.160.0030.00320.68
8.1.150.0000.00718.91
8.1.140.0030.00619.63
8.1.130.0040.00417.59
8.1.120.0050.00217.50
8.1.110.0000.00817.52
8.1.100.0030.00517.47
8.1.90.0050.00317.37
8.1.80.0040.00417.37
8.1.70.0040.00417.42
8.1.60.0070.00017.54
8.1.50.0040.00417.52
8.1.40.0000.00817.43
8.1.30.0000.00817.55
8.1.20.0040.00417.55
8.1.10.0040.00417.57
8.1.00.0080.00017.40
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0040.00418.32
8.0.270.0070.00017.07
8.0.260.0070.00017.20
8.0.250.0000.00716.98
8.0.240.0000.00716.86
8.0.230.0070.00016.95
8.0.220.0030.00516.96
8.0.210.0000.00716.89
8.0.200.0030.00317.00
8.0.190.0000.00816.98
8.0.180.0040.00416.99
8.0.170.0050.00316.88
8.0.160.0000.00716.98
8.0.150.0000.00716.92
8.0.140.0000.00816.84
8.0.130.0000.00613.36
8.0.120.0040.00416.81
8.0.110.0070.00016.86
8.0.100.0040.00416.95
8.0.90.0030.00517.03
8.0.80.0100.00617.02
8.0.70.0040.00416.74
8.0.60.0040.00417.00
8.0.50.0000.00716.99
8.0.30.0140.00517.06
8.0.20.0120.00917.40
8.0.10.0040.00416.90
8.0.00.0080.01116.82
7.4.330.0050.00016.73
7.4.320.0070.00016.53
7.4.300.0060.00016.57
7.4.290.0000.00816.55
7.4.280.0030.00616.57
7.4.270.0000.00716.58
7.4.260.0000.00716.59
7.4.250.0030.00516.56
7.4.240.0030.00316.50
7.4.230.0030.00316.33
7.4.220.0110.00416.55
7.4.210.0060.00916.61
7.4.200.0000.00716.32
7.4.160.0140.00716.36
7.4.150.0140.00417.40
7.4.140.0130.00517.86
7.4.130.0070.01216.50
7.4.120.0120.00516.60
7.4.110.0140.00316.58
7.4.100.0000.01716.55
7.4.90.0000.01716.62
7.4.80.0100.01019.39
7.4.70.0070.01016.56
7.4.60.0070.01016.63
7.4.50.0070.00416.36
7.4.40.0070.01016.58
7.4.30.0090.00616.58
7.4.00.0040.01215.17
7.3.330.0000.00613.27
7.3.320.0050.00013.33
7.3.310.0030.00516.30
7.3.300.0070.00016.27
7.3.290.0080.00616.26
7.3.280.0040.01216.27
7.3.270.0110.00617.40
7.3.260.0110.00716.32
7.3.250.0070.01016.42
7.3.240.0080.00816.43
7.3.230.0140.00716.46
7.3.210.0110.00716.34
7.3.200.0040.01316.42
7.3.190.0130.00516.28
7.3.180.0130.00316.44
7.3.170.0090.00616.36
7.3.160.0130.00316.42
7.2.330.0130.00316.68
7.2.320.0180.00616.66
7.2.310.0110.01116.52
7.2.300.0070.01116.64
7.2.290.0090.00916.66
7.2.60.0040.00816.57
7.2.00.0040.00819.49
7.1.200.0030.01015.45
7.1.100.0030.00618.11
7.1.70.0060.00917.00
7.1.60.0090.01519.52
7.1.50.0070.01016.72
7.1.00.0000.07322.30
7.0.200.0070.00316.64
7.0.60.0000.04319.86
7.0.50.0100.07717.88
7.0.40.0100.05720.40
7.0.30.0130.05720.07
7.0.20.0170.07720.33
7.0.10.0100.06020.13
7.0.00.0030.08020.24
5.6.280.0070.03021.10
5.6.210.0000.08720.50
5.6.200.0030.05718.19
5.6.190.0030.04720.61
5.6.180.0270.04020.63
5.6.170.0330.07020.46
5.6.160.0130.08020.51
5.6.150.0070.06718.25
5.6.140.0030.05018.24
5.6.130.0100.06318.18
5.6.120.0130.07721.05
5.6.110.0130.07720.99
5.6.100.0030.08320.98
5.6.90.0070.08020.98
5.6.80.0130.06720.39
5.5.350.0300.07020.30
5.5.340.0030.04717.95
5.5.330.0100.08320.43
5.5.320.0330.05720.30
5.5.310.0230.08320.27
5.5.300.0100.07718.05
5.5.290.0100.05017.97
5.5.280.0070.05320.80
5.5.270.0170.07020.88
5.5.260.0070.08320.73
5.5.250.0170.06720.79
5.5.240.0100.03720.15

preferences:
57.48 ms | 400 KiB | 5 Q