3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vals = [["foo" => "bar", "quux" => 3], ["foo" => "baz", "quux => 4"]]; if (in_array(["foo" => "bar", "quux" => 3], $vals)) { echo "first one found\n"; } else { echo "first one not found\n"; } if (in_array(["foo" => "quuux", "quux" => 27], $vals)) { echo "second one found\n"; } else { echo "second one not found\n"; }

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.0180.00316.63
8.3.50.0130.00522.94
8.3.40.0110.00718.67
8.3.30.0110.00318.38
8.3.20.0060.00321.95
8.3.10.0070.00021.84
8.3.00.0050.00319.79
8.2.180.0140.00718.17
8.2.170.0110.00618.67
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0120.01224.66
8.2.130.0070.00022.08
8.2.120.0040.00426.35
8.2.110.0040.00722.03
8.2.100.0070.00318.03
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0040.00417.80
8.2.50.0080.00018.10
8.2.40.0080.00320.42
8.2.30.0070.00019.18
8.2.20.0070.00017.66
8.2.10.0030.00517.87
8.2.00.0040.00417.92
8.1.280.0140.00725.92
8.1.270.0040.00423.98
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00720.87
8.1.230.0070.00417.81
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0050.00517.13
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0000.00718.53
8.1.160.0030.00522.20
8.1.150.0030.00320.89
8.1.140.0050.00519.48
8.1.130.0040.00419.18
8.1.120.0050.00217.31
8.1.110.0050.00317.40
8.1.100.0050.00217.39
8.1.90.0080.00017.29
8.1.80.0040.00417.45
8.1.70.0000.00817.47
8.1.60.0030.00517.48
8.1.50.0030.00517.46
8.1.40.0000.00717.32
8.1.30.0030.00517.60
8.1.20.0050.00317.57
8.1.10.0000.00717.56
8.1.00.0000.00817.43
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00518.45
8.0.270.0030.00317.37
8.0.260.0030.00316.75
8.0.250.0070.00016.80
8.0.240.0030.00316.90
8.0.230.0000.00716.81
8.0.220.0000.00716.75
8.0.210.0070.00016.77
8.0.200.0000.00616.89
8.0.190.0000.00716.89
8.0.180.0040.00416.82
8.0.170.0050.00316.84
8.0.160.0000.00816.73
8.0.150.0040.00416.68
8.0.140.0000.00816.79
8.0.130.0030.00313.23
8.0.120.0030.00616.68
8.0.110.0000.00716.71
8.0.100.0000.00716.87
8.0.90.0000.00716.84
8.0.80.0090.00616.86
8.0.70.0000.00816.88
8.0.60.0000.00716.90
8.0.50.0050.00216.84
8.0.30.0150.00316.99
8.0.20.0060.01517.40
8.0.10.0050.00217.03
8.0.00.0120.01216.53
7.4.330.0060.00015.08
7.4.320.0030.00316.54
7.4.300.0030.00316.38
7.4.290.0070.00016.46
7.4.280.0060.00316.42
7.4.270.0030.00316.50
7.4.260.0000.00716.51
7.4.250.0000.00716.52
7.4.240.0050.00316.44
7.4.230.0030.00316.66
7.4.220.0090.00916.47
7.4.210.0170.00616.51
7.4.200.0070.00016.35
7.4.160.0090.00616.49
7.4.150.0190.03917.40
7.4.140.0130.00917.86
7.4.130.0110.00616.59
7.4.120.0120.00716.39
7.4.110.0090.00916.35
7.4.100.0000.01816.44
7.4.90.0070.01016.44
7.4.80.0110.00719.39
7.4.70.0070.01016.37
7.4.60.0070.01016.40
7.4.50.0070.00716.34
7.4.40.0100.00616.41
7.4.30.0120.00416.54
7.4.00.0060.01014.75
7.3.330.0030.00313.03
7.3.320.0070.00012.98
7.3.310.0070.00016.00
7.3.300.0040.00416.16
7.3.290.0080.00816.16
7.3.280.0070.01116.14
7.3.270.0070.01017.40
7.3.260.0100.00816.27
7.3.250.0090.00916.22
7.3.240.0130.00616.43
7.3.230.0120.00616.39
7.3.210.0070.01116.27
7.3.200.0060.01116.24
7.3.190.0060.01216.25
7.3.180.0090.00916.30
7.3.170.0120.00616.38
7.3.160.0060.01016.28
7.3.120.0100.00714.59
7.3.110.0070.00714.82
7.3.100.0060.00914.35
7.3.90.0000.01414.81
7.3.80.0070.00314.41
7.3.70.0120.00314.68
7.3.60.0030.00614.66
7.3.50.0100.00614.47
7.3.40.0080.00414.78
7.3.30.0100.00314.71
7.3.20.0030.00916.33
7.3.10.0080.00716.61
7.3.00.0070.00416.31
7.2.330.0100.00716.63
7.2.320.0030.01316.44
7.2.310.0090.03016.41
7.2.300.0060.01516.61
7.2.290.0060.00916.29
7.2.240.0070.00714.82
7.2.230.0070.00715.04
7.2.220.0030.00715.07
7.2.210.0120.00414.59
7.2.200.0000.01114.91
7.2.190.0000.01414.93
7.2.180.0070.00714.89
7.2.170.0090.00614.93
7.2.160.0040.01114.89
7.2.150.0030.00916.97
7.2.140.0060.00616.95
7.2.130.0100.00716.64
7.2.120.0080.00816.73
7.2.110.0100.00516.76
7.2.100.0120.00216.70
7.2.90.0100.00516.63
7.2.80.0020.01116.72
7.2.70.0070.00416.58
7.2.60.0070.00716.78
7.2.50.0040.01116.69
7.2.40.0090.00616.69
7.2.30.0070.01016.81
7.2.20.0060.00916.77
7.2.10.0070.00416.82
7.2.00.0070.00817.58
7.1.330.0000.01715.79
7.1.320.0030.01215.90
7.1.310.0060.00615.53
7.1.300.0080.00315.74
7.1.290.0090.00615.75
7.1.280.0000.01515.65
7.1.270.0070.00715.67
7.1.260.0030.01315.82
7.1.250.0040.00915.91
7.1.200.0080.00415.61
7.1.70.0080.00016.58
7.1.60.0070.00719.75
7.1.00.0070.06722.36
7.0.200.0460.00014.66
7.0.90.0930.00019.91
7.0.80.0830.00019.95
7.0.70.0670.00019.88
7.0.60.0700.00019.83
7.0.50.0900.00020.32
7.0.40.0670.00020.43
7.0.30.0930.00020.29
7.0.20.0730.00020.44
7.0.10.0770.00020.25
7.0.00.0730.00020.29
5.6.240.0830.00020.65
5.6.230.0900.00020.64
5.6.220.0700.00020.80
5.6.210.0670.00020.74
5.6.200.0730.00021.09
5.6.190.0870.00021.08
5.6.180.0770.00021.02
5.6.170.0700.00020.98
5.6.160.0670.00021.02
5.6.150.0730.00021.09
5.6.140.0900.00021.08
5.6.130.0770.00021.01
5.6.120.0770.00021.02
5.6.110.0700.00021.06
5.6.100.0830.00021.05
5.6.90.0970.00021.04
5.6.80.0870.00020.48
5.6.70.0730.00020.46
5.6.60.0630.00020.47
5.6.50.0630.00020.58
5.6.40.0670.00020.45
5.6.30.0630.00020.44
5.6.20.0670.00020.37
5.6.10.0800.00020.44
5.6.00.0770.00020.46

preferences:
71.37 ms | 401 KiB | 5 Q