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_all($haystack, fn($hay) => strcasecmp($hay, $needle)) ? 'missing' : 'found' ); }

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.0100.00819.79
8.5.20.0120.00620.16
8.5.10.0100.00816.59
8.5.00.0090.01219.98
8.4.180.0140.00822.04
8.4.170.0130.00722.13
8.4.160.0130.01021.82
8.4.150.0070.00516.89
8.4.140.0090.01217.45
8.4.130.0080.01317.68
8.4.120.0090.01120.45
8.4.110.0110.00918.98
8.4.100.0090.01217.70
8.4.90.0120.00817.51
8.4.80.0130.00717.55
8.4.70.0420.00818.18
8.4.60.0420.00818.18
8.4.50.0350.00818.18
8.4.40.0440.00818.18
8.4.30.0370.01218.18
8.4.20.0440.01018.18
8.4.10.0360.01818.18
8.3.300.0110.00920.72
8.3.290.0100.01022.48
8.3.280.0120.00918.46
8.3.270.0130.00716.71
8.3.260.0110.00516.52
8.3.250.0130.00618.89
8.3.240.0110.00816.60
8.3.230.0070.00516.58
8.3.220.0100.00816.75
8.3.210.0360.01218.18
8.3.200.0390.01118.18
8.3.190.0330.00818.18
8.3.180.0420.00718.18
8.3.170.0430.00818.18
8.3.160.0350.00718.18
8.3.150.0200.00518.18
8.3.140.0320.00218.18
8.3.130.0150.00618.18
8.3.120.0140.00818.18
8.3.110.0220.00518.18
8.3.100.0240.00618.18
8.3.90.0200.00418.18
8.3.80.0360.00818.18
8.3.70.0500.00618.18
8.3.60.0460.00718.18
8.3.50.0440.00518.18
8.3.40.0490.00818.18
8.3.30.0390.00718.18
8.3.20.0390.00618.18
8.3.10.0350.00618.18
8.3.00.0170.01118.18
8.2.300.0120.01020.46
8.2.290.0110.00818.69
8.2.280.0310.01018.18
8.2.270.0290.01418.18
8.2.260.0350.00718.18
8.2.250.0320.01218.18
8.2.240.0360.00718.18
8.2.230.0270.00618.18
8.2.220.0130.00718.18
8.2.210.0190.00618.18
8.2.200.0310.00418.18
8.2.190.0170.00518.18
8.2.180.0170.00318.18
8.2.170.0410.00518.18
8.2.160.0390.00618.18
8.2.150.0400.00718.18
8.2.140.0330.01018.18
8.2.130.0180.00518.18
8.2.120.0160.00618.18
8.2.110.0170.00518.18
8.2.100.0330.00718.18
8.2.90.0330.00718.18
8.2.80.0350.00918.18
8.2.70.0390.01118.18
8.2.60.0280.00718.18
8.2.50.0380.00518.18
8.2.40.0310.00718.18
8.2.30.0370.00818.18
8.2.20.0330.00618.18
8.2.10.0350.00718.18
8.2.00.0320.00918.18
8.1.340.0080.01220.23

preferences:
48.22 ms | 844 KiB | 5 Q