3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( in_array(0, ['this', 'that', 1, 2]) ); var_dump( in_array(null, ['this', 'that', 1, 2]) ); var_dump( in_array('this', ['this', 'that', 1, 2]) ); var_dump( in_array('there', ['this', 'that', 1, 2]) );

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.40.0070.00718.38
8.3.30.0110.00418.50
8.3.20.0040.00418.61
8.3.10.0050.00318.52
8.3.00.0040.00419.13
8.2.170.0070.01422.96
8.2.160.0100.00321.02
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0050.00320.63
8.2.110.0110.00020.89
8.2.100.0080.00417.78
8.2.90.0060.00318.95
8.2.80.0040.00419.33
8.2.70.0060.00317.50
8.2.60.0000.00917.80
8.2.50.0090.00018.07
8.2.40.0100.00018.03
8.2.30.0050.00217.84
8.2.20.0030.00517.48
8.2.10.0080.00017.60
8.2.00.0040.00417.61
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00022.48
8.1.230.0080.00320.88
8.1.220.0000.00817.74
8.1.210.0040.00418.85
8.1.200.0030.00617.23
8.1.190.0000.00917.41
8.1.180.0030.00618.10
8.1.170.0080.00018.78
8.1.160.0070.00018.68
8.1.150.0030.00518.48
8.1.140.0040.00417.28
8.1.130.0000.00717.66
8.1.120.0030.00317.40
8.1.110.0000.00717.33
8.1.100.0070.00017.29
8.1.90.0030.00317.38
8.1.80.0000.00717.30
8.1.70.0070.00017.34
8.1.60.0000.00817.48
8.1.50.0060.00317.29
8.1.40.0070.00017.41
8.1.30.0000.00917.48
8.1.20.0080.00017.56
8.1.10.0000.00817.25
8.1.00.0050.00317.34
8.0.300.0040.00419.82
8.0.290.0040.00416.58
8.0.280.0030.00318.30
8.0.270.0030.00317.12
8.0.260.0030.00316.56
8.0.250.0050.00316.86
8.0.240.0030.00616.83
8.0.230.0070.00016.78
8.0.220.0030.00316.78
8.0.210.0000.00716.67
8.0.200.0000.00616.70
8.0.190.0030.00616.71
8.0.180.0050.00316.84
8.0.170.0000.00716.66
8.0.160.0040.00416.75
8.0.150.0030.00516.78
8.0.140.0040.00416.68
8.0.130.0030.00313.18
8.0.120.0000.00716.67
8.0.110.0030.00516.68
8.0.100.0030.00316.71
8.0.90.0040.00416.73
8.0.80.0100.00616.67
8.0.70.0040.00416.68
8.0.60.0000.00716.74
8.0.50.0040.00416.79
8.0.30.0030.01617.06
8.0.20.0110.00816.79
8.0.10.0000.00716.66
8.0.00.0070.01016.56
7.4.330.0000.00512.86
7.4.320.0030.00316.29
7.4.300.0030.00316.41
7.4.290.0030.00616.50
7.4.280.0020.00516.36
7.4.270.0030.00316.44
7.4.260.0050.00013.11
7.4.250.0000.00816.47
7.4.240.0020.00616.35
7.4.230.0000.00816.55
7.4.220.0140.00416.42
7.4.210.0040.01116.44
7.4.200.0000.00716.36
7.4.190.0070.00016.33
7.4.160.0100.01316.40
7.4.150.0070.01716.32
7.4.140.0130.00716.29
7.4.130.0060.01016.41
7.4.120.0110.00516.23
7.4.110.0090.01216.40
7.4.100.0090.00916.42
7.4.90.0040.01416.29
7.4.80.0120.01019.39
7.4.70.0060.01016.13
7.4.60.0110.00716.13
7.4.50.0090.00316.44
7.4.40.0030.01316.13
7.4.30.0080.01016.47
7.4.00.0070.00214.91
7.3.330.0060.00012.86
7.3.320.0030.00312.86
7.3.310.0030.00316.18
7.3.300.0040.00415.96
7.3.290.0070.01016.13
7.3.280.0100.00716.11
7.3.270.0100.00616.04
7.3.260.0070.01416.26
7.3.250.0100.00816.17
7.3.240.0030.01316.30
7.3.230.0090.00916.11
7.3.210.0100.00716.20
7.3.200.0130.00316.30
7.3.190.0150.00616.30
7.3.180.0100.00716.16
7.3.170.0100.00716.14
7.3.160.0090.00616.35
7.3.120.0030.01214.63
7.3.110.0020.01314.64
7.3.100.0050.00714.59
7.3.90.0080.00314.41
7.3.80.0070.00814.76
7.3.70.0000.01414.64
7.3.60.0050.00614.66
7.3.50.0020.01214.61
7.3.40.0050.00814.63
7.3.30.0090.00514.69
7.3.20.0060.00916.44
7.3.10.0090.00616.25
7.3.00.0080.00616.20
7.2.330.0120.00616.50
7.2.320.0070.01016.42
7.2.310.0180.00316.45
7.2.300.0120.00416.52
7.2.290.0060.01016.45
7.2.240.0050.01114.56
7.2.230.0050.01014.60
7.2.220.0070.00714.60
7.2.210.0060.00814.76
7.2.200.0120.00514.70
7.2.190.0010.01214.85
7.2.180.0070.00714.84
7.2.170.0050.00914.83
7.2.160.0090.00814.72
7.2.150.0060.00616.60
7.2.140.0040.01116.58
7.2.130.0090.00716.43
7.2.120.0120.00816.49
7.2.110.0060.00816.75
7.2.100.0090.00616.47
7.2.90.0090.01016.37
7.2.80.0070.00716.61
7.2.70.0090.00816.44
7.2.60.0100.00516.62
7.2.50.0120.00616.50
7.2.40.0090.00616.71
7.2.30.0070.00816.58
7.2.20.0070.00516.39
7.2.10.0110.00516.51
7.2.00.0030.01317.18
7.1.330.0090.00515.78
7.1.320.0020.01115.60
7.1.310.0040.00915.66
7.1.300.0080.00615.53
7.1.290.0070.00915.66
7.1.280.0110.00515.58
7.1.270.0030.01215.62
7.1.260.0050.00815.59
7.1.250.0090.00615.52
7.1.200.0040.01015.76
7.1.100.0230.00317.89
7.1.70.0000.00717.00
7.1.60.0030.02019.40
7.1.50.0030.02016.86
7.1.00.0100.06322.54
7.0.200.0000.00716.55
7.0.140.0030.07322.00
7.0.120.0030.07322.05
7.0.60.0100.08019.91
7.0.50.0130.07717.78
7.0.40.0100.04317.73
7.0.30.0170.08017.66
7.0.20.0100.07717.72
7.0.10.0100.07017.78
7.0.00.0070.09017.73
5.6.280.0070.06721.04
5.6.210.0070.08320.66
5.6.200.0070.08318.12
5.6.190.0130.07318.22
5.6.180.0030.08018.19
5.6.170.0070.07018.09
5.6.160.0030.08018.13
5.6.150.0170.06718.16
5.6.140.0070.07718.05
5.6.130.0070.07718.16
5.6.120.0070.05018.20
5.6.110.0100.06718.17
5.6.100.0070.04018.17
5.6.90.0030.08718.17
5.6.80.0070.08017.57
5.6.70.0030.06317.47
5.6.60.0130.06717.48
5.6.50.0100.06017.54
5.6.40.0070.07017.49
5.6.30.0030.08017.43
5.6.20.0070.06317.56
5.6.10.0030.04717.53
5.6.00.0100.06317.52
5.5.350.0370.07720.42
5.5.340.0100.07717.97
5.5.330.0100.04718.02
5.5.320.0070.07717.98
5.5.310.0030.08317.96
5.5.300.0130.07017.95
5.5.290.0100.07317.91
5.5.280.0000.04717.94
5.5.270.0130.06317.97
5.5.260.0000.09017.97
5.5.250.0170.07317.79
5.5.240.0070.07017.30
5.5.230.0130.07317.35
5.5.220.0170.06717.36
5.5.210.0100.05017.39
5.5.200.0000.04717.30
5.5.190.0070.07717.36
5.5.180.0100.07317.26
5.5.160.0130.03017.27
5.5.150.0100.05317.33
5.5.140.0070.08017.26
5.5.130.0170.05017.26
5.5.120.0070.04317.29
5.5.110.0070.03717.36
5.5.100.0030.04717.17
5.5.90.0100.03717.20
5.5.80.0030.04017.25
5.5.70.0000.04317.28
5.5.60.0070.03717.24
5.5.50.0100.04717.24
5.5.40.0100.07317.16
5.5.30.0130.05717.26
5.5.20.0030.05317.20
5.5.10.0070.05317.23
5.5.00.0100.07017.23
5.4.450.0100.05719.39
5.4.440.0100.07719.30
5.4.430.0100.07319.14
5.4.420.0070.06719.14
5.4.410.0000.08319.17
5.4.400.0070.08018.98
5.4.390.0100.07718.82
5.4.380.0130.07019.20
5.4.370.0100.04318.88
5.4.360.0070.07318.98
5.4.350.0000.07318.98
5.4.340.0000.05718.97
5.4.320.0070.04318.98
5.4.310.0130.05019.07
5.4.300.0300.04018.95
5.4.290.0130.07319.02
5.4.280.0130.04718.82
5.4.270.0070.03319.07
5.4.260.0030.04318.98
5.4.250.0070.05018.97
5.4.240.0000.04019.06
5.4.230.0000.04019.02
5.4.220.0000.05019.02
5.4.210.0100.04019.00
5.4.200.0070.07719.07
5.4.190.0070.08019.11
5.4.180.0030.06718.88
5.4.170.0100.07019.08
5.4.160.0030.07718.96
5.4.150.0070.07319.00
5.4.140.0100.06716.29
5.4.130.0070.07316.32
5.4.120.0100.06016.16
5.4.110.0030.07716.42
5.4.100.0030.04316.42
5.4.90.0000.07316.27
5.4.80.0100.05016.41
5.4.70.0030.05016.32
5.4.60.0070.06016.26
5.4.50.0230.06016.23
5.4.40.0200.04016.45
5.4.30.0030.06716.31
5.4.20.0100.06716.26
5.4.10.0130.05316.24
5.4.00.0100.06015.70
5.3.290.0070.06014.60
5.3.280.0000.04714.57
5.3.270.0070.05314.60
5.3.260.0100.05314.55
5.3.250.0030.07714.46
5.3.240.0070.04314.56
5.3.230.0100.07714.52
5.3.220.0100.06314.42
5.3.210.0070.07714.51
5.3.200.0000.08014.48
5.3.190.0070.06714.52
5.3.180.0030.05314.39
5.3.170.0030.05014.52
5.3.160.0170.03714.34
5.3.150.0070.07714.38
5.3.140.0070.05714.53
5.3.130.0030.05014.46
5.3.120.0030.06014.39
5.3.110.0030.07714.40
5.3.100.0100.06313.98
5.3.90.0070.07013.79
5.3.80.0030.04013.99
5.3.70.0070.03313.98
5.3.60.0030.04713.75
5.3.50.0030.04013.91
5.3.40.0100.04313.92
5.3.30.0000.06713.88
5.3.20.0070.04013.64
5.3.10.0100.06713.64
5.3.00.0030.06313.62
5.2.170.0030.03010.93
5.2.160.0070.04711.14
5.2.150.0070.03711.14
5.2.140.0070.04011.17
5.2.130.0030.06311.01
5.2.120.0030.06711.25
5.2.110.0030.05311.09
5.2.100.0070.05711.07
5.2.90.0030.05710.92
5.2.80.0030.05311.08
5.2.70.0030.06710.91
5.2.60.0000.03310.95
5.2.50.0070.02710.96
5.2.40.0070.02710.98
5.2.30.0100.02310.89
5.2.20.0070.02710.93
5.2.10.0070.06310.89
5.2.00.0070.05710.68
5.1.60.0070.0509.96
5.1.50.0030.05310.02
5.1.40.0030.04310.04
5.1.30.0100.04310.36
5.1.20.0030.02710.34
5.1.10.0030.06010.00
5.1.00.0100.05010.04
5.0.50.0000.0278.52
5.0.40.0100.0378.45
5.0.30.0000.0678.34
5.0.20.0000.0438.39
5.0.10.0100.0378.34
5.0.00.0030.0678.34
4.4.90.0000.0178.34
4.4.80.0030.0138.34
4.4.70.0000.0378.34
4.4.60.0000.0338.34
4.4.50.0000.0378.34
4.4.40.0170.0338.34
4.4.30.0030.0308.34
4.4.20.0000.0408.34
4.4.10.0070.0238.34
4.4.00.0070.0538.34
4.3.110.0030.0378.34
4.3.100.0000.0378.34
4.3.90.0030.0238.34
4.3.80.0030.0538.34
4.3.70.0030.0278.34
4.3.60.0030.0308.34
4.3.50.0030.0338.34
4.3.40.0030.0508.34
4.3.30.0000.0378.34
4.3.20.0030.0338.34
4.3.10.0030.0278.34
4.3.00.0070.0238.34

preferences:
42.05 ms | 400 KiB | 5 Q