3v4l.org

run code in 300+ PHP versions simultaneously
<?php $haystack = ['one', 'two', 'three', 'four']; $test_needles = ['onE', 'tWo', 'THREE', 'four', 'five']; foreach ($test_needles as $needle) { printf( "%s : %s\n", $needle, array_any($haystack, fn($hay) => !strcasecmp($hay, $needle)) ? 'found' : 'missing' ); }

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.5.30.0130.00817.85
8.5.20.0120.00720.05
8.5.10.0080.01116.53
8.5.00.0120.01019.96
8.4.180.0130.00819.65
8.4.170.0110.01022.02
8.4.160.0090.01421.97
8.4.150.0050.00716.77
8.4.140.0090.01217.22
8.4.130.0130.00618.48
8.4.120.0100.00923.78
8.4.110.0100.01018.71
8.4.100.0050.00317.44
8.4.90.0140.00617.83
8.4.80.0100.01019.72
8.4.70.0400.01018.18
8.4.60.0400.00618.18
8.4.50.0190.00418.18
8.4.40.0250.00318.18
8.4.30.0440.00918.18
8.4.20.0300.00718.18
8.4.10.0250.00318.18
8.3.300.0110.01220.78
8.3.290.0110.01020.62
8.3.280.0090.01318.69
8.3.270.0150.00516.77
8.3.260.0130.00616.92
8.3.250.0100.00818.70
8.3.240.0070.01117.29
8.3.230.0120.00816.93
8.3.220.0080.00918.46
8.3.210.0260.00818.18
8.3.200.0220.00818.18
8.3.190.0290.00618.18
8.3.180.0230.00718.18
8.3.170.0440.00518.18
8.3.160.0450.00918.18
8.3.150.0310.00418.18
8.3.140.0180.00518.18
8.3.130.0190.00518.18
8.3.120.0230.00518.18
8.3.110.0170.00418.18
8.3.100.0220.00218.18
8.3.90.0250.00318.18
8.3.80.0200.00418.18
8.3.70.0180.00718.18
8.3.60.0200.00618.18
8.3.50.0400.00618.18
8.3.40.0320.00618.18
8.3.30.0180.00318.18
8.3.20.0150.00618.18
8.3.10.0360.00618.18
8.3.00.0190.01318.18
8.2.300.0130.00620.35
8.2.290.0030.00620.54
8.2.280.0320.00718.18
8.2.270.0340.00918.18
8.2.260.0370.00618.18
8.2.250.0320.00818.18
8.2.240.0260.00418.18
8.2.230.0180.00418.18
8.2.220.0360.00718.18
8.2.210.0330.01018.18
8.2.200.0420.00818.18
8.2.190.0340.00918.18
8.2.180.0320.01218.18
8.2.170.0360.00618.18
8.2.160.0300.01218.18
8.2.150.0240.00518.18
8.2.140.0310.00618.18
8.2.130.0360.00618.18
8.2.120.0340.00918.18
8.2.110.0360.01018.18
8.2.100.0270.00218.18
8.2.90.0200.00318.18
8.2.80.0230.00218.18
8.2.70.0340.00918.18
8.2.60.0390.00918.18
8.2.50.0350.01318.18
8.2.40.0320.01318.18
8.2.30.0430.01018.18
8.2.20.0290.01018.18
8.2.10.0360.00818.18
8.2.00.0320.01018.18
8.1.340.0100.01020.41

preferences:
43.28 ms | 852 KiB | 5 Q