3v4l.org

run code in 300+ PHP versions simultaneously
<?php $checkfor = 'test'; $words = array('test','derp','herp'); function noop(){} for ($i = 1; $i++ < 100000;){ $flipped = array_flip($words); if (isset($flipped[$checkfor])) { 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.0030.02318.43
8.3.50.0050.02421.92
8.3.40.0130.01318.63
8.3.30.0040.02218.48
8.3.20.0100.01718.50
8.3.10.0030.01020.92
8.3.00.0000.01323.78
8.2.180.0070.01716.50
8.2.170.0100.01622.96
8.2.160.0030.02120.80
8.2.150.0030.01024.18
8.2.140.0030.00824.66
8.2.130.0030.01026.16
8.2.120.0060.00621.04
8.2.110.0030.01720.52
8.2.100.0120.00617.72
8.2.90.0000.01619.09
8.2.80.0040.01119.38
8.2.70.0030.01317.50
8.2.60.0000.01618.04
8.2.50.0100.00718.07
8.2.40.0040.01218.00
8.2.30.0090.00921.26
8.2.20.0000.01617.63
8.2.10.0000.01517.55
8.2.00.0030.01317.68
8.1.280.0110.02925.92
8.1.270.0030.01023.99
8.1.260.0000.01426.35
8.1.250.0070.00728.09
8.1.240.0060.01322.54
8.1.230.0090.00920.91
8.1.220.0030.01318.77
8.1.210.0100.00618.77
8.1.200.0040.01417.25
8.1.190.0000.01517.40
8.1.180.0090.00618.10
8.1.170.0040.01218.59
8.1.160.0030.01318.78
8.1.150.0060.01018.54
8.1.140.0030.01217.41
8.1.130.0040.01117.85
8.1.120.0000.01617.37
8.1.110.0000.01617.26
8.1.100.0030.01217.43
8.1.90.0000.01517.38
8.1.80.0030.01217.44
8.1.70.0040.01117.37
8.1.60.0030.01617.58
8.1.50.0070.01117.44
8.1.40.0040.01417.49
8.1.30.0030.01417.60
8.1.20.0040.01417.52
8.1.10.0030.01617.38
8.1.00.0060.01617.43
8.0.300.0000.01519.78
8.0.290.0000.01617.05
8.0.280.0080.00818.24
8.0.270.0070.01017.18
8.0.260.0090.00616.75
8.0.250.0060.00916.80
8.0.240.0080.00816.87
8.0.230.0000.01616.84
8.0.220.0000.01516.79
8.0.210.0000.01616.72
8.0.200.0000.01416.77
8.0.190.0060.01116.83
8.0.180.0030.01416.84
8.0.170.0060.01116.84
8.0.160.0030.01416.89
8.0.150.0030.01416.75
8.0.140.0070.01116.74
8.0.130.0000.01513.28
8.0.120.0000.01816.77
8.0.110.0030.01416.82
8.0.100.0030.01316.66
8.0.90.0030.01716.70
8.0.80.0030.02316.82
8.0.70.0020.01516.80
8.0.60.0060.01116.67
8.0.50.0030.01416.71
8.0.30.0110.02717.19
8.0.20.0080.02317.40
8.0.10.0030.01416.94
8.0.00.0120.02016.84
7.4.330.0000.01316.89
7.4.320.0060.00916.45
7.4.300.0040.01116.58
7.4.290.0000.01716.51
7.4.280.0030.01316.52
7.4.270.0070.01716.58
7.4.260.0060.00913.19
7.4.250.0040.01516.41
7.4.240.0030.01416.48
7.4.230.0030.01316.47
7.4.220.0060.02216.35
7.4.210.0070.02016.55
7.4.200.0000.01816.69
7.4.190.0000.01716.47
7.4.160.0090.01916.55
7.4.150.0060.02417.40
7.4.140.0100.01817.86
7.4.130.0100.02116.49
7.4.120.0100.02016.46
7.4.110.0040.02516.59
7.4.100.0040.03716.56
7.4.90.0120.01916.54
7.4.80.0160.02619.39
7.4.70.0170.02616.62
7.4.60.0130.03216.57
7.4.50.0000.02416.20
7.4.40.0060.02522.77
7.4.30.0110.02316.50
7.4.00.0100.01715.19
7.3.330.0070.01013.23
7.3.320.0030.01313.17
7.3.310.0030.01516.26
7.3.300.0070.01016.18
7.3.290.0030.03116.30
7.3.280.0070.02416.32
7.3.270.0030.02717.40
7.3.260.0090.02118.24
7.3.250.0100.02916.53
7.3.240.0100.03616.64
7.3.230.0130.01716.39
7.3.210.0120.01816.32
7.3.200.0130.03219.39
7.3.190.0090.03416.34
7.3.180.0100.02216.58
7.3.170.0150.01516.27
7.3.160.0060.02316.56
7.3.120.0100.01614.70
7.2.330.0120.02416.68
7.2.320.0030.03116.57
7.2.310.0160.01616.45
7.2.300.0000.03116.57
7.2.290.0070.03016.76
7.2.00.0030.02019.23
7.1.200.0060.01915.77
7.1.100.0060.02618.25
7.1.70.0000.02317.13
7.1.60.0030.02117.06
7.1.50.0100.03516.93
7.1.00.0000.04722.29
7.0.200.0060.02816.80
7.0.140.0030.09721.93
7.0.70.0100.10021.66
7.0.60.0070.10321.66
7.0.50.0000.07322.13
7.0.40.0170.10020.15
7.0.30.0030.06320.08
7.0.20.0030.11020.18
7.0.10.0170.08020.07
7.0.00.0070.09720.04
5.6.280.0000.12720.99
5.6.220.0000.07720.46
5.6.210.0030.12720.43
5.6.200.0030.10320.96
5.6.190.0000.12320.95
5.6.180.0100.10721.04
5.6.170.0070.13721.14
5.6.160.0070.07321.03
5.6.150.0100.12721.04
5.6.140.0000.10021.16
5.6.130.0000.09321.04
5.6.120.0100.13021.02
5.6.110.0070.11721.13
5.6.100.0100.12720.95
5.6.90.0100.13321.07
5.6.80.0030.14020.41
5.6.70.0070.13020.46
5.6.60.0030.10320.47
5.6.50.0070.07020.41
5.6.40.0000.10020.42
5.6.30.0000.12720.40
5.6.20.0070.12320.46
5.6.10.0100.12720.36
5.6.00.0130.11720.25
5.5.360.0030.13320.36
5.5.350.0070.13720.34
5.5.340.0070.12020.64
5.5.330.0100.11320.88
5.5.320.0130.12720.78
5.5.310.0100.12720.80
5.5.300.0030.09720.77
5.5.290.0100.13020.87
5.5.280.0100.11320.92
5.5.270.0100.13320.82
5.5.260.0100.12320.89
5.5.250.0030.12720.73
5.5.240.0100.12720.31
5.5.230.0130.13320.26
5.5.220.0030.07020.20
5.5.210.0100.10720.30
5.5.200.0030.13720.14
5.5.190.0030.07720.09
5.5.180.0100.12320.13
5.5.160.0100.10320.08
5.5.150.0070.13020.18
5.5.140.0100.10020.23
5.5.130.0170.10320.27
5.5.120.0100.11720.26
5.5.110.0170.12020.23
5.5.100.0000.10019.97
5.5.90.0100.09720.07
5.5.80.0070.12720.16
5.5.70.0030.13020.00
5.5.60.0070.12320.16
5.5.50.0100.11720.00
5.5.40.0130.11720.12
5.5.30.0000.14020.15
5.5.20.0070.13320.02
5.5.10.0070.13320.12
5.5.00.0030.12720.07
5.4.450.0100.12719.23
5.4.440.0070.09719.41
5.4.430.0030.07719.36
5.4.420.0130.11719.34
5.4.410.0070.12719.38
5.4.400.0130.11719.05
5.4.390.0070.12718.90
5.4.380.0030.12019.04
5.4.370.0070.13019.21
5.4.360.0070.13319.14
5.4.350.0030.12718.84
5.4.340.0070.12019.16
5.4.320.0100.11719.03
5.4.310.0000.12719.21
5.4.300.0070.11718.85
5.4.290.0100.12319.22
5.4.280.0070.11718.94
5.4.270.0070.12018.90
5.4.260.0130.10019.12
5.4.250.0070.13019.09
5.4.240.0130.07019.15
5.4.230.0130.12019.02
5.4.220.0170.08019.11
5.4.210.0000.11019.22
5.4.200.0200.11019.02
5.4.190.0030.13019.04
5.4.180.0030.12719.08
5.4.170.0030.09719.11
5.4.160.0000.09019.21
5.4.150.0030.12718.93
5.4.140.0030.13016.45
5.4.130.0070.12016.44
5.4.120.0070.11716.46
5.4.110.0130.11316.51
5.4.100.0200.10316.42
5.4.90.0070.11016.51
5.4.80.0070.12316.45
5.4.70.0000.13716.35
5.4.60.0070.06716.46
5.4.50.0030.10016.52
5.4.40.0070.09316.53
5.4.30.0030.08016.45
5.4.20.0070.08716.29
5.4.10.0070.12316.47
5.4.00.0030.09015.73
5.3.290.0070.14314.73
5.3.280.0170.09014.68
5.3.270.0270.13314.59
5.3.260.0070.13714.55
5.3.250.0000.10314.71
5.3.240.0070.14014.61
5.3.230.0030.12314.60
5.3.220.0100.14314.66
5.3.210.0070.14314.67
5.3.200.0130.13314.63
5.3.190.0100.12314.51
5.3.180.0030.12014.62
5.3.170.0100.13314.61
5.3.160.0100.14314.51
5.3.150.0000.13314.57
5.3.140.0030.12314.58
5.3.130.0100.13314.48
5.3.120.0070.08314.55
5.3.110.0030.11714.61
5.3.100.0030.08314.05
5.3.90.0100.14714.02
5.3.80.0100.14313.91
5.3.70.0070.08014.12
5.3.60.0000.15013.93
5.3.50.0030.08313.95
5.3.40.0100.11714.01
5.3.30.0000.08713.93
5.3.20.0000.08713.58
5.3.10.0000.08713.70
5.3.00.0000.12313.70
5.2.170.0030.10711.20
5.2.160.0000.08711.20
5.2.150.0030.10311.15
5.2.140.0100.12311.24
5.2.130.0000.09711.12
5.2.120.0030.08311.02
5.2.110.0030.11311.03
5.2.100.0030.08011.09
5.2.90.0000.13711.01
5.2.80.0100.07311.15
5.2.70.0030.10011.02
5.2.60.0030.08010.96
5.2.50.0030.07710.88
5.2.40.0000.08010.88
5.2.30.0000.10010.96
5.2.20.0070.07311.02
5.2.10.0000.08010.98
5.2.00.0030.08010.73
5.1.60.0000.07010.52
5.1.50.0100.10010.52
5.1.40.0000.08310.52
5.1.30.0000.06310.52
5.1.20.0030.05710.52
5.1.10.0000.09010.52
5.1.00.0000.08710.52
5.0.50.0000.08710.52
5.0.40.0000.08710.52
5.0.30.0000.08010.52
5.0.20.0000.08710.52
5.0.10.0000.12710.52
5.0.00.0000.08310.52
4.4.90.0000.11710.52
4.4.80.0030.08010.52
4.4.70.0070.08710.52
4.4.60.0000.08310.52
4.4.50.0000.08310.52
4.4.40.0000.10310.52
4.4.30.0000.07310.52
4.4.20.0000.08010.52
4.4.10.0000.09710.52
4.4.00.0030.09010.52
4.3.110.0030.07710.52
4.3.100.0030.08310.52
4.3.90.0030.07010.52
4.3.80.0100.07010.52
4.3.70.0000.08310.52
4.3.60.0000.06710.52
4.3.50.0030.09010.52
4.3.40.0030.07010.52
4.3.30.0000.07010.52
4.3.20.0070.06310.52
4.3.10.0000.06710.52
4.3.00.0000.08010.52

preferences:
37.27 ms | 400 KiB | 5 Q