3v4l.org

run code in 300+ PHP versions simultaneously
<?php $m = [ 'foo' => 'aaa', 'bar' => 'bbb', 'baz' => 'ccc', ]; $v = 'bbb'; var_dump(in_array($v, $m, true)); $v = 'zzz'; var_dump(in_array($v, $m, true));

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.1.90.0000.00717.38
8.1.80.0040.00417.31
8.1.70.0050.00217.26
8.1.60.0040.00417.39
8.1.50.0040.00417.41
8.1.40.0030.00617.51
8.1.30.0070.00017.56
8.1.20.0000.00717.48
8.1.10.0080.00017.41
8.1.00.0040.00417.23
8.0.220.0030.00316.85
8.0.210.0080.00016.84
8.0.200.0030.00316.86
8.0.190.0070.00016.90
8.0.180.0000.00716.89
8.0.170.0040.00416.85
8.0.160.0040.00416.90
8.0.150.0000.00716.64
8.0.140.0030.00316.66
8.0.130.0000.00613.18
8.0.120.0040.00416.62
8.0.110.0050.00316.84
8.0.100.0030.00516.64
8.0.90.0030.00616.84
8.0.80.0090.00816.76
8.0.70.0080.00016.69
8.0.60.0000.00716.86
8.0.50.0060.00316.84
8.0.30.0090.00617.05
8.0.20.0100.01017.05
8.0.10.0000.00716.95
8.0.00.0110.00716.94
7.4.300.0070.00016.57
7.4.290.0080.00016.46
7.4.280.0040.00416.52
7.4.270.0000.00716.42
7.4.260.0050.00013.22
7.4.250.0000.00716.39
7.4.240.0030.00316.38
7.4.230.0040.00416.62
7.4.220.0030.00316.45
7.4.210.0030.01316.47
7.4.200.0000.00716.34
7.4.140.0100.01017.86
7.4.130.0140.00416.29
7.4.120.0090.00916.37
7.4.110.0110.00916.36
7.4.100.0160.00716.35
7.4.90.0100.00716.31
7.4.80.0120.00719.39
7.4.70.0050.01316.60
7.4.60.0070.01316.27
7.4.50.0030.01016.43
7.4.40.0070.01016.38
7.4.00.0080.00414.61
7.3.330.0030.00516.20
7.3.320.0050.00013.07
7.3.310.0000.00716.04
7.3.300.0040.00416.04
7.3.290.0050.00916.11
7.3.260.0110.00716.29
7.3.240.0090.00816.30
7.3.230.0090.00616.39
7.3.210.0030.01316.32
7.3.200.0110.00616.10
7.3.190.0070.01016.10
7.3.180.0090.01216.18
7.3.170.0080.00816.58
7.3.160.0060.01316.25
7.3.100.0070.00914.48
7.3.90.0090.00914.59
7.3.80.0100.00714.61
7.3.70.0080.01014.14
7.3.60.0110.00714.48
7.3.50.0110.00914.60
7.3.40.0070.01114.48
7.3.30.0120.00314.33
7.3.20.0160.01014.28
7.3.10.0090.01314.38
7.3.00.0160.00814.78
7.2.330.0090.01516.18
7.2.320.0080.00916.34
7.2.310.0060.01616.34
7.2.300.0120.00516.37
7.2.290.0130.00316.45
7.2.220.0110.00514.43
7.2.210.0100.00614.61
7.2.200.0090.01314.77
7.2.190.0080.01514.48
7.2.180.0100.01014.61
7.2.170.0090.00914.46
7.2.160.0150.00414.49
7.2.150.0180.00614.56
7.2.140.0290.00314.72
7.2.130.0250.00314.39
7.2.120.1270.00914.39
7.2.110.0170.00614.84
7.2.100.0110.01014.41
7.2.90.0140.00614.77
7.2.80.0190.00614.57
7.2.70.0130.01714.37
7.2.60.0070.01714.65
7.2.50.0190.01314.59
7.2.40.0180.00914.81
7.2.30.0150.00714.57
7.2.20.0220.00614.83
7.2.10.0090.00914.61
7.2.00.0170.00314.76
7.1.320.0140.01213.60
7.1.310.0090.01013.79
7.1.300.0200.00513.68
7.1.290.0140.00813.65
7.1.280.0150.00713.78
7.1.270.0110.01113.44
7.1.260.0150.01513.67
7.1.250.0150.01513.64

preferences:
13.57 ms | 406 KiB | 5 Q