3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = in_array("application/x-font-ttf", ['application/x-font-ttf']); echo "None: $result\n"; $result = in_array("application/x-font-ttf", ['application/x-font-ttf'], false); echo "False: $result\n"; $result = in_array("application/x-font-ttf", ['application/x-font-ttf'], true); echo "True: $result\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.4.10.0000.00917.73
8.3.140.0030.00616.71
8.3.130.0060.00316.76
8.3.120.0030.00619.09
8.3.110.0030.00520.94
8.3.100.0160.00316.55
8.3.90.0040.01418.23
8.3.80.0000.00918.56
8.3.70.0130.00418.31
8.3.60.0070.00718.43
8.3.50.0150.00721.04
8.3.40.0070.00718.84
8.3.30.0040.01118.71
8.3.20.0000.00721.95
8.3.10.0080.00021.95
8.3.00.0080.00023.36
8.2.250.0110.00418.21
8.2.240.0030.00518.79
8.2.230.0060.01022.58
8.2.220.0140.00424.06
8.2.210.0040.00426.77
8.2.200.0100.00618.41
8.2.190.0110.01116.75
8.2.180.0070.01416.75
8.2.170.0110.00422.96
8.2.160.0150.00322.16
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00019.48
8.2.110.0060.00322.16
8.2.100.0110.00017.91
8.2.90.0030.00622.32
8.2.80.0030.00519.13
8.2.70.0000.00917.93
8.2.60.0040.00417.97
8.2.50.0040.00418.10
8.2.40.0080.00021.21
8.2.30.0030.00619.28
8.2.20.0000.00818.04
8.2.10.0040.00421.09
8.2.00.0060.00319.12
8.1.300.0060.00318.57
8.1.290.0040.00418.88
8.1.280.0040.01125.92
8.1.270.0060.00322.13
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0100.00722.49
8.1.230.0040.00820.96
8.1.220.0030.00517.79
8.1.210.0070.00418.77
8.1.200.0030.00717.23
8.1.190.0030.00617.22
8.1.180.0060.00318.10
8.1.170.0040.00418.52
8.1.160.0070.00018.88
8.1.150.0070.00018.82
8.1.140.0030.00322.07
8.1.130.0000.00717.38
8.1.120.0040.00417.29
8.1.110.0060.00317.42
8.1.100.0000.00717.40
8.1.90.0030.00317.41
8.1.80.0040.00417.35
8.1.70.0000.00717.39
8.1.60.0070.00017.51
8.1.50.0040.00417.37
8.1.40.0030.00517.41
8.1.30.0080.00017.48
8.1.20.0080.00017.58
8.1.10.0040.00417.56
8.1.00.0000.00717.50
8.0.300.0000.00719.98
8.0.290.0090.00316.88
8.0.280.0070.00018.36
8.0.270.0040.00418.59
8.0.260.0000.00716.93
8.0.250.0070.00017.03
8.0.240.0030.00816.87
8.0.230.0030.00316.88
8.0.220.0070.00016.91
8.0.210.0060.00016.89
8.0.200.0070.00016.99
8.0.190.0040.00417.03
8.0.180.0070.00016.99
8.0.170.0030.00617.04
8.0.160.0030.00616.93
8.0.150.0040.00416.89
8.0.140.0040.00416.81
8.0.130.0060.00013.38
8.0.120.0000.00816.82
8.0.110.0020.00516.88
8.0.100.0040.00416.84
8.0.90.0060.00316.83
8.0.80.0060.00916.98
8.0.70.0000.00716.90
8.0.60.0040.00416.92
8.0.50.0040.00417.02
8.0.30.0130.00317.00
8.0.20.0100.01417.16
8.0.10.0040.00416.98
8.0.00.0110.00716.79
7.4.330.0000.00615.55
7.4.320.0000.00716.47
7.4.300.0040.00416.54
7.4.290.0040.00416.30
7.4.280.0040.00516.43
7.4.270.0000.00916.43
7.4.260.0000.00716.41
7.4.250.0030.00316.46
7.4.240.0060.00216.46
7.4.230.0000.00716.55
7.4.220.0040.00416.48
7.4.210.0070.01016.51
7.4.200.0000.00716.29
7.4.130.0090.01216.51
7.4.120.0130.00416.42
7.4.110.0080.00816.57
7.4.100.0090.00916.54
7.4.90.0080.00816.38
7.4.80.0070.01419.39
7.4.70.0060.01016.53
7.4.60.0060.00916.29
7.4.50.0030.01316.53
7.4.40.0070.01116.43
7.4.00.0090.00715.01
7.3.330.0000.00612.97
7.3.320.0000.00513.05
7.3.310.0000.00716.05
7.3.300.0030.00316.20
7.3.290.0040.00416.09
7.3.280.0070.00816.19
7.3.260.0100.01016.26
7.3.240.0110.00716.41
7.3.230.0110.00716.48
7.3.210.0180.00416.25
7.3.200.0100.00716.44
7.3.190.0100.00616.22
7.3.180.0160.00016.27
7.3.170.0060.01016.44
7.3.160.0130.00316.51
7.3.120.0070.01014.81
7.3.110.0070.01114.54
7.3.100.0090.00314.55
7.3.90.0100.00714.76
7.3.80.0040.01414.78
7.3.70.0070.00914.40
7.3.60.0020.01014.56
7.3.50.0090.00514.62
7.3.40.0090.00914.78
7.3.30.0090.00514.75
7.3.20.0060.00616.64
7.3.10.0090.00416.42
7.3.00.0090.00716.57
7.2.330.0090.00916.53
7.2.320.0060.01216.31
7.2.310.0140.00416.38
7.2.300.0030.01416.63
7.2.290.0100.00616.67
7.2.250.0060.01115.08
7.2.240.0070.01115.03
7.2.230.0100.01015.07
7.2.220.0000.01115.12
7.2.210.0070.01114.73
7.2.200.0080.00714.78
7.2.190.0070.01015.02
7.2.180.0050.01015.00
7.2.170.0060.00814.87
7.2.160.0090.01315.06
7.2.150.0040.00816.82
7.2.140.0080.00416.86
7.2.130.0090.01216.82
7.2.120.0190.00616.91
7.2.110.0140.00716.60
7.2.100.0090.00616.89
7.2.90.0090.01216.45
7.2.80.0070.00716.40
7.2.70.0100.01016.82
7.2.60.0090.00317.07
7.2.50.0040.01116.68
7.2.40.0070.00716.71
7.2.30.0060.00916.75
7.2.20.0100.01016.95
7.2.10.0120.00616.72
7.2.00.0090.00316.54
7.1.330.0000.01315.93
7.1.320.0030.00915.50
7.1.310.0070.00715.67
7.1.300.0070.00515.50
7.1.290.0090.00415.77
7.1.280.0070.00715.63
7.1.270.0060.00515.69
7.1.260.0070.00615.64
7.1.250.0120.00315.57
7.1.240.0090.01215.66
7.1.230.0030.01015.77
7.1.220.0090.00615.60
7.1.210.0030.01115.73
7.1.200.0080.00515.73
7.1.190.0090.00315.49
7.1.180.0000.01015.71
7.1.170.0100.00315.71
7.1.160.0100.00715.66
7.1.150.0120.00915.80
7.1.140.0080.00815.62
7.1.130.0120.00315.58
7.1.120.0170.00315.69
7.1.110.0070.01015.60
7.1.100.0070.01415.64
7.1.90.0040.00815.57
7.1.80.0160.00415.81
7.1.70.0040.01215.56
7.1.60.0060.00615.64
7.1.50.0120.00915.72
7.1.40.0060.00615.68
7.1.30.0070.00715.51
7.1.20.0070.00415.76
7.1.10.0060.00615.83
7.1.00.0040.00915.69
7.0.330.0070.01315.42
7.0.320.0030.01015.36
7.0.310.0100.00315.14
7.0.300.0030.01015.48
7.0.290.0090.00515.28
7.0.280.0030.00915.29
7.0.270.0090.00515.18
7.0.260.0090.00415.09
7.0.250.0110.00615.12
7.0.240.0120.01215.37
7.0.230.0060.00615.25
7.0.220.0070.00715.22
7.0.210.0080.00415.29
7.0.200.0040.00815.34
7.0.190.0090.00315.39
7.0.180.0090.00015.46
7.0.170.0110.00715.35
7.0.160.0070.01315.14
7.0.150.0090.00315.25
7.0.140.0070.00715.08
7.0.130.0040.00915.51
7.0.120.0090.00615.36
7.0.110.0090.00915.11
7.0.100.0080.00515.43
7.0.90.0120.00015.01
7.0.80.0060.00615.22
7.0.70.0060.00615.39
7.0.60.0030.00915.23
7.0.50.0000.01015.52
7.0.40.0090.00615.36
7.0.30.0170.00715.42
7.0.20.0070.00715.15
7.0.10.0030.01015.50
7.0.00.0030.01015.42
5.6.400.0020.00914.45
5.6.390.0070.00714.42
5.6.380.0030.00813.96
5.6.370.0090.00914.59
5.6.360.0210.00514.28
5.6.350.0150.00714.11
5.6.340.0070.01014.21
5.6.330.0040.01514.23
5.6.320.0040.01214.23
5.6.310.0130.00614.57
5.6.300.0130.00714.37
5.6.290.0090.00913.83
5.6.280.0130.01014.32
5.6.270.0090.00714.22
5.6.260.0110.00714.08
5.6.250.0080.00814.19
5.6.240.0150.00414.10
5.6.230.0130.01314.10
5.6.220.0140.00014.53
5.6.210.0150.00614.14
5.6.200.0170.00414.20
5.6.190.0170.00514.38
5.6.180.0060.01514.29
5.6.170.0130.00614.34
5.6.160.0100.00814.47
5.6.150.0160.00413.98
5.6.140.0150.00514.18
5.6.130.0180.00714.33
5.6.120.0150.00814.50
5.6.110.0170.00314.21
5.6.100.0100.00814.28
5.6.90.0170.01414.17
5.6.80.0170.01414.32
5.6.70.0190.01014.06
5.6.60.0040.01614.05
5.6.50.0070.01214.05
5.6.40.0170.01314.38
5.6.30.0080.00814.19
5.6.20.0120.00714.23
5.6.10.0110.00714.13
5.6.00.0100.01014.20
5.5.380.0150.00414.29
5.5.370.0070.01313.88
5.5.360.0190.00614.04
5.5.350.0210.01214.42
5.5.340.0060.01714.20
5.5.330.0070.00714.10
5.5.320.0160.01014.06
5.5.310.0100.00714.36
5.5.300.0160.00814.10
5.5.290.0100.01714.07
5.5.280.0200.00313.89
5.5.270.0180.00013.96
5.5.260.0150.00314.17
5.5.250.0160.00513.96
5.5.240.0120.01214.16
5.5.230.0120.00614.34
5.5.220.0120.00614.21
5.5.210.0130.00614.09
5.5.200.0090.00914.04
5.5.190.0120.00914.23
5.5.180.0070.01114.27
5.5.170.0120.00414.07
5.5.160.0100.00914.34
5.5.150.0150.00513.84
5.5.140.0150.00613.96
5.5.130.0140.01114.09
5.5.120.0200.01114.27
5.5.110.0080.01314.20
5.5.100.0170.01014.08
5.5.90.0220.00314.24
5.5.80.0100.01414.03
5.5.70.0170.01114.00
5.5.60.0170.00914.05
5.5.50.0070.01414.05
5.5.40.0080.01213.97
5.5.30.0110.00814.13
5.5.20.0140.00613.73
5.5.10.0170.00714.34
5.5.00.0090.00714.06
5.4.450.0090.00410.80
5.4.440.0080.00411.01
5.4.430.0100.00311.12
5.4.420.0060.00610.56
5.4.410.0100.00211.03
5.4.400.0120.00610.80
5.4.390.0080.00510.82
5.4.380.0140.00010.76
5.4.370.0100.00311.08
5.4.360.0090.00410.87
5.4.350.0070.01110.94
5.4.340.0110.00410.88
5.4.330.0120.00010.84
5.4.320.0090.00710.96
5.4.310.0070.00410.74
5.4.300.0070.01510.98
5.4.290.0110.00610.78
5.4.280.0140.00010.50
5.4.270.0140.00010.68
5.4.260.0040.00610.52
5.4.250.0070.00810.69
5.4.240.0060.00510.59
5.4.230.0200.00410.78
5.4.220.0130.00410.91
5.4.210.0120.00010.83
5.4.200.0170.00310.86
5.4.190.0100.00310.85
5.4.180.0120.00310.85
5.4.170.0050.01010.73
5.4.160.0100.00310.75
5.4.150.0130.00310.80
5.4.140.0050.00911.06
5.4.130.0030.01310.81
5.4.120.0120.00411.06
5.4.110.0120.00010.86
5.4.100.0110.00810.63
5.4.90.0090.00310.88
5.4.80.0090.00310.67
5.4.70.0110.00310.63
5.4.60.0120.00810.70
5.4.50.0070.00710.76
5.4.40.0100.00710.66
5.4.30.0100.00310.78
5.4.20.0080.00810.91
5.4.10.0100.00610.82
5.4.00.0060.00410.68
5.3.290.0080.00610.28
5.3.280.0090.00210.14
5.3.270.0000.01110.13
5.3.260.0090.00910.01
5.3.250.0130.0069.98
5.3.240.0100.00310.08
5.3.230.0080.00310.00
5.3.220.0070.0039.95
5.3.210.0090.0059.98
5.3.200.0050.00810.09
5.3.190.0030.00810.24
5.3.180.0080.00310.13
5.3.170.0050.00910.29
5.3.160.0090.00310.27
5.3.150.0100.00310.28
5.3.140.0060.00610.22
5.3.130.0080.00610.25
5.3.120.0100.00310.17
5.3.110.0100.00410.20
5.3.100.0000.01110.15
5.3.90.0040.00810.22
5.3.80.0030.0099.98
5.3.70.0070.00510.15
5.3.60.0100.00310.19
5.3.50.0100.0039.96
5.3.40.0080.00610.07
5.3.30.0040.00710.09
5.3.20.0100.00210.16
5.3.10.0050.0089.95
5.3.00.0040.0079.95
5.2.170.0090.0039.95
5.2.160.0090.0049.95
5.2.150.0060.0049.95
5.2.140.0060.0039.95
5.2.130.0080.0039.95
5.2.120.0050.0059.95
5.2.110.0000.0109.95
5.2.100.0050.0059.95
5.2.90.0050.0059.95
5.2.80.0020.0079.95
5.2.70.0070.0039.95
5.2.60.0070.0079.95
5.2.50.0100.0009.95
5.2.40.0050.0059.95
5.2.30.0070.0029.95
5.2.20.0040.0049.95
5.2.10.0070.0059.95
5.2.00.0070.0059.95
5.1.60.0040.0079.95
5.1.50.0060.0069.95
5.1.40.0040.0049.95
5.1.30.0110.0049.95
5.1.20.0030.0069.95
5.1.10.0050.0039.95
5.1.00.0000.0089.95
5.0.50.0110.0009.95
5.0.40.0090.0009.95
5.0.30.0000.0069.95
5.0.20.0080.0009.95
5.0.10.0000.0069.95
5.0.00.0110.0009.95
4.4.90.0060.0009.95
4.4.80.0000.0069.95
4.4.70.0060.0009.95
4.4.60.0090.0049.95
4.4.50.0080.0039.95
4.4.40.0030.0039.95
4.4.30.0000.0069.95
4.4.20.0050.0039.95
4.4.10.0000.0109.95
4.4.00.0040.0029.95
4.3.110.0000.0069.95
4.3.100.0030.0039.95
4.3.90.0000.0099.95
4.3.80.0090.0009.95
4.3.70.0000.0079.95
4.3.60.0000.0069.95
4.3.50.0040.0049.95
4.3.40.0050.0009.95
4.3.30.0030.0089.95
4.3.20.0060.0009.95
4.3.10.0040.0029.95
4.3.00.0060.0009.95

preferences:
70.82 ms | 403 KiB | 5 Q