3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input= [ 'football GAME', 'cricket GAME', 'computer DEVICE', 'mobile DEVICE' ]; $needle = 'DEVICE'; $output = array_filter($input, fn($haystack) => str_contains($haystack, $needle)); var_export( [ 'filtered' => $output, 'found' => $output ? 'yes' : 'no' ] );

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.10.0100.00718.38
8.5.00.0080.01319.96
8.4.150.0010.00114.05
8.4.140.0150.00617.46
8.4.130.0130.00717.63
8.4.120.0140.00520.69
8.4.110.0100.01122.41
8.4.100.0130.00719.24
8.4.90.0130.00718.56
8.4.80.0110.00917.86
8.4.70.0070.00117.92
8.4.60.0140.00618.67
8.4.50.0090.00718.66
8.4.40.0180.00317.55
8.4.30.0130.00620.54
8.4.20.0000.00917.70
8.4.10.0080.00819.43
8.3.280.0090.01218.42
8.3.270.0120.00816.63
8.3.260.0100.00716.86
8.3.250.0030.00618.86
8.3.240.0050.00418.93
8.3.230.0100.01016.57
8.3.220.0090.00817.24
8.3.210.0120.00416.69
8.3.200.0060.00316.51
8.3.190.0160.00516.58
8.3.180.0050.00320.71
8.3.170.0130.00320.92
8.3.160.0070.01118.62
8.3.150.0070.01116.69
8.3.140.0110.00718.83
8.3.130.0040.00418.35
8.3.120.0050.00320.81
8.3.110.0050.00316.65
8.3.100.0060.00316.73
8.3.90.0100.00026.77
8.3.80.0060.00316.63
8.3.70.0090.01216.63
8.3.60.0110.00616.88
8.3.50.0110.00820.40
8.3.40.0070.00718.84
8.3.30.0070.00718.71
8.3.20.0030.00624.18
8.3.10.0060.00324.66
8.3.00.0040.00426.16
8.2.290.0070.00120.82
8.2.280.0160.00418.39
8.2.270.0110.00722.28
8.2.260.0040.00416.62
8.2.250.0090.00916.62
8.2.240.0050.00316.96
8.2.230.0060.00320.94
8.2.220.0090.00024.06
8.2.210.0090.00926.77
8.2.200.0030.00618.45
8.2.190.0110.01116.59
8.2.180.0170.00325.92
8.2.170.0130.00618.96
8.2.160.0120.00622.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00426.16
8.2.110.0070.00320.89
8.2.100.0060.00617.91
8.2.90.0090.00017.84
8.2.80.0000.00819.83
8.2.70.0040.00417.50
8.2.60.0000.00817.75
8.2.50.0030.00617.63
8.2.40.0080.00017.63
8.2.30.0050.00218.14
8.2.20.0040.00420.32
8.2.10.0020.00517.75
8.2.00.0030.00319.31
8.1.330.0120.00622.05
8.1.320.0120.00716.06
8.1.310.0040.01118.31
8.1.300.0040.00416.27
8.1.290.0040.00430.84
8.1.280.0070.00725.92
8.1.270.0060.00320.63
8.1.260.0040.00426.35
8.1.250.0100.00728.09
8.1.240.0040.00422.19
8.1.230.0110.00022.21
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0040.00417.00
8.1.180.0080.00018.10
8.1.170.0030.00617.62
8.1.160.0040.00418.77
8.1.150.0040.00418.60
8.1.140.0030.00517.46
8.1.130.0000.00920.63
8.1.120.0000.00717.49
8.1.110.0070.00017.44
8.1.100.0060.00317.35
8.1.90.0000.00717.47
8.1.80.0070.00017.35
8.1.70.0030.00317.39
8.1.60.0030.00517.50
8.1.50.0040.00417.54
8.1.40.0000.00717.55
8.1.30.0030.00517.59
8.1.20.0020.00817.59
8.1.10.0190.00617.55
8.1.00.0240.00417.47
8.0.300.0000.00719.98
8.0.290.0030.00516.63
8.0.280.0000.00718.52
8.0.270.0070.00016.85
8.0.260.0000.00618.39
8.0.250.0000.00716.84
8.0.240.0040.00416.86
8.0.230.0070.00016.95
8.0.220.0000.00816.84
8.0.210.0030.00316.87
8.0.200.0040.00416.84
8.0.190.0040.00416.93
8.0.180.0080.00416.79
8.0.170.0040.00416.94
8.0.160.0050.00316.94
8.0.150.0120.00716.72
8.0.140.0130.00616.78
8.0.130.0180.00116.70
8.0.120.0100.00616.89
8.0.110.0120.00416.89
8.0.100.0090.00916.91
8.0.90.0140.00316.86
8.0.80.0130.00616.83
8.0.70.0130.00516.79
8.0.60.0110.00716.71
8.0.50.0160.00216.81
8.0.30.0130.00516.85
8.0.20.0130.00716.98
8.0.10.0200.00017.01
7.4.330.0050.00015.55
7.4.320.0060.00016.52
7.4.300.0000.00816.52
7.4.290.0040.00416.56
7.4.280.0030.00616.61
7.4.270.0140.00616.55
7.4.260.0170.00316.61
7.4.250.0190.00316.48
7.4.240.0180.00316.60
7.4.230.0150.00716.43
7.4.220.0190.00216.60
7.4.210.0160.00316.53
7.4.200.0130.00816.55
7.4.190.0210.00216.49
7.4.180.0160.00316.55
7.4.160.0140.00516.46
7.4.150.0110.00916.53
7.4.140.0140.00516.46
7.4.130.0100.00816.36
7.4.120.0130.00316.47
7.4.110.0140.00316.50
7.4.100.0150.00316.49
7.4.90.0120.00616.49
7.4.80.0100.00616.50
7.4.70.0120.00616.29
7.4.60.0180.00116.42
7.4.50.0140.00316.39
7.4.40.0160.00416.36
7.4.30.0160.00416.46
7.4.20.0170.00216.38
7.4.10.0130.00516.51
7.4.00.0180.00016.53

preferences:
47.88 ms | 403 KiB | 5 Q