3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace test; $a = [1,2,3]; //in_array(1, $a, true); \in_array(2, $a, 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.3.40.0040.01118.42
8.3.30.0120.00318.36
8.3.20.0040.00420.30
8.3.10.0050.00223.65
8.3.00.0070.00023.48
8.2.170.0090.00619.01
8.2.160.0100.00722.96
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00020.51
8.2.120.0000.00726.35
8.2.110.0060.00319.39
8.2.100.0090.00317.78
8.2.90.0030.00619.09
8.2.80.0000.00817.97
8.2.70.0000.00817.47
8.2.60.0000.00817.80
8.2.50.0060.00318.10
8.2.40.0090.00022.20
8.2.30.0050.00219.16
8.2.20.0000.00717.95
8.2.10.0000.00717.96
8.2.00.0040.00418.09
8.1.270.0040.00422.14
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00321.23
8.1.230.0060.00619.04
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0060.00317.23
8.1.180.0000.00718.10
8.1.170.0000.00818.48
8.1.160.0000.00718.94
8.1.150.0040.00418.81
8.1.140.0050.00317.50
8.1.130.0000.00718.81
8.1.120.0080.00017.41
8.1.110.0040.00417.34
8.1.100.0060.00317.39
8.1.90.0070.00017.42
8.1.80.0050.00517.40
8.1.70.0000.00717.27
8.1.60.0040.00417.41
8.1.50.0040.00417.47
8.1.40.0070.00017.34
8.1.30.0080.00017.59
8.1.20.0050.00317.50
8.1.10.0030.00517.43
8.1.00.0000.00817.36
8.0.300.0080.00018.77
8.0.290.0000.00716.63
8.0.280.0030.00518.24
8.0.270.0030.00317.10
8.0.260.0030.00320.76
8.0.250.0040.00416.94
8.0.240.0000.00716.84
8.0.230.0060.00016.84
8.0.220.0040.00316.83
8.0.210.0000.00816.80
8.0.200.0000.00616.91
8.0.190.0080.00016.74
8.0.180.0000.00716.79
8.0.170.0030.00616.92
8.0.160.0040.00516.82
8.0.150.0060.00316.72
8.0.140.0030.00616.71
8.0.130.0030.00313.17
8.0.120.0060.00316.77
8.0.110.0070.00016.88
8.0.100.0060.00316.69
8.0.90.0000.00716.70
8.0.80.0100.00716.80
8.0.70.0000.00716.80
8.0.60.0000.00716.70
8.0.50.0040.00416.72
8.0.30.0110.00816.95
8.0.20.0090.01017.40
8.0.10.0040.00316.88
8.0.00.0110.00616.46
7.4.330.0020.00216.67
7.4.320.0030.00316.45
7.4.300.0030.00316.49
7.4.290.0080.00016.43
7.4.280.0030.00316.41
7.4.270.0000.00716.37
7.4.260.0060.00316.46
7.4.250.0080.00016.38
7.4.240.0030.00316.51
7.4.230.0030.00316.62
7.4.220.0100.01616.44
7.4.210.0080.00716.48
7.4.200.0040.00416.52
7.4.160.0110.00816.47
7.4.150.0080.00817.40
7.4.140.0090.01117.86
7.4.130.0130.00916.37
7.4.120.0140.00816.36
7.4.110.0120.00416.35
7.4.100.0170.00316.36
7.4.90.0030.01316.51
7.4.80.0030.01719.39
7.4.70.0080.01616.20
7.4.60.0060.01016.27
7.4.50.0040.01116.41
7.4.40.0040.01816.30
7.4.30.0070.01016.29
7.4.10.0040.01515.07
7.4.00.0080.00914.86
7.3.330.0000.00513.02
7.3.320.0050.00012.96
7.3.310.0030.00315.96
7.3.300.0040.00416.14
7.3.290.0070.00016.03
7.3.280.0080.00916.12
7.3.270.0080.00817.40
7.3.260.0100.01016.37
7.3.250.0160.00516.14
7.3.240.0100.00616.25
7.3.230.0130.00316.17
7.3.210.0100.00716.16
7.3.200.0120.00316.25
7.3.190.0160.00016.38
7.3.180.0130.00316.33
7.3.170.0030.01316.11
7.3.160.0030.01316.43
7.3.130.0070.01315.07
7.3.120.0060.01114.92
7.3.110.0070.01014.85
7.3.100.0090.00514.86
7.3.90.0050.00914.83
7.3.80.0050.00614.83
7.3.70.0070.00714.83
7.3.60.0080.00614.94
7.3.50.0040.00814.92
7.3.40.0040.01014.71
7.3.30.0080.00614.89
7.3.20.0030.01216.52
7.3.10.0090.00716.49
7.3.00.0050.00716.57
7.2.330.0130.00616.39
7.2.320.0100.01116.50
7.2.310.0120.00916.50
7.2.300.0110.00716.48
7.2.290.0090.00916.52
7.2.260.0090.01215.07
7.2.250.0070.01214.77
7.2.240.0100.00514.81
7.2.230.0070.00914.94
7.2.220.0050.01114.74
7.2.210.0060.00815.03
7.2.200.0030.01014.90
7.2.190.0070.00814.95
7.2.180.0030.00914.99
7.2.170.0030.00914.94
7.2.160.0070.01015.07
7.2.150.0060.01116.67
7.2.140.0090.00616.75
7.2.130.0000.01316.70
7.2.120.0060.00616.79
7.2.110.0120.00616.68
7.2.100.0070.01016.68
7.2.90.0060.00916.73
7.2.80.0100.00016.56
7.2.70.0030.01316.69
7.2.60.0130.01116.66
7.2.50.0100.00616.81
7.2.40.0120.00316.54
7.2.30.0090.00616.60
7.2.20.0070.00416.75
7.2.10.0040.00816.93
7.2.00.0000.01516.67
7.1.330.0040.01115.80
7.1.320.0070.00915.76
7.1.310.0030.01015.66
7.1.300.0100.00315.72
7.1.290.0050.00715.82
7.1.280.0040.00715.75
7.1.270.0020.01415.73
7.1.260.0070.00515.67
7.1.250.0060.00615.84
7.1.240.0030.00915.74
7.1.230.0030.00915.74
7.1.220.0090.00015.68
7.1.210.0060.01015.61
7.1.200.0040.00815.79
7.1.190.0070.00415.67
7.1.180.0090.00615.51
7.1.170.0000.00815.79
7.1.160.0000.00815.71
7.1.150.0130.00315.50
7.1.140.0060.00615.44
7.1.130.0060.01015.86
7.1.120.0070.00315.84
7.1.110.0170.01216.64
7.1.100.0290.00916.50
7.1.90.0350.01015.92
7.1.80.0270.01116.58
7.1.70.0200.01116.06
7.1.60.0410.01527.20
7.1.50.0460.01827.25
7.1.40.0340.01127.48
7.1.30.0460.01527.52
7.1.20.0310.01527.64
7.1.10.0270.01015.70
7.1.00.0300.01014.92
7.0.330.0000.01015.09
7.0.320.0090.00015.38
7.0.310.0040.00815.34
7.0.300.0070.01015.34
7.0.290.0090.00315.07
7.0.280.0100.00615.47
7.0.270.0070.00715.07
7.0.260.0060.00915.38
7.0.250.0280.00715.58
7.0.240.0250.01015.56
7.0.230.0300.01215.52
7.0.220.0380.00915.63
7.0.210.0260.01215.61
7.0.200.0330.00615.54
7.0.190.0310.01114.95
7.0.180.0410.00515.33
7.0.170.0520.01015.21
7.0.160.0310.00715.29
7.0.150.0260.00615.25
7.0.140.0270.01214.70
7.0.130.0420.01015.41
7.0.120.0340.00815.00
7.0.110.0340.01115.43
7.0.100.0430.00815.31
7.0.90.0290.00715.33
7.0.80.0420.00814.62
7.0.70.0250.00915.42
7.0.60.0670.01115.08
7.0.50.0560.00915.53
7.0.40.0430.00715.35
7.0.30.0350.00614.66
7.0.20.0240.00915.30
7.0.10.0350.00914.86
7.0.00.0330.01015.25
5.6.400.0000.01315.07
5.6.390.0030.00615.07
5.6.380.0100.00315.07
5.6.370.0070.00715.07
5.6.360.0060.00315.07
5.6.350.0100.00315.07
5.6.340.0040.01415.07
5.6.330.0090.00615.07
5.6.320.0060.01215.07
5.6.310.0040.01415.07
5.6.300.0000.01015.07
5.6.290.0030.01015.07
5.6.280.0060.00315.07
5.6.270.0070.00715.07
5.6.260.0030.01015.07
5.6.250.0100.00315.07
5.6.240.0070.00715.07
5.6.230.0030.01315.07
5.6.220.0030.01015.07
5.6.210.0050.00515.07
5.6.200.0030.00915.07
5.6.190.0070.00315.07
5.6.180.0070.00715.07
5.6.170.0030.01015.07
5.6.160.0100.01015.07
5.6.150.0040.00715.07
5.6.140.0060.00615.07
5.6.130.0040.00815.07
5.6.120.0060.00315.07
5.6.110.0060.00815.07
5.6.100.0040.00815.07
5.6.90.0000.01115.07
5.6.80.0060.00915.07
5.6.70.0040.01115.07
5.6.60.0040.00815.07
5.6.50.0030.01315.07
5.6.40.0020.01315.07
5.6.30.0000.00815.07
5.6.20.0030.00715.07
5.6.10.0040.00815.07
5.6.00.0100.00315.07

preferences:
62.47 ms | 400 KiB | 5 Q