3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $arr["a"] = array("c" => "A"); $arr["b"] = array("d" => "B"); /*$str = array_filter($arr, function($e1){ echo $e1; return $e1; });*/ $str = array_search("A", $arr); var_dump($str); var_dump(in_array(array("c" => "A"), $arr));

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.0220.00316.61
8.3.50.0060.01118.06
8.3.40.0040.01118.52
8.3.30.0070.00719.17
8.3.20.0050.00320.22
8.3.10.0070.00021.89
8.3.00.0050.00320.77
8.2.180.0060.00918.41
8.2.170.0070.00722.96
8.2.160.0100.00322.28
8.2.150.0000.00924.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.82
8.2.110.0060.00322.29
8.2.100.0110.00017.50
8.2.90.0050.00219.22
8.2.80.0000.00717.97
8.2.70.0030.00517.50
8.2.60.0040.00418.04
8.2.50.0030.00518.07
8.2.40.0050.00318.20
8.2.30.0050.00218.04
8.2.20.0040.00417.73
8.2.10.0050.00317.98
8.2.00.0040.00417.72
8.1.280.0100.01325.92
8.1.270.0090.00020.73
8.1.260.0000.00726.35
8.1.250.0030.00528.09
8.1.240.0000.00917.36
8.1.230.0060.00618.85
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0030.00718.52
8.1.160.0020.00521.95
8.1.150.0000.00718.82
8.1.140.0020.00517.43
8.1.130.0030.00317.90
8.1.120.0070.00017.29
8.1.110.0040.00317.23
8.1.100.0080.00017.27
8.1.90.0050.00217.29
8.1.80.0040.00317.41
8.1.70.0030.00317.29
8.1.60.0080.00017.57
8.1.50.0030.00617.42
8.1.40.0040.00417.46
8.1.30.0000.00917.43
8.1.20.0000.00717.42
8.1.10.0030.00617.48
8.1.00.0040.00717.46
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0000.00718.36
8.0.270.0030.00317.11
8.0.260.0000.00617.17
8.0.250.0030.00316.86
8.0.240.0000.00816.75
8.0.230.0030.00316.84
8.0.220.0070.00016.71
8.0.210.0040.00416.86
8.0.200.0030.00316.76
8.0.190.0070.00016.88
8.0.180.0000.00716.90
8.0.170.0030.00616.89
8.0.160.0070.00016.93
8.0.150.0030.00516.68
8.0.140.0070.00016.82
8.0.130.0090.00013.21
8.0.120.0040.00416.79
8.0.110.0040.00416.79
8.0.100.0040.00416.72
8.0.90.0040.00416.70
8.0.80.0100.00716.81
8.0.70.0050.00216.69
8.0.60.0040.00416.72
8.0.50.0050.00216.72
8.0.30.0080.00916.77
8.0.20.0130.00517.40
8.0.10.0040.00416.84
8.0.00.0100.00716.53
7.4.330.0000.00615.03
7.4.320.0000.00716.52
7.4.300.0030.00316.54
7.4.290.0070.00316.42
7.4.280.0030.00716.54
7.4.270.0030.00316.44
7.4.260.0040.00416.46
7.4.250.0040.00416.50
7.4.240.0040.00416.49
7.4.230.0030.00616.54
7.4.220.0110.01116.30
7.4.210.0090.00716.48
7.4.200.0030.00316.46
7.4.160.0090.00616.36
7.4.150.0110.00717.40
7.4.140.0130.00817.86
7.4.130.0110.00516.47
7.4.120.0070.01016.33
7.4.110.0100.01416.55
7.4.100.0090.01216.36
7.4.90.0120.00616.41
7.4.80.0090.00919.39
7.4.70.0120.00416.60
7.4.60.0100.00716.59
7.4.50.0040.00416.24
7.4.40.0110.00516.31
7.4.30.0080.01116.54
7.4.00.0070.00714.84
7.3.330.0050.00013.06
7.3.320.0000.00613.04
7.3.310.0000.00716.25
7.3.300.0080.00016.13
7.3.290.0000.00616.25
7.3.280.0120.00616.19
7.3.270.0110.00517.40
7.3.260.0070.01016.48
7.3.250.0150.00616.54
7.3.240.0110.00616.28
7.3.230.0130.00316.41
7.3.210.0130.00316.41
7.3.200.0150.01219.39
7.3.190.0110.01116.32
7.3.180.0120.00316.52
7.3.170.0120.01016.58
7.3.160.0040.01316.20
7.3.10.0070.00716.46
7.3.00.0040.00716.38
7.2.330.0030.01316.61
7.2.320.0070.01016.35
7.2.310.0120.00916.73
7.2.300.0130.00316.40
7.2.290.0070.01416.47
7.2.130.0110.00416.56
7.2.120.0070.01116.51
7.2.110.0070.01016.54
7.2.100.0100.01016.87
7.2.90.0140.00017.04
7.2.80.0000.01017.04
7.2.70.0040.01216.91
7.2.60.0110.00316.46
7.2.50.0060.00616.69
7.2.40.0050.00516.61
7.2.30.0090.00316.66
7.2.20.0100.00316.48
7.2.10.0030.00717.03
7.2.00.0020.01118.00
7.1.250.0030.00615.66
7.1.200.0040.00715.57
7.1.100.0030.01018.25
7.1.70.0030.00617.13
7.1.60.0060.01819.46
7.1.50.0070.01416.89
7.1.00.0030.07322.48
7.0.200.0070.00715.07
7.0.140.0030.03722.00
7.0.60.0100.07719.92
7.0.50.0130.07017.86
7.0.40.0170.08020.04
7.0.30.0270.05020.13
7.0.20.0470.05720.00
7.0.10.0030.05020.20
7.0.00.0130.08320.14
5.6.280.0070.07020.81
5.6.210.0100.07720.63
5.6.200.0100.08718.21
5.6.190.0070.05020.48
5.6.180.0200.04320.56
5.6.170.0300.07020.50
5.6.160.0070.08320.36
5.6.150.0030.08718.22
5.6.140.0130.07318.12
5.6.130.0030.05718.21
5.6.120.0170.03720.96
5.6.110.0070.08720.97
5.6.100.0100.07720.96
5.6.90.0100.07020.99
5.6.80.0030.04020.37
5.5.350.0330.06720.43
5.5.340.0130.07318.01
5.5.330.0030.04320.56
5.5.320.0070.08320.30
5.5.310.0370.07320.28
5.5.300.0170.06717.94
5.5.290.0070.05017.91
5.5.280.0030.04320.79
5.5.270.0030.05320.94
5.5.260.0070.05020.96
5.5.250.0170.07320.65
5.5.240.0100.08720.27
5.4.450.0170.05719.46
5.4.440.0970.05719.13
5.4.430.1200.06319.44
5.4.420.1130.05319.23
5.4.410.1030.05719.50
5.4.400.0270.05318.62
5.4.390.0300.04718.70
5.4.380.0370.05318.70
5.4.370.0300.05718.46
5.4.360.0270.06018.46
5.4.350.0300.05018.72
5.4.340.0430.04018.68
5.4.320.0230.06318.77
5.4.310.0300.07018.59
5.4.300.0330.06318.58
5.4.290.0230.07318.74
5.4.280.0230.06018.52
5.4.270.0330.05318.45
5.4.260.0300.05018.68
5.4.250.0170.06318.71
5.4.240.0230.06018.71
5.4.230.0300.05318.51
5.4.220.0100.06018.49
5.4.210.0130.06018.61
5.4.200.0170.06016.50
5.4.190.1070.04318.66
5.4.180.0900.06018.72
5.4.170.0900.06018.63
5.4.160.0900.05718.46
5.4.150.1030.05718.67
5.4.140.1030.05316.20
5.4.130.0900.05316.25
5.4.120.0930.04316.25
5.4.110.1030.06316.11
5.4.100.0930.05716.22
5.4.90.0930.05716.14
5.4.80.1200.04016.17
5.4.70.1000.05316.23
5.4.60.1030.04716.04
5.4.50.0970.05016.14
5.4.40.1000.05716.23
5.4.30.0970.05716.00
5.4.20.1130.06316.12
5.4.10.0970.06016.16
5.4.00.0970.04315.51
5.3.290.0900.06314.56
5.3.280.1000.06014.68
5.3.270.0900.06714.69
5.3.260.0870.05314.58
5.3.250.0900.06014.70
5.3.240.0870.05714.56
5.3.230.0970.05014.52
5.3.220.0930.05314.57
5.3.210.1030.05714.52
5.3.200.0800.05714.50
5.3.190.0930.04314.56
5.3.180.0870.06014.53
5.3.170.0900.05714.46
5.3.160.1200.06014.47
5.3.150.1230.06314.61
5.3.140.1170.06314.45
5.3.130.0970.07314.60
5.3.120.1000.07714.46
5.3.110.0770.06014.52
5.3.100.0700.06714.04
5.3.90.0300.06014.00
5.3.80.0270.05714.00
5.3.70.0370.06014.11
5.3.60.0230.07013.90
5.3.50.0300.05713.86
5.3.40.0230.07313.86
5.3.30.0430.05313.86
5.3.20.0500.05013.76
5.3.10.0200.07013.60
5.3.00.0300.06013.57
5.2.170.0170.05011.18
5.2.160.0230.05011.20
5.2.150.0300.04711.12
5.2.140.0100.06711.11
5.2.130.0130.05011.08
5.2.120.0100.04711.03
5.2.110.0130.04711.01
5.2.100.0230.05311.16
5.2.90.0300.04311.14
5.2.80.0130.05311.13
5.2.70.0130.05711.16
5.2.60.0230.04311.10
5.2.50.0130.06311.02
5.2.40.0170.05311.05
5.2.30.0370.05010.93
5.2.20.0130.05310.93
5.2.10.0200.06010.85
5.2.00.0330.03310.82
5.1.60.0200.0339.97
5.1.50.0170.0309.96
5.1.40.0130.03710.02
5.1.30.0130.03710.45
5.1.20.0330.04010.46
5.1.10.0200.04010.14
5.1.00.0200.04310.08
5.0.50.0170.0338.64
5.0.40.0170.0238.44
5.0.30.0170.0578.29
5.0.20.0170.0378.18
5.0.10.0300.0278.27
5.0.00.0170.0578.29
4.4.90.0030.0336.55
4.4.80.0130.0206.55
4.4.70.0030.0336.55
4.4.60.0030.0276.55
4.4.50.0100.0236.55
4.4.40.0130.0376.55
4.4.30.0130.0276.55
4.4.20.0170.0206.55
4.4.10.0130.0206.55
4.4.00.0070.0406.55
4.3.110.0030.0306.55
4.3.100.0070.0206.55
4.3.90.0130.0276.55
4.3.80.0070.0376.55
4.3.70.0030.0236.55
4.3.60.0030.0236.55
4.3.50.0100.0236.55
4.3.40.0030.0436.55
4.3.30.0100.0276.55
4.3.20.0070.0206.55
4.3.10.0070.0276.55
4.3.00.0170.01714.40

preferences:
48.5 ms | 400 KiB | 5 Q