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)) { echo "non-flip match"; } } /* 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.0210.00317.93
8.3.50.0110.00821.02
8.3.40.0100.00718.68
8.3.30.0060.01020.13
8.3.20.0090.00020.32
8.3.10.0040.00420.92
8.3.00.0060.00620.55
8.2.180.0160.01016.50
8.2.170.0150.00322.96
8.2.160.0190.00320.39
8.2.150.0030.00724.18
8.2.140.0070.00324.66
8.2.130.0030.00626.16
8.2.120.0090.00021.09
8.2.110.0090.00319.39
8.2.100.0100.00317.91
8.2.90.0090.00019.09
8.2.80.0100.00017.97
8.2.70.0060.00317.63
8.2.60.0080.00018.05
8.2.50.0030.00518.07
8.2.40.0040.00718.19
8.2.30.0000.00819.41
8.2.20.0040.00417.64
8.2.10.0030.00717.69
8.2.00.0060.00317.60
8.1.280.0140.00325.92
8.1.270.0060.00323.99
8.1.260.0090.00026.35
8.1.250.0030.00628.09
8.1.240.0060.00321.31
8.1.230.0100.00317.45
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00717.23
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0030.00518.37
8.1.160.0050.00318.84
8.1.150.0060.00318.66
8.1.140.0000.00817.32
8.1.130.0070.00017.79
8.1.120.0000.00717.52
8.1.110.0000.00817.33
8.1.100.0000.00817.45
8.1.90.0030.00517.32
8.1.80.0040.00417.36
8.1.70.0070.00017.43
8.1.60.0090.00017.59
8.1.50.0030.00517.53
8.1.40.0030.00617.48
8.1.30.0040.00417.40
8.1.20.0030.00617.59
8.1.10.0060.00317.54
8.1.00.0060.00317.47
8.0.300.0090.00018.77
8.0.290.0030.00516.63
8.0.280.0100.00018.41
8.0.270.0000.01117.23
8.0.260.0080.00316.57
8.0.250.0030.00516.85
8.0.240.0000.00816.76
8.0.230.0000.00816.81
8.0.220.0000.00816.78
8.0.210.0000.00716.72
8.0.200.0000.00716.72
8.0.190.0030.00616.73
8.0.180.0040.00416.75
8.0.170.0000.00816.80
8.0.160.0000.00716.77
8.0.150.0070.00016.77
8.0.140.0050.00516.72
8.0.130.0030.00313.17
8.0.120.0040.00416.76
8.0.110.0000.00816.73
8.0.100.0040.00416.59
8.0.90.0060.00316.64
8.0.80.0130.00616.73
8.0.70.0050.00316.75
8.0.60.0040.00416.52
8.0.50.0040.00416.66
8.0.30.0260.01516.88
8.0.20.0190.01117.40
8.0.10.0040.00416.72
8.0.00.0170.01216.54
7.4.330.0060.00016.67
7.4.320.0070.00016.43
7.4.300.0000.00816.31
7.4.290.0000.00816.29
7.4.280.0060.00316.22
7.4.270.0070.00016.36
7.4.260.0000.00913.21
7.4.250.0070.00416.29
7.4.240.0040.00416.37
7.4.230.0040.00416.30
7.4.220.0170.01616.44
7.4.210.0090.01416.28
7.4.200.0040.00416.14
7.4.190.0070.00016.16
7.4.160.0180.00516.39
7.4.150.0180.01117.40
7.4.140.0170.00817.86
7.4.130.0250.00516.29
7.4.120.0130.01316.42
7.4.110.0190.01016.26
7.4.100.0180.00916.29
7.4.90.0260.00616.20
7.4.80.0130.01319.39
7.4.70.0190.00916.23
7.4.60.0230.00716.44
7.4.50.0050.00516.43
7.4.40.0030.01622.77
7.4.30.0130.02016.29
7.3.330.0030.00313.18
7.3.320.0030.00313.21
7.3.310.0040.00416.14
7.3.300.0070.00016.13
7.3.290.0120.00616.11
7.3.280.0120.01216.12
7.3.270.0250.00817.40
7.3.260.0250.01018.24
7.3.250.0150.01016.08
7.3.240.0200.01316.35
7.3.230.0210.00916.39
7.3.210.0240.00316.26
7.3.200.0140.01019.39
7.3.190.0160.01316.43
7.3.180.0160.00616.30
7.3.170.0120.00916.39
7.3.160.0150.00916.11
7.2.330.0160.01616.37
7.2.320.0090.01716.33
7.2.310.0190.01316.44
7.2.300.0250.01316.39
7.2.290.0190.01116.72
7.2.100.0070.01314.70
7.2.90.1190.01814.77
7.2.80.0110.01114.74
7.2.70.0540.00714.90
7.2.60.0660.01215.16
7.2.50.0350.00414.96
7.2.40.0950.00414.85
7.2.30.0330.01314.92
7.2.20.1570.01314.93
7.2.10.0270.00514.96
7.2.00.0340.01715.02
7.1.220.0320.00613.84
7.1.210.1330.00713.68
7.1.200.1070.01414.02
7.1.190.0110.01713.88
7.1.180.0160.00813.70
7.1.170.1210.00013.95
7.1.160.0420.00413.87
7.1.150.0200.00613.92
7.1.140.0290.00313.92
7.1.130.0900.00713.78
7.1.120.0490.00313.89
7.1.110.0940.00813.66
7.1.100.0510.00013.93
7.1.90.0890.01013.95
7.1.80.0780.01313.95
7.1.70.0150.00913.73
7.1.60.0250.01432.01
7.1.50.0990.01731.98
7.1.40.0290.01031.61
7.1.30.1000.01331.90
7.1.20.1100.00331.93
7.1.10.0810.00613.93
7.1.00.0590.00913.71
7.0.310.0090.00913.71
7.0.300.1550.01613.71
7.0.290.0150.01113.60
7.0.280.0420.00913.60
7.0.270.0400.00313.60
7.0.260.0390.00613.60
7.0.250.0210.00713.68
7.0.240.0420.00813.60
7.0.230.0090.01313.60
7.0.220.0190.00313.60
7.0.210.0180.01113.60
7.0.200.0830.00313.60
7.0.190.0840.00013.60
7.0.180.0780.00713.60
7.0.170.0180.00513.76
7.0.160.1350.00313.60
7.0.150.0770.00813.66
7.0.140.0680.00913.60
7.0.130.0090.01213.61
7.0.120.0830.01013.60
7.0.110.0550.00913.60
7.0.100.0190.00313.61
7.0.90.0250.00413.77
7.0.80.0680.00713.60
7.0.70.0250.01313.60
7.0.60.0190.00813.60
7.0.50.0120.01313.60
7.0.40.0730.00713.60
7.0.30.0680.00813.62
7.0.20.0250.00713.60
7.0.10.0300.00613.60
7.0.00.0480.00613.63
5.6.380.0100.00714.22
5.6.370.0090.00914.53
5.6.360.0070.01814.27
5.6.350.0130.00814.41
5.6.340.0200.00614.45
5.6.330.0100.01013.97
5.6.320.0170.00014.39
5.6.310.0140.00814.36
5.6.300.0110.00614.31
5.6.290.0120.01214.26
5.6.280.0140.00514.49
5.6.270.0110.01514.27
5.6.260.0220.00614.38
5.6.250.0100.01014.43
5.6.240.0150.00214.20
5.6.230.0090.01014.06
5.6.220.0150.00714.30
5.6.210.0090.01314.32
5.6.200.0090.01314.18
5.6.190.0150.00414.00
5.6.180.0110.00614.26
5.6.170.0110.01114.11
5.6.160.0120.00814.25
5.6.150.0070.01014.03
5.6.140.0160.00414.29
5.6.130.0130.00814.13
5.6.120.0140.00314.48
5.6.110.0040.01314.52
5.6.100.0130.01014.27
5.6.90.0120.00613.98
5.6.80.0080.01114.55
5.6.70.0080.00813.93
5.6.60.0170.00314.11
5.6.50.0100.01013.94
5.6.40.0150.00314.46
5.6.30.0110.00814.35
5.6.20.0140.01114.12
5.6.10.0150.00214.32
5.6.00.0110.00714.41
5.5.380.0160.00613.60
5.5.370.0070.01513.60
5.5.360.0180.00313.60
5.5.350.0120.00413.60
5.5.340.0070.01013.60
5.5.330.0060.00913.60
5.5.320.0100.00613.60
5.5.310.0120.00513.60
5.5.300.0090.00913.60
5.5.290.0060.00913.60
5.5.280.0140.00213.61
5.5.270.0140.00513.61
5.5.260.0120.00313.61
5.5.250.0100.00513.61
5.5.240.0160.00013.61
5.5.230.0120.00913.61
5.5.220.0130.00713.61
5.5.210.0070.01113.61
5.5.200.0170.00013.61
5.5.190.0100.00513.61
5.5.180.0070.00713.61
5.5.170.0120.00514.29
5.5.160.0090.00513.61
5.5.150.0040.01413.61
5.4.450.0070.00913.61
5.4.440.0000.02113.61
5.4.430.0050.00913.61
5.4.420.0060.00613.61
5.4.410.0140.00613.61
5.4.400.0150.00413.61
5.4.390.0070.00713.61
5.4.380.0120.00013.61
5.4.370.0070.00713.61
5.4.360.0140.00513.61
5.4.350.0130.00013.61
5.4.340.0100.00713.61
5.4.330.0040.01313.61
5.4.320.0050.00913.61
5.3.290.0050.00913.61

preferences:
39.02 ms | 401 KiB | 5 Q