3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'needle' => 'needle in haystack text', 'Need' => 'another needle', 'fine' => 'refined', 'found' => 'Foundation', '' => 'non-empty haystack', 'missing' => 'not here', 'This is 0 in a haystack!', ]; var_export( array_filter($array, 'str_contains', ARRAY_FILTER_USE_BOTH) );

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.0090.00918.51
8.5.00.0150.00719.91
8.4.150.0020.00014.05
8.4.140.0250.01017.29
8.4.130.0150.00618.76
8.4.120.0130.00719.23
8.4.110.0040.00520.66
8.4.100.0110.00917.56
8.4.90.0110.01019.98
8.4.80.0060.00218.95
8.4.70.0110.00820.66
8.4.60.0130.00820.44
8.4.50.0110.00520.50
8.4.40.0030.00617.78
8.4.30.0060.01320.28
8.4.20.0100.00018.02
8.4.10.0080.00819.43
8.3.280.0080.01218.25
8.3.270.0110.00816.30
8.3.260.0130.00616.61
8.3.250.0140.00316.45
8.3.240.0080.01116.48
8.3.230.0140.00516.63
8.3.220.0130.00518.85
8.3.210.0100.00716.71
8.3.200.0050.00316.41
8.3.190.0110.00716.91
8.3.180.0110.00818.75
8.3.170.0120.00620.46
8.3.160.0040.00417.21
8.3.150.0130.00719.01
8.3.140.0090.00918.39
8.3.130.0060.00318.31
8.3.120.0030.00620.70
8.3.110.0060.00916.38
8.3.100.0060.00324.06
8.3.90.0000.00826.77
8.3.80.0040.00416.38
8.3.70.0040.01416.58
8.3.60.0090.00918.26
8.3.50.0140.00419.93
8.3.40.0150.00019.83
8.3.30.0070.00718.74
8.3.20.0090.00522.96
8.3.10.0100.00823.20
8.3.00.0040.00922.41
8.2.290.0110.00816.64
8.2.280.0120.00718.32
8.2.270.0030.01417.02
8.2.260.0140.00416.63
8.2.250.0000.00916.53
8.2.240.0000.00917.16
8.2.230.0090.00020.94
8.2.220.0090.00937.54
8.2.210.0160.00326.77
8.2.200.0060.00316.75
8.2.190.0070.01016.75
8.2.180.0120.00325.92
8.2.170.0100.00618.76
8.2.160.0130.00022.96
8.2.150.0070.00722.41
8.2.140.0100.00422.61
8.2.130.0050.00723.27
8.2.120.0030.00919.99
8.2.110.0110.00219.69
8.2.100.0100.00518.30
8.2.90.0120.00219.78
8.2.80.0060.00818.62
8.2.70.0080.00618.20
8.2.60.0080.00618.19
8.2.50.0070.00618.56
8.2.40.0060.00618.46
8.2.30.0090.00218.20
8.2.20.0050.00719.60
8.2.10.0080.00418.04
8.2.00.0070.00518.90
8.1.330.0130.00616.24
8.1.320.0080.00317.75
8.1.310.0100.00716.72
8.1.300.0160.00015.93
8.1.290.0040.00830.84
8.1.280.0120.00625.92
8.1.270.0100.00223.06
8.1.260.0070.00524.20
8.1.250.0060.00625.16
8.1.240.0030.00921.05
8.1.230.0080.00619.73
8.1.220.0040.00818.29
8.1.210.0070.00518.82
8.1.200.0070.00417.96
8.1.190.0020.00917.87
8.1.180.0040.00818.26
8.1.170.0050.00618.18
8.1.160.0030.00818.63
8.1.150.0040.00818.52
8.1.140.0100.00317.85
8.1.130.0040.00818.81
8.1.120.0050.00817.96
8.1.110.0070.00717.97
8.1.100.0060.00618.42
8.1.90.0020.01017.73
8.1.80.0050.00717.80
8.1.70.0060.00717.69
8.1.60.0090.00517.87
8.1.50.0100.00317.75
8.1.40.0080.00617.81
8.1.30.0100.00417.94
8.1.20.0190.00318.01
8.1.10.0120.00317.67
8.1.00.0130.00417.65
8.0.300.0090.00218.85
8.0.290.0080.00817.09
8.0.280.0130.00418.06
8.0.270.0090.00117.23
8.0.260.0080.00818.06
8.0.250.0090.00617.42
8.0.240.0110.00617.19
8.0.230.0110.00317.32
8.0.220.0050.00617.11
8.0.210.0120.00517.12
8.0.200.0070.00917.13
8.0.190.0100.00517.15
8.0.180.0100.00617.12
8.0.170.0130.00517.14
8.0.160.0080.00517.17
8.0.150.0170.00516.95
8.0.140.0110.00616.95
8.0.130.0180.00316.97
8.0.120.0150.00516.93
8.0.110.0090.00417.06
8.0.100.0150.00417.01
8.0.90.0170.00616.94
8.0.80.0180.00517.03
8.0.70.0130.00516.99
8.0.60.0200.00316.98
8.0.50.0160.00516.97
8.0.30.0150.00517.01
8.0.20.0120.00517.08
8.0.10.0160.00717.20
7.4.330.0090.00514.86
7.4.320.0100.00816.78
7.4.300.0130.00316.74
7.4.290.0170.00316.84
7.4.280.0160.00416.72
7.4.270.0190.00716.70
7.4.260.0200.00316.73
7.4.250.0180.00516.65
7.4.240.0230.00216.70
7.4.230.0170.00616.77
7.4.220.0150.00616.64
7.4.210.0180.00216.71
7.4.200.0160.00416.66
7.4.190.0150.00616.70
7.4.180.0180.00316.77
7.4.160.0140.00616.72
7.4.150.0150.00616.61
7.4.140.0170.00316.60
7.4.130.0120.00716.60
7.4.120.0190.00416.49
7.4.110.0190.00616.52
7.4.100.0140.00716.68
7.4.90.0160.00616.52
7.4.80.0160.00516.53
7.4.70.0120.00616.50
7.4.60.0160.00616.45
7.4.50.0140.00816.39
7.4.40.0170.00416.43
7.4.30.0170.00516.65
7.4.20.0140.00516.53
7.4.10.0100.00916.49
7.4.00.0120.00516.59

preferences:
100.18 ms | 403 KiB | 5 Q