3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = 'demo1'; $array2 = array("demo", "b" => array("1")); $result = in_array($array1, $array2); echo 'ID_' . array2;

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.0040.01118.40
8.3.50.0100.01221.14
8.3.40.0150.00018.66
8.3.30.0090.00619.09
8.3.20.0140.00020.22
8.3.10.0090.00020.52
8.3.00.0080.00019.38
8.2.180.0110.00816.32
8.2.170.0100.00722.96
8.2.160.0100.00320.57
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00022.23
8.2.110.0100.00021.10
8.2.100.0090.00317.91
8.2.90.0040.00417.84
8.2.80.0040.00419.84
8.2.70.0000.00817.50
8.2.60.0000.00717.63
8.2.50.0050.00517.63
8.2.40.0060.00319.23
8.2.30.0040.00418.01
8.2.20.0050.00217.61
8.2.10.0030.00518.03
8.2.00.0040.00417.68
8.1.280.0110.00425.92
8.1.270.0040.00424.02
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0000.00920.88
8.1.230.0040.00722.11
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0080.00017.35
8.1.190.0050.00317.35
8.1.180.0080.00018.10
8.1.170.0040.00417.62
8.1.160.0040.00422.00
8.1.150.0030.00518.80
8.1.140.0070.00017.40
8.1.130.0070.00017.43
8.1.120.0000.00717.32
8.1.110.0000.00717.48
8.1.100.0040.00317.43
8.1.90.0040.00417.36
8.1.80.0030.00417.48
8.1.70.0050.00317.45
8.1.60.0060.00317.54
8.1.50.0030.00617.51
8.1.40.0000.00817.51
8.1.30.0080.00017.57
8.1.20.0000.00817.53
8.1.10.0000.00817.49
8.1.00.0000.00917.46
8.0.300.0040.00419.98
8.0.290.0070.00016.88
8.0.280.0070.00018.35
8.0.270.0030.00317.25
8.0.260.0030.00316.75
8.0.250.0030.00317.00
8.0.240.0000.00717.07
8.0.230.0000.00716.88
8.0.220.0000.00716.91
8.0.210.0000.00617.02
8.0.200.0030.00316.89
8.0.190.0000.00716.89
8.0.180.0000.00716.83
8.0.170.0080.00016.88
8.0.160.0040.00416.89
8.0.150.0000.00716.93
8.0.140.0000.00716.92
8.0.130.0030.00313.30
8.0.120.0100.00016.93
8.0.110.0000.00816.96
8.0.100.0040.00416.96
8.0.90.0040.00416.77
8.0.80.0120.00917.01
8.0.70.0000.00816.82
8.0.60.0080.00016.96
8.0.50.0000.00717.05
8.0.30.0120.01017.06
8.0.20.0110.01017.40
8.0.10.0030.00417.05
8.0.00.0110.00816.96
7.4.330.0000.00515.09
7.4.320.0070.00016.45
7.4.300.0030.00616.39
7.4.290.0000.00716.49
7.4.280.0040.00416.41
7.4.270.0040.00416.39
7.4.260.0050.00316.56
7.4.250.0050.00216.45
7.4.240.0020.00516.51
7.4.230.0080.00016.48
7.4.220.0130.00716.69
7.4.210.0040.01116.49
7.4.200.0000.00716.47
7.4.160.0080.00816.38
7.4.150.0110.00717.40
7.4.140.0120.00817.86
7.4.130.0080.01216.36
7.4.120.0110.00816.58
7.4.110.0070.01416.30
7.4.100.0100.00716.54
7.4.90.0140.00916.38
7.4.80.0140.00719.39
7.4.70.0090.00616.59
7.4.60.0100.01016.45
7.4.50.0030.00516.65
7.4.40.0110.00616.66
7.4.30.0090.00616.27
7.4.00.0030.01415.10
7.3.330.0050.00012.98
7.3.320.0050.00013.10
7.3.310.0000.00716.39
7.3.300.0070.00016.29
7.3.290.0090.00916.29
7.3.280.0070.00816.25
7.3.270.0080.01117.40
7.3.260.0130.00616.21
7.3.250.0080.00916.39
7.3.240.0100.00716.54
7.3.230.0130.01016.39
7.3.210.0070.01116.48
7.3.200.0060.01519.39
7.3.190.0120.00616.46
7.3.180.0060.00916.56
7.3.170.0070.00716.27
7.3.160.0120.00416.59
7.3.120.0100.01014.84
7.3.110.0040.01614.89
7.3.100.0040.00814.72
7.3.90.0030.01314.79
7.3.80.0060.00914.88
7.3.70.0070.00714.48
7.3.60.0000.01314.84
7.3.50.0000.01514.70
7.3.40.0080.00414.89
7.3.30.0070.01014.50
7.3.20.0040.00716.40
7.3.10.0120.00316.51
7.3.00.0100.00316.65
7.2.330.0070.01016.49
7.2.320.0090.00916.68
7.2.310.0190.00316.70
7.2.300.0050.01316.58
7.2.290.0070.01316.70
7.2.250.0110.00715.14
7.2.240.0040.01515.21
7.2.230.0070.00714.70
7.2.220.0060.01014.94
7.2.210.0080.00814.93
7.2.200.0040.01114.86
7.2.190.0140.00015.11
7.2.180.0060.00614.96
7.2.170.0030.01014.78
7.2.60.0060.00916.61
7.2.00.0030.01019.38
7.1.330.0100.00315.57
7.1.320.0000.01315.82
7.1.310.0030.01115.50
7.1.300.0060.00615.90
7.1.290.0040.00415.68
7.1.280.0060.01015.69
7.1.270.0070.01015.78
7.1.260.0060.00915.66
7.1.200.0000.01115.45
7.1.100.0070.00417.86
7.1.70.0000.00716.95
7.1.60.0100.01419.32
7.1.50.0070.01816.58
7.1.00.0030.08022.36
7.0.200.0040.00416.46
7.0.140.0070.07022.04
7.0.70.3800.02719.96
7.0.60.0270.06319.93
7.0.50.0100.04317.91
7.0.40.0070.07319.90
7.0.30.0230.09020.20
7.0.20.0200.04020.21
7.0.10.0300.07720.09
7.0.00.0100.05320.16
5.6.280.0100.06721.08
5.6.210.0100.08020.52
5.6.200.0030.09018.19
5.6.190.0030.05720.43
5.6.180.0100.05320.61
5.6.170.0500.06320.45
5.6.160.0100.03720.51
5.6.150.0000.04318.18
5.6.140.0030.04318.20
5.6.130.0030.05318.18
5.6.120.0000.09320.97
5.6.110.0100.06320.99
5.6.100.0100.07720.96
5.6.90.0030.08020.98
5.6.80.0070.03720.52
5.6.70.0070.07720.36
5.5.350.0030.08720.40
5.5.340.0100.04717.98
5.5.330.0100.08720.14
5.5.320.0030.08320.49
5.5.310.0270.07020.21
5.5.300.0170.03317.95
5.5.290.0100.07017.99
5.5.280.0100.07320.64
5.5.270.0070.03720.76
5.5.260.0130.07320.67
5.5.250.0030.07720.48
5.5.240.0130.07320.27
5.4.450.0000.04319.42
5.4.440.0070.04719.48
5.4.430.0170.04719.25
5.4.420.0670.00019.25
5.4.410.0630.00019.14
5.4.400.0870.00019.33
5.4.390.0630.00019.00
5.4.380.0630.00019.16
5.4.370.0770.00018.91
5.4.360.0600.00018.98
5.4.350.0630.00019.02
5.4.340.0600.00019.18
5.4.320.0060.03612.45
5.4.310.0060.03812.45
5.4.300.0100.03212.45
5.4.290.0060.04412.45
5.4.280.0030.03812.35
5.4.270.0040.03912.34
5.4.260.0080.04012.35
5.4.250.0070.04312.35
5.4.240.0060.03712.34
5.4.230.0040.04112.34
5.4.220.0060.04012.34
5.4.210.0080.03412.34
5.4.200.0070.03912.34
5.4.190.0030.03912.33
5.4.180.0050.04212.33
5.4.170.0080.03512.34
5.4.160.0030.03912.34
5.4.150.0040.03912.34
5.4.140.0080.03612.02
5.4.130.0040.03712.01
5.4.120.0100.03111.97
5.4.110.0080.03111.96
5.4.100.0070.03411.96
5.4.90.0070.03711.96
5.4.80.0050.04111.97
5.4.70.0080.03211.96
5.4.60.0090.03911.96
5.4.50.0060.03411.96
5.4.40.0050.03511.95
5.4.30.0020.03911.95
5.4.20.0060.03511.95
5.4.10.0110.03711.95
5.4.00.0090.03911.43
5.3.290.0080.04212.80
5.3.280.0050.03912.71
5.3.270.0070.03612.72
5.3.260.0080.04112.71
5.3.250.0080.03612.71
5.3.240.0080.03512.72
5.3.230.0060.04212.71
5.3.220.0090.03412.68
5.3.210.0120.03112.68
5.3.200.0090.03312.68
5.3.190.0040.03912.68
5.3.180.0060.03612.67
5.3.170.0090.03312.66
5.3.160.0060.03712.68
5.3.150.0090.03612.67
5.3.140.0060.03712.66
5.3.130.0080.03712.66
5.3.120.0110.04312.66
5.3.110.0050.03912.66
5.3.100.0050.04112.12
5.3.90.0120.03012.09
5.3.80.0060.03612.08
5.3.70.0100.03212.08
5.3.60.0060.03612.06
5.3.50.0060.03512.00
5.3.40.0080.03312.00
5.3.30.0050.03411.95
5.3.20.0050.03511.72
5.3.10.0030.03611.69
5.3.00.0080.03311.67
5.2.170.0060.0289.17
5.2.160.0060.0279.18
5.2.150.0060.0359.18
5.2.140.0090.0259.17
5.2.130.0040.0309.13
5.2.120.0090.0299.14
5.2.110.0070.0389.14
5.2.100.0070.0309.14
5.2.90.0050.0349.14
5.2.80.0070.0349.13
5.2.70.0040.0329.14
5.2.60.0080.0329.09
5.2.50.0090.0379.05
5.2.40.0060.0279.03
5.2.30.0050.0299.01
5.2.20.0040.0299.00
5.2.10.0060.0338.92
5.2.00.0040.0298.78
5.1.60.0070.0288.06
5.1.50.0050.0248.06
5.1.40.0050.0238.04
5.1.30.0030.0278.39
5.1.20.0050.0288.41
5.1.10.0020.0308.14
5.1.00.0030.0308.14
5.0.50.0020.0226.61
5.0.40.0040.0246.47
5.0.30.0050.0316.29
5.0.20.0040.0196.26
5.0.10.0050.0186.23
5.0.00.0050.0296.23
4.4.90.0030.0214.78
4.4.80.0040.0154.76
4.4.70.0030.0164.76
4.4.60.0030.0154.75
4.4.50.0020.0204.77
4.4.40.0040.0284.71
4.4.30.0020.0164.76
4.4.20.0030.0154.84
4.4.10.0020.0184.85
4.4.00.0020.0274.76
4.3.110.0040.0164.67
4.3.100.0040.0164.66
4.3.90.0030.0254.63
4.3.80.0030.0244.58
4.3.70.0030.0144.63
4.3.60.0050.0124.63
4.3.50.0040.0174.63
4.3.40.0030.0274.54
4.3.30.0020.0173.29
4.3.20.0030.0163.27
4.3.10.0000.0193.22
4.3.00.0000.01313.59

preferences:
42.96 ms | 401 KiB | 5 Q