3v4l.org

run code in 300+ PHP versions simultaneously
<?php function in_array_r($needle, $haystack, $strict = false) { foreach ($haystack as $item) { if (($strict ? $item === $needle : $item == $needle) || (is_array($item) && in_array_r($needle, $item, $strict))) { return true; } } return false; } $b = array(array("Mac", "NT"), array("Irix", "Linux")); echo in_array_r("Irix", $b) ? 'found' : 'not found'; ?>

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.0060.00918.43
8.3.50.0090.00821.98
8.3.40.0120.00318.55
8.3.30.0030.01018.92
8.3.20.0070.00020.16
8.3.10.0040.00421.93
8.3.00.0060.00322.58
8.2.180.0070.01416.32
8.2.170.0100.00322.96
8.2.160.0100.01019.20
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00817.63
8.2.110.0030.00718.98
8.2.100.0060.00617.72
8.2.90.0050.00319.23
8.2.80.0090.00017.97
8.2.70.0040.00417.63
8.2.60.0040.00418.03
8.2.50.0050.00318.07
8.2.40.0040.00418.16
8.2.30.0000.00918.17
8.2.20.0000.00717.67
8.2.10.0040.00419.34
8.2.00.0000.00817.73
8.1.280.0100.00325.92
8.1.270.0080.00022.00
8.1.260.0000.00726.35
8.1.250.0030.00628.09
8.1.240.0060.00319.26
8.1.230.0040.00717.42
8.1.220.0040.00417.76
8.1.210.0060.00318.77
8.1.200.0060.00317.22
8.1.190.0070.00017.50
8.1.180.0060.00318.10
8.1.170.0030.00618.64
8.1.160.0070.00022.00
8.1.150.0000.00818.64
8.1.140.0070.00317.50
8.1.130.0000.00717.80
8.1.120.0000.00817.50
8.1.110.0000.00717.42
8.1.100.0000.00717.49
8.1.90.0000.00717.39
8.1.80.0040.00417.41
8.1.70.0030.00317.43
8.1.60.0090.00017.58
8.1.50.0050.00317.42
8.1.40.0050.00317.50
8.1.30.0080.00017.55
8.1.20.0030.00617.55
8.1.10.0050.00317.52
8.1.00.0040.00417.34
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.45
8.0.270.0000.00717.26
8.0.260.0030.00316.72
8.0.250.0000.00816.86
8.0.240.0040.00416.87
8.0.230.0070.00016.96
8.0.220.0040.00416.91
8.0.210.0000.00816.79
8.0.200.0030.00316.82
8.0.190.0040.00416.79
8.0.180.0040.00316.93
8.0.170.0000.00916.92
8.0.160.0080.00016.72
8.0.150.0070.00016.81
8.0.140.0030.00516.79
8.0.130.0000.00713.32
8.0.120.0040.00416.92
8.0.110.0070.00016.81
8.0.100.0000.00816.84
8.0.90.0070.00016.95
8.0.80.0090.00616.87
8.0.70.0000.00716.95
8.0.60.0000.00716.89
8.0.50.0030.00316.84
8.0.30.0140.00817.15
8.0.20.0100.00717.40
8.0.10.0040.00416.95
8.0.00.0080.01216.71
7.4.330.0020.00215.09
7.4.320.0030.00316.52
7.4.300.0000.00616.48
7.4.290.0050.00316.51
7.4.280.0040.00316.48
7.4.270.0030.00616.62
7.4.260.0110.00016.52
7.4.250.0000.00716.37
7.4.240.0030.00316.56
7.4.230.0030.00316.66
7.4.220.0060.01116.59
7.4.210.0050.01116.52
7.4.200.0040.00416.59
7.4.190.0070.00016.50
7.4.160.0080.00816.52
7.4.150.0110.01217.40
7.4.140.0140.00717.86
7.4.130.0090.01216.51
7.4.120.0100.01016.44
7.4.110.0070.01016.45
7.4.100.0100.00716.48
7.4.90.0120.00616.31
7.4.80.0060.01519.39
7.4.70.0070.01016.39
7.4.60.0100.01016.51
7.4.50.0050.00316.28
7.4.40.0120.00222.77
7.4.30.0130.00316.52
7.4.00.0070.01015.18
7.3.330.0060.00013.17
7.3.320.0050.00013.33
7.3.310.0070.00016.29
7.3.300.0060.00316.35
7.3.290.0090.01216.30
7.3.280.0070.00716.29
7.3.270.0070.01017.40
7.3.260.0130.00316.28
7.3.250.0130.00516.45
7.3.240.0090.00916.43
7.3.230.0160.00616.57
7.3.210.0090.00916.28
7.3.200.0130.01019.39
7.3.190.0080.01216.56
7.3.180.0060.00916.64
7.3.170.0060.01416.62
7.3.160.0100.00716.53
7.3.120.0030.01114.61
7.2.330.0090.00916.75
7.2.320.0100.00716.44
7.2.310.0110.00516.69
7.2.300.0100.00716.88
7.2.290.0070.01016.75
7.1.100.0030.01018.06
7.1.70.0080.00617.04
7.1.60.0090.01219.82
7.1.50.0060.00616.67
7.1.00.0070.07322.31
7.0.200.0030.00916.68
7.0.140.0030.07722.09
7.0.60.0100.07020.03
7.0.50.0100.04317.89
7.0.40.0170.08020.11
7.0.30.0170.05020.13
7.0.20.0230.04720.09
7.0.10.0200.08720.05
7.0.00.0130.08320.30
5.6.280.0030.07321.07
5.6.210.0070.08720.61
5.6.200.0170.06318.20
5.6.190.0030.07720.38
5.6.180.3770.04020.61
5.6.170.0200.07320.53
5.6.160.0100.07720.54
5.6.150.0100.04018.29
5.6.140.0070.07318.28
5.6.130.0000.06018.17
5.6.120.0000.05320.99
5.6.110.0100.08321.02
5.6.100.0100.06021.03
5.6.90.0070.08720.98
5.6.80.0100.03320.43
5.6.70.0300.07320.50
5.5.350.0070.08320.30
5.5.340.0030.05718.07
5.5.330.0030.04320.40
5.5.320.0330.04720.24
5.5.310.0270.07020.30
5.5.300.0100.06017.95
5.5.290.0070.05718.08
5.5.280.0070.08720.80
5.5.270.0100.08720.96
5.5.260.0100.08320.86
5.5.250.0070.08720.78
5.5.240.0030.09020.16
5.4.450.0530.05719.59
5.4.440.0630.06019.20
5.4.430.0130.05319.39
5.4.420.0130.06719.40
5.4.410.0000.06319.46
5.4.400.0030.05718.51
5.4.390.0130.05318.53
5.4.380.0270.05318.76
5.4.370.0270.04318.50
5.4.360.0270.05018.75
5.4.350.0170.05318.41
5.4.340.0130.05718.84
5.4.320.0070.03912.51
5.4.310.0080.04512.50
5.4.300.0090.04012.50
5.4.290.0060.04312.50
5.4.280.0070.03412.40
5.4.270.0170.06018.98
5.4.260.0170.06319.20
5.4.250.0330.04319.12
5.4.240.0070.05719.20
5.4.230.0200.06018.88
5.4.220.0170.05318.97
5.4.210.0100.08018.95
5.4.200.0130.08019.08
5.4.190.0100.07318.96
5.4.180.0170.05718.89
5.4.170.0170.05318.97
5.4.160.0130.07319.00
5.4.150.0100.06018.98
5.4.140.0070.07716.52
5.4.130.0100.06016.53
5.4.120.0230.07016.67
5.4.110.0100.07316.61
5.4.100.0130.07016.39
5.4.90.0200.06316.59
5.4.80.0070.06316.52
5.4.70.0300.05716.52
5.4.60.0170.06716.38
5.4.50.0130.04716.65
5.4.40.0170.05316.48
5.4.30.0170.05316.36
5.4.20.0130.05316.50
5.4.10.0100.07016.66
5.4.00.0100.06315.88
5.3.290.0050.03912.80
5.3.280.0200.05314.66
5.3.270.0030.06014.80
5.3.260.0100.06714.66
5.3.250.0170.06314.89
5.3.240.0070.05314.65
5.3.230.0100.06714.89
5.3.220.0170.05014.84
5.3.210.0130.06314.75
5.3.200.0170.05714.62
5.3.190.0070.07014.85
5.3.180.0130.07714.77
5.3.170.0070.06714.86
5.3.160.0100.07314.85
5.3.150.0200.05014.78
5.3.140.0170.07014.61
5.3.130.0030.08014.73
5.3.120.0070.08314.72
5.3.110.0130.07014.73
5.3.100.0170.06714.09
5.3.90.0100.05014.29
5.3.80.0070.06014.07
5.3.70.0230.04314.02
5.3.60.0200.05714.05
5.3.50.0170.05713.82
5.3.40.0070.06714.12
5.3.30.0130.06313.96
5.3.20.0100.06013.89
5.3.10.0070.05013.87
5.3.00.0100.06013.95
5.2.170.0070.05311.05
5.2.160.0070.06011.44
5.2.150.0100.05011.42
5.2.140.0130.04711.32
5.2.130.0100.05711.38
5.2.120.0030.06011.11
5.2.110.0200.05310.98
5.2.100.0170.03711.31
5.2.90.0100.04011.18
5.2.80.0170.04711.31
5.2.70.0070.06711.09
5.2.60.0100.05311.03
5.2.50.0100.04710.93
5.2.40.0070.04311.05
5.2.30.0030.06011.19
5.2.20.0170.03310.95
5.2.10.0070.04011.04
5.2.00.0100.04710.93
5.1.60.0130.03010.93
5.1.50.0170.03710.93
5.1.40.0130.03710.93
5.1.30.0030.05710.93
5.1.20.0070.05010.93
5.1.10.0170.03010.93
5.1.00.0100.04710.93
5.0.50.0070.03310.93
5.0.40.0000.04010.93
5.0.30.0030.05310.93
5.0.20.0030.03710.93
5.0.10.0030.03710.93
5.0.00.0030.06010.93
4.4.90.0030.03310.93
4.4.80.0030.02310.93
4.4.70.0070.03010.93
4.4.60.0030.03010.93
4.4.50.0070.02710.93
4.4.40.0030.04710.93
4.4.30.0070.02710.93
4.4.20.0100.02310.93
4.4.10.0030.02010.93
4.4.00.0000.04710.93
4.3.110.0100.03710.93
4.3.100.0070.02010.93
4.3.90.0030.02710.93
4.3.80.0100.03010.93
4.3.70.0000.02310.93
4.3.60.0070.02710.93
4.3.50.0070.02710.93
4.3.40.0070.03310.93
4.3.30.0030.02010.93
4.3.20.0030.02710.93
4.3.10.0030.02310.93
4.3.00.0070.0236.44

preferences:
45.47 ms | 401 KiB | 5 Q