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("c", $arr); var_dump($str);

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.00716.63
8.3.50.0150.00322.10
8.3.40.0140.00718.87
8.3.30.0100.00318.96
8.3.20.0040.00420.17
8.3.10.0000.00821.75
8.3.00.0050.00320.77
8.2.180.0070.01416.63
8.2.170.0070.01022.96
8.2.160.0100.01022.14
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00019.77
8.2.110.0100.00020.96
8.2.100.0080.00417.63
8.2.90.0080.00019.08
8.2.80.0040.00417.97
8.2.70.0030.00517.63
8.2.60.0030.00517.80
8.2.50.0000.00918.07
8.2.40.0040.00418.20
8.2.30.0030.00518.11
8.2.20.0000.00817.73
8.2.10.0060.00318.11
8.2.00.0050.00317.71
8.1.280.0140.00325.92
8.1.270.0100.00020.77
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.98
8.1.230.0070.00319.09
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0040.00420.44
8.1.160.0040.00421.85
8.1.150.0060.00318.73
8.1.140.0000.00717.30
8.1.130.0030.00317.79
8.1.120.0030.00317.44
8.1.110.0000.00717.41
8.1.100.0000.00717.39
8.1.90.0000.00717.40
8.1.80.0040.00417.31
8.1.70.0000.00717.35
8.1.60.0040.00417.39
8.1.50.0060.00317.45
8.1.40.0030.00517.46
8.1.30.0040.00417.49
8.1.20.0040.00417.50
8.1.10.0000.00717.41
8.1.00.0000.01117.31
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0070.00018.38
8.0.270.0040.00417.14
8.0.260.0060.00017.22
8.0.250.0000.00716.86
8.0.240.0030.00316.87
8.0.230.0070.00016.83
8.0.220.0070.00016.79
8.0.210.0000.00716.83
8.0.200.0030.00316.88
8.0.190.0040.00416.90
8.0.180.0000.00816.87
8.0.170.0040.00416.74
8.0.160.0070.00016.95
8.0.150.0030.00316.66
8.0.140.0040.00416.63
8.0.130.0040.00413.27
8.0.120.0000.00816.82
8.0.110.0000.00816.82
8.0.100.0040.00416.64
8.0.90.0040.00416.85
8.0.80.0030.01616.70
8.0.70.0070.00016.67
8.0.60.0050.00216.67
8.0.50.0000.00716.76
8.0.30.0160.00716.99
8.0.20.0140.00517.40
8.0.10.0040.00416.98
8.0.00.0040.01316.83
7.4.330.0060.00015.09
7.4.320.0070.00016.42
7.4.300.0060.00016.44
7.4.290.0070.00216.32
7.4.280.0060.00316.39
7.4.270.0030.00316.36
7.4.260.0000.00716.43
7.4.250.0040.00416.26
7.4.240.0020.00616.51
7.4.230.0000.00716.52
7.4.220.0070.01016.53
7.4.210.0110.00316.56
7.4.200.0070.00016.27
7.4.160.0060.00916.35
7.4.150.0090.00917.40
7.4.140.0100.01117.86
7.4.130.0110.00616.46
7.4.120.0050.01116.49
7.4.110.0090.00916.33
7.4.100.0080.00916.24
7.4.90.0100.00716.41
7.4.80.0110.00619.39
7.4.70.0120.00616.47
7.4.60.0140.00316.46
7.4.50.0050.00316.30
7.4.40.0060.01016.36
7.4.30.0160.00316.49
7.4.00.0060.00914.78
7.3.330.0060.00013.11
7.3.320.0060.00013.00
7.3.310.0070.00016.14
7.3.300.0040.00416.23
7.3.290.0090.00616.15
7.3.280.0120.00616.24
7.3.270.0040.01517.40
7.3.260.0150.00416.21
7.3.250.0120.00516.28
7.3.240.0090.00616.19
7.3.230.0090.00916.39
7.3.210.0100.00616.53
7.3.200.0150.00319.39
7.3.190.0140.00716.61
7.3.180.0090.00616.48
7.3.170.0100.00716.27
7.3.160.0070.01016.62
7.3.120.0100.00614.68
7.3.110.0030.01614.77
7.3.100.0060.00914.67
7.3.90.0070.00714.69
7.3.80.0060.00615.12
7.3.70.0110.00414.80
7.3.60.0070.00414.71
7.3.50.0050.00314.47
7.3.40.0030.01014.89
7.3.30.0160.00014.63
7.3.20.0130.00616.35
7.3.10.0090.00616.64
7.3.00.0000.01616.61
7.2.330.0110.00716.67
7.2.320.0060.00916.50
7.2.310.0090.01216.27
7.2.300.0130.00416.59
7.2.290.0070.01016.45
7.2.250.0040.01514.61
7.2.240.0100.01014.83
7.2.230.0030.00914.94
7.2.220.0120.00414.94
7.2.210.0040.01114.66
7.2.200.0090.00615.05
7.2.190.0090.00614.96
7.2.180.0080.00314.98
7.2.170.0000.01715.00
7.2.00.0120.00319.50
7.1.330.0030.01015.86
7.1.320.0120.00015.89
7.1.310.0080.00815.60
7.1.300.0070.00715.69
7.1.290.0070.01015.71
7.1.280.0090.00615.94
7.1.270.0080.01215.73
7.1.260.0130.00315.69
7.1.200.0040.00815.52
7.1.100.0040.00817.96
7.1.70.0030.00517.20
7.1.60.0060.01919.46
7.1.50.0130.01016.89
7.1.00.0070.07322.30
7.0.200.0160.00314.65
7.0.140.0030.03322.01
7.0.60.0000.04319.96
7.0.50.0000.09017.81
7.0.40.0030.04719.96
7.0.30.0170.08320.13
7.0.20.0230.03720.00
7.0.10.0230.07320.09
7.0.00.0030.04320.22
5.6.280.0100.06021.10
5.6.210.0030.04320.72
5.6.200.0070.08718.12
5.6.190.0070.04320.67
5.6.180.0430.05720.78
5.6.170.0230.07720.54
5.6.160.0130.07020.66
5.6.150.0030.06318.18
5.6.140.0130.07018.11
5.6.130.0030.04718.21
5.6.120.0070.04321.08
5.6.110.0030.09321.02
5.6.100.0030.04720.98
5.6.90.0170.05321.09
5.6.80.0000.04320.41
5.5.350.0300.05320.40
5.5.340.0000.04017.91
5.5.330.0070.07320.13
5.5.320.0000.08720.13
5.5.310.0470.07020.30
5.5.300.0030.08017.84
5.5.290.0070.07717.91
5.5.280.0130.07720.84
5.5.270.0030.04320.74
5.5.260.0230.06720.95
5.5.250.0100.03320.62
5.5.240.0100.07720.12
5.4.450.0630.06319.46
5.4.440.1130.05319.47
5.4.430.0930.07019.40
5.4.420.0930.04319.54
5.4.410.1170.04719.39
5.4.400.0270.05318.83
5.4.390.0300.05318.70
5.4.380.0330.06718.59
5.4.370.0270.05318.46
5.4.360.0230.05718.52
5.4.350.0400.06718.78
5.4.340.0230.08018.50
5.4.320.0230.06318.62
5.4.310.0330.04718.64
5.4.300.0330.04718.72
5.4.290.0330.05018.52
5.4.280.0200.06018.67
5.4.270.0270.05318.48
5.4.260.0300.05018.73
5.4.250.0370.04718.70
5.4.240.0270.05318.64
5.4.230.0230.05318.48
5.4.220.0300.05718.73
5.4.210.0300.04718.49
5.4.200.0230.05316.48
5.4.190.0330.04718.68
5.4.180.0230.06018.77
5.4.170.0300.05718.75
5.4.160.0270.05718.73
5.4.150.0300.04718.72
5.4.140.0400.04316.05
5.4.130.0270.04716.16
5.4.120.0200.05316.22
5.4.110.0170.05316.29
5.4.100.0370.04016.02
5.4.90.0230.05016.24
5.4.80.0230.04716.04
5.4.70.0300.04716.32
5.4.60.0400.05016.01
5.4.50.0230.05016.21
5.4.40.0300.06016.13
5.4.30.0300.04316.04
5.4.20.0270.05016.11
5.4.10.0300.04716.22
5.4.00.0170.05315.57
5.3.290.0200.05714.59
5.3.280.0400.06014.59
5.3.270.0230.05714.52
5.3.260.0300.05014.61
5.3.250.0170.05314.61
5.3.240.0270.05314.51
5.3.230.0270.05014.60
5.3.220.0330.04714.53
5.3.210.0200.06314.55
5.3.200.0170.06014.53
5.3.190.0270.07314.49
5.3.180.0230.05714.47
5.3.170.0300.04314.65
5.3.160.0270.04714.47
5.3.150.0300.05314.51
5.3.140.0430.05314.54
5.3.130.0230.05714.50
5.3.120.0300.05014.63
5.3.110.0300.04314.64
5.3.100.0300.04714.07
5.3.90.0270.04713.93
5.3.80.0330.06314.04
5.3.70.0200.05014.11
5.3.60.0170.05313.89
5.3.50.0170.05313.87
5.3.40.0130.06013.93
5.3.30.0170.05714.00
5.3.20.0200.04713.68
5.3.10.0170.05313.73
5.3.00.0300.04713.59
5.2.170.0200.04011.11
5.2.160.0200.03711.13
5.2.150.0200.04011.28
5.2.140.0230.03711.20
5.2.130.0230.03711.01
5.2.120.0230.03311.05
5.2.110.0170.03711.03
5.2.100.0100.04311.15
5.2.90.0230.03011.27
5.2.80.0170.04011.07
5.2.70.0130.05011.03
5.2.60.0200.03711.03
5.2.50.0230.03311.00
5.2.40.0230.03310.97
5.2.30.0100.04311.13
5.2.20.0130.03710.99
5.2.10.0100.04010.93
5.2.00.0130.04310.83
5.1.60.0170.03710.09
5.1.50.0130.0339.97
5.1.40.0200.03710.01
5.1.30.0130.03710.39
5.1.20.0130.04010.37
5.1.10.0070.04310.05
5.1.00.0030.04310.04
5.0.50.0070.0308.56
5.0.40.0100.0378.52
5.0.30.0130.0538.29
5.0.20.0170.0308.21
5.0.10.0070.0308.28
5.0.00.0200.0438.15
4.4.90.0130.0276.73
4.4.80.0100.0336.73
4.4.70.0000.0276.73
4.4.60.0070.0206.73
4.4.50.0100.0276.73
4.4.40.0070.0376.73
4.4.30.0170.0136.73
4.4.20.0100.0206.73
4.4.10.0100.0206.73
4.4.00.0100.0336.73
4.3.110.0070.0236.73
4.3.100.0030.0236.73
4.3.90.0130.0236.73
4.3.80.0030.0376.73
4.3.70.0130.0206.73
4.3.60.0070.0236.73
4.3.50.0130.0176.73
4.3.40.0070.0376.73
4.3.30.0000.0276.73
4.3.20.0030.0336.73
4.3.10.0100.0176.73
4.3.00.0230.02714.40

preferences:
35.92 ms | 401 KiB | 5 Q