3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ["they has mystring in it", "some", "other", "elements"]; if (stripos(implode(" ", $array),'mystring') !== false) { echo "found mystring"; }

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.4.140.0120.00817.44
8.4.130.0120.00817.62
8.4.120.0110.00922.54
8.4.110.0130.00822.59
8.4.100.0110.01017.71
8.4.90.0150.00417.80
8.4.80.0060.00617.71
8.4.70.0120.00817.72
8.4.60.0120.00820.45
8.4.50.0120.00919.57
8.4.40.0160.00317.46
8.4.30.0000.00820.69
8.4.20.0000.00819.62
8.4.10.0070.01319.27
8.3.270.0130.00816.70
8.3.260.0120.00616.60
8.3.250.0110.00918.91
8.3.240.0100.00916.36
8.3.230.0100.00916.46
8.3.220.0060.00417.01
8.3.210.0010.00616.42
8.3.200.0050.00316.81
8.3.190.0100.00619.11
8.3.180.0120.00616.61
8.3.170.0030.00919.02
8.3.160.0100.00620.52
8.3.150.0160.00316.50
8.3.140.0070.00719.05
8.3.130.0030.01018.29
8.3.120.0060.00318.39
8.3.110.0030.00516.38
8.3.100.0390.00737.54
8.3.90.0430.00337.54
8.3.80.0320.01637.54
8.3.70.0370.00937.54
8.3.60.0340.01237.54
8.3.50.0410.00637.54
8.3.40.0370.00937.54
8.3.30.0280.00937.54
8.3.20.0330.01137.54
8.3.10.0290.00737.54
8.3.00.0360.00337.54
8.2.290.0050.00420.55
8.2.280.0110.00818.46
8.2.270.0140.00716.40
8.2.260.0090.00018.05
8.2.250.0080.00016.73
8.2.240.0040.01416.95
8.2.230.0040.00420.94
8.2.220.0150.01237.54
8.2.210.0330.01037.54
8.2.200.0260.00937.54
8.2.190.0290.00337.54
8.2.180.0220.00337.54
8.2.170.0210.00737.54
8.2.160.0100.01037.54
8.2.150.0150.00437.54
8.2.140.0150.00537.54
8.2.130.0120.00737.54
8.2.120.0130.00737.54
8.2.110.0210.00737.54
8.2.100.0340.00737.54
8.2.90.0380.00337.54
8.2.80.0410.00037.54
8.2.70.0330.01137.54
8.2.60.0450.00037.54
8.2.50.0330.00737.54
8.2.40.0330.00337.54
8.2.30.0290.00337.54
8.2.20.0280.00637.54
8.2.10.0310.00437.54
8.2.00.0230.01637.54
8.1.330.0140.00518.11
8.1.320.0110.00716.06
8.1.310.0040.00415.96
8.1.300.0000.00918.17
8.1.290.0290.00337.54
8.1.280.0190.00037.54
8.1.270.0270.00037.54
8.1.260.0290.01037.54
8.1.250.0410.00637.54
8.1.240.0190.01937.54
8.1.230.0310.00037.54
8.1.220.0380.00037.54
8.1.210.0360.00737.54
8.1.200.0350.00437.54
8.1.190.0340.00437.54
8.1.180.0270.00537.54
8.1.170.0310.00037.54
8.1.160.0250.01337.54
8.1.150.0250.01337.54
8.1.140.0230.01037.54
8.1.130.0270.00337.54
8.1.120.0260.01137.54
8.1.110.0350.00337.54
8.1.100.0370.00537.54
8.1.90.0370.00737.54
8.1.80.0300.00737.54
8.1.70.0260.01637.54
8.1.60.0320.01037.54
8.1.50.0320.00337.54
8.1.40.0270.00337.54
8.1.30.0300.00337.54
8.1.20.0260.01037.54
8.1.10.0200.01437.54
8.1.00.0160.00737.54

preferences:
38.98 ms | 403 KiB | 5 Q