3v4l.org

run code in 300+ PHP versions simultaneously
<?php $checkfor = 'test'; $words = array('test','derp','herp'); function noop(){} for ($i = 1; $i++ < 100000;){ if (in_array($checkfor,$words)) { noop(); } } /* if (in_array($checkfor,$words)) { echo "non-flip match"; } */

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.0100.01018.55
8.3.50.0260.01122.04
8.3.40.0130.01318.74
8.3.30.0070.01518.68
8.3.20.0070.00420.05
8.3.10.0030.00723.52
8.3.00.0060.00320.51
8.2.180.0130.00618.40
8.2.170.0100.01022.96
8.2.160.0100.00722.13
8.2.150.0000.01024.18
8.2.140.0100.01424.66
8.2.130.0070.00326.16
8.2.120.0070.00317.38
8.2.110.0030.00919.21
8.2.100.0070.00717.71
8.2.90.0000.01019.25
8.2.80.0030.00717.97
8.2.70.0000.01017.63
8.2.60.0050.00517.80
8.2.50.0030.00818.07
8.2.40.0070.00418.22
8.2.30.0040.00718.00
8.2.20.0000.01017.43
8.2.10.0000.01117.52
8.2.00.0000.01117.52
8.1.280.0120.00625.92
8.1.270.0100.00021.91
8.1.260.0030.00726.35
8.1.250.0070.00428.09
8.1.240.0060.00622.07
8.1.230.0030.01219.06
8.1.220.0070.00317.74
8.1.210.0070.00418.77
8.1.200.0030.00917.22
8.1.190.0070.00317.39
8.1.180.0000.01018.10
8.1.170.0040.00718.51
8.1.160.0000.01021.90
8.1.150.0000.01118.57
8.1.140.0030.00717.28
8.1.130.0030.00617.81
8.1.120.0100.00017.40
8.1.110.0030.00717.37
8.1.100.0000.01017.40
8.1.90.0040.00717.27
8.1.80.0000.01017.35
8.1.70.0030.00617.31
8.1.60.0000.01217.63
8.1.50.0000.01217.49
8.1.40.0030.00817.34
8.1.30.0000.01117.51
8.1.20.0040.00717.63
8.1.10.0040.00717.40
8.1.00.0070.00417.39
8.0.300.0040.00718.77
8.0.290.0030.00717.05
8.0.280.0030.00718.36
8.0.270.0070.00317.24
8.0.260.0050.00616.79
8.0.250.0000.01016.89
8.0.240.0000.01116.87
8.0.230.0060.00316.86
8.0.220.0030.00616.84
8.0.210.0030.00716.79
8.0.200.0040.00716.84
8.0.190.0030.00716.86
8.0.180.0060.00816.88
8.0.170.0040.00816.89
8.0.160.0000.01116.88
8.0.150.0030.00716.80
8.0.140.0000.01016.79
8.0.130.0030.00613.29
8.0.120.0060.00616.77
8.0.110.0040.00816.77
8.0.100.0000.01116.87
8.0.90.0050.00516.91
8.0.80.0140.00716.79
8.0.70.0040.00716.79
8.0.60.0070.00316.68
8.0.50.0050.00516.83
8.0.30.0110.01816.98
8.0.20.0090.01417.40
8.0.10.0000.01017.00
8.0.00.0100.01316.69
7.4.330.0040.00415.08
7.4.320.0000.00916.33
7.4.300.0000.00916.57
7.4.290.0000.01116.54
7.4.280.0000.01116.48
7.4.270.0000.01116.64
7.4.260.0030.00716.50
7.4.250.0000.01216.37
7.4.240.0030.00716.54
7.4.230.0070.00316.67
7.4.220.0060.01616.66
7.4.210.0100.01216.51
7.4.200.0070.00316.38
7.4.190.0030.00716.55
7.4.160.0070.01316.29
7.4.150.0070.02417.40
7.4.140.0110.01117.86
7.4.130.0080.01816.37
7.4.120.0100.01616.57
7.4.110.0120.01916.22
7.4.100.0090.01316.47
7.4.90.0040.01816.48
7.4.80.0130.01916.47
7.4.70.0000.02116.59
7.4.60.0070.01316.47
7.4.50.0040.01116.41
7.4.40.0040.01822.77
7.4.30.0100.01016.36
7.4.00.0030.01914.87
7.3.330.0000.00913.13
7.3.320.0040.00413.17
7.3.310.0000.01016.05
7.3.300.0040.00716.09
7.3.290.0110.00716.22
7.3.280.0060.01616.21
7.3.270.0100.01417.40
7.3.260.0170.00916.41
7.3.250.0090.01716.36
7.3.240.0060.01616.38
7.3.230.0060.01516.56
7.3.210.0160.01016.57
7.3.200.0060.01519.39
7.3.190.0150.01516.25
7.3.180.0030.01616.24
7.3.170.0070.01416.27
7.3.160.0100.01316.50
7.3.120.0070.01014.91
7.2.330.0060.01616.33
7.2.320.0070.02316.41
7.2.310.0130.01016.56
7.2.300.0060.01616.26
7.2.290.0100.01316.32
7.1.70.0030.00917.27
7.1.60.0030.01619.32
7.1.50.0100.01916.96
7.1.00.0030.08322.28
7.0.200.0060.00916.42
7.0.140.0130.06722.16
7.0.100.0100.06319.94
7.0.90.0230.08019.91
7.0.80.0230.07719.86
7.0.70.0030.07320.08
7.0.60.0370.08319.73
7.0.50.0070.09020.31
7.0.40.0030.06020.01
7.0.30.0100.09320.05
7.0.20.0130.04720.08
7.0.10.0100.06320.13
7.0.00.0130.07320.08
5.6.280.0070.09721.00
5.6.250.0030.06020.58
5.6.240.0100.09020.56
5.6.230.0070.10720.57
5.6.220.0070.07320.51
5.6.210.0170.10020.72
5.6.200.0070.09320.92
5.6.190.0030.07721.06
5.6.180.0070.10321.02
5.6.170.0100.10321.17
5.6.160.0070.11321.04
5.6.150.0100.09321.13
5.6.140.0030.10021.03
5.6.130.0130.09321.08
5.6.120.0130.06020.96
5.6.110.0170.09721.10
5.6.100.0070.10321.04
5.6.90.0100.10021.05
5.6.80.0100.07020.52
5.6.70.0100.10320.43
5.6.60.0030.11020.41
5.6.50.0030.06020.48
5.6.40.0100.08320.39
5.6.30.0130.10020.38
5.6.20.0030.10720.53
5.6.10.0030.10720.39
5.6.00.0100.08320.39
5.5.380.0100.10020.26
5.5.370.0130.10020.30
5.5.360.0070.11720.30
5.5.350.0230.09020.38
5.5.340.0100.06320.64
5.5.330.0030.10720.89
5.5.320.0100.09720.91
5.5.310.0130.09320.87
5.5.300.0130.09320.75
5.5.290.0130.10720.89
5.5.280.0100.11020.83
5.5.270.0070.08720.76
5.5.260.0100.10720.70
5.5.250.0070.11320.71
5.5.240.0170.09020.26
5.5.230.0070.11720.02
5.5.220.0100.10020.27
5.5.210.0070.08020.18
5.5.200.0100.06320.23
5.5.190.0030.07320.27
5.5.180.0170.05720.27
5.5.160.0100.07320.08
5.5.150.0070.05320.27
5.5.140.0070.11020.18
5.5.130.0070.10020.23
5.5.120.0100.09720.11
5.5.110.0070.11020.17
5.5.100.0030.07020.17
5.5.90.0070.09720.09
5.5.80.0070.10020.04
5.5.70.0070.07720.04
5.5.60.0100.09720.09
5.5.50.0100.07019.96
5.5.40.0130.10020.10
5.5.30.0100.10020.07
5.5.20.0070.05720.05
5.5.10.0070.11320.06
5.5.00.0000.09720.06
5.4.450.0100.10019.23
5.4.440.0100.10019.45
5.4.430.0030.05019.36
5.4.420.0030.08319.17
5.4.410.0070.10019.10
5.4.400.0100.10319.14
5.4.390.0100.06319.16
5.4.380.0030.09719.13
5.4.370.0100.09019.05
5.4.360.0000.10719.03
5.4.350.0070.09319.05
5.4.340.0000.10318.85
5.4.320.0070.10319.02
5.4.310.0030.10319.03
5.4.300.0030.07719.16
5.4.290.0100.08718.95
5.4.280.0100.08318.88
5.4.270.0070.05318.93
5.4.260.0070.09719.04
5.4.250.0070.09719.02
5.4.240.0030.08019.15
5.4.230.0030.06718.87
5.4.220.0100.09319.12
5.4.210.0070.08019.04
5.4.200.0070.08019.12
5.4.190.0000.06318.84
5.4.180.0030.06318.83
5.4.170.0100.10019.11
5.4.160.0070.11018.93
5.4.150.0070.10019.21
5.4.140.0200.08016.36
5.4.130.0070.10316.40
5.4.120.0070.05716.27
5.4.110.0070.09316.46
5.4.100.0030.09716.27
5.4.90.0030.09716.45
5.4.80.0070.10316.32
5.4.70.0000.09716.37
5.4.60.0070.05716.48
5.4.50.0030.09016.41
5.4.40.0100.05316.39
5.4.30.0070.10016.31
5.4.20.0070.09316.43
5.4.10.0100.06016.33
5.4.00.0100.07715.64
5.3.290.0170.10014.58
5.3.280.0100.11014.49
5.3.270.0130.10314.66
5.3.260.0100.10714.52
5.3.250.0100.10014.56
5.3.240.0100.06714.57
5.3.230.0070.11714.52
5.3.220.0100.10014.56
5.3.210.0100.08014.48
5.3.200.0170.10014.51
5.3.190.0070.11314.55
5.3.180.0070.07714.56
5.3.170.0000.10014.50
5.3.160.0070.06014.66
5.3.150.0070.09714.59
5.3.140.0070.07714.55
5.3.130.0070.09014.66
5.3.120.0030.11314.60
5.3.110.0070.11014.54
5.3.100.0070.07014.00
5.3.90.0070.07014.01
5.3.80.0000.06313.94
5.3.70.0030.10014.02
5.3.60.0070.09313.89
5.3.50.0030.10713.96
5.3.40.0100.11313.88
5.3.30.0070.11314.04
5.3.20.0070.08713.70
5.3.10.0030.11313.66
5.3.00.0100.11013.70
5.2.170.0030.11012.11
5.2.160.0070.10312.11
5.2.150.0070.09312.11
5.2.140.0030.09312.11
5.2.130.0000.11012.11
5.2.120.0000.10712.11
5.2.110.0070.10312.11
5.2.100.0000.08312.11
5.2.90.0030.09712.11
5.2.80.0000.11012.11
5.2.70.0070.10712.11
5.2.60.0070.08312.11
5.2.50.0100.09312.11
5.2.40.0030.10312.11
5.2.30.0130.09012.11
5.2.20.0130.09712.11
5.2.10.0030.09712.11
5.2.00.0030.08712.11
5.1.60.0130.09012.11
5.1.50.0070.08712.11
5.1.40.0070.07712.11
5.1.30.0000.07712.11
5.1.20.0130.08012.11
5.1.10.0030.10712.11
5.1.00.0030.06712.11
5.0.50.0000.11312.11
5.0.40.0000.07712.11
5.0.30.0070.12012.11
5.0.20.0000.07712.11
5.0.10.0030.10312.11
5.0.00.0070.12312.11
4.4.90.0000.05712.11
4.4.80.0030.09312.11
4.4.70.0000.09712.11
4.4.60.0030.10012.11
4.4.50.0000.06312.11
4.4.40.0000.11012.11
4.4.30.0000.07012.11
4.4.20.0030.09012.11
4.4.10.0070.10312.11
4.4.00.0030.10712.11
4.3.110.0000.06312.11
4.3.100.0070.08712.11
4.3.90.0030.05012.11
4.3.80.0030.11312.11
4.3.70.0000.09712.11
4.3.60.0030.09312.11
4.3.50.0100.09012.11
4.3.40.0070.10712.11
4.3.30.0030.10012.11
4.3.20.0030.09312.11
4.3.10.0000.08312.11
4.3.00.0030.09312.11

preferences:
29.16 ms | 401 KiB | 5 Q