3v4l.org

run code in 300+ PHP versions simultaneously
<?php $animal = array('lion','elephant','tiger'); $search = 'io'; $res = array_filter($animal, function($v, $k) use($search){ return strpos($v, $search); }, ARRAY_FILTER_USE_BOTH); echo '<pre>'; print_r($res);

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.3.60.0120.00416.50
8.3.50.0100.00716.59
8.3.40.0150.00018.89
8.3.30.0140.00018.56
8.3.20.0080.00024.18
8.3.10.0080.00024.66
8.3.00.0000.00726.16
8.2.180.0090.00625.92
8.2.170.0040.01118.95
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0080.00019.54
8.2.110.0070.00320.38
8.2.100.0080.00317.78
8.2.90.0040.00417.97
8.2.80.0080.00017.97
8.2.70.0040.00417.25
8.2.60.0070.00017.80
8.2.50.0040.00418.05
8.2.40.0060.00318.09
8.2.30.0040.00417.87
8.2.20.0050.00318.00
8.2.10.0070.00019.24
8.2.00.0050.00319.18
8.1.280.0120.00825.92
8.1.270.0070.00023.99
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0060.00321.01
8.1.230.0060.00622.74
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.25
8.1.190.0050.00317.35
8.1.180.0080.00019.13
8.1.170.0000.00818.51
8.1.160.0000.00718.95
8.1.150.0000.00718.79
8.1.140.0040.00418.96
8.1.130.0070.00017.32
8.1.120.0000.00817.47
8.1.110.0070.00017.43
8.1.100.0000.00717.43
8.1.90.0030.00517.46
8.1.80.0030.00517.47
8.1.70.0000.00717.49
8.1.60.0000.00817.46
8.1.50.0060.00317.50
8.1.40.0040.00417.51
8.1.30.0000.00817.58
8.1.20.0000.00817.64
8.1.10.0040.00417.38
8.1.00.0000.00817.41
8.0.300.0000.00720.02
8.0.290.0070.00016.63
8.0.280.0000.00718.47
8.0.270.0030.00517.98
8.0.260.0040.00416.80
8.0.250.0040.00416.93
8.0.240.0070.00016.96
8.0.230.0000.00716.90
8.0.220.0000.00716.85
8.0.210.0030.00316.77
8.0.200.0000.00616.89
8.0.190.0040.00416.96
8.0.180.0070.00016.91
8.0.170.0000.00916.82
8.0.160.0070.00016.77
8.0.150.0050.00316.87
8.0.140.0000.00716.90
8.0.130.0030.00313.30
8.0.120.0060.00316.72
8.0.110.0040.00416.92
8.0.100.0030.00316.93
8.0.90.0040.00416.68
8.0.80.0060.01016.86
8.0.70.0040.00416.80
8.0.60.0000.00816.92
8.0.50.0070.00016.91
8.0.30.0080.00616.81
8.0.20.0130.00316.99
8.0.10.0090.00616.98
8.0.00.0030.01016.96
7.4.330.0000.00415.55
7.4.320.0070.00016.59
7.4.300.0030.00716.35
7.4.290.0040.00416.47
7.4.280.0050.00316.51
7.4.270.0070.00016.39
7.4.260.0020.00213.31
7.4.250.0080.00016.59
7.4.240.0040.00416.52
7.4.230.0070.00016.24
7.4.220.0020.00516.49
7.4.210.0100.00316.68
7.4.200.0080.00016.48
7.4.160.0070.01016.68
7.4.150.0090.00616.51
7.4.140.0070.00716.43
7.4.130.0140.00016.43
7.4.120.0120.00316.62
7.4.110.0040.00916.38
7.4.100.0110.00516.35
7.4.90.0080.00516.46
7.4.80.0060.00616.45
7.4.70.0030.01316.47
7.4.60.0100.00316.54
7.4.50.0070.00716.28
7.4.40.0000.01316.30
7.4.30.0000.01316.55
7.4.20.0050.00816.55
7.4.10.0000.01216.44
7.4.00.0030.01016.51
7.3.330.0000.00716.28
7.3.320.0030.00313.30
7.3.310.0030.00316.26
7.3.300.0060.00016.34
7.3.290.0070.00916.30
7.3.280.0060.00616.28
7.3.270.0110.00416.29
7.3.260.0060.00616.27
7.3.250.0090.00316.34
7.3.240.0100.00316.34
7.3.230.0140.00016.27
7.3.220.0070.00716.22
7.3.210.0070.01016.23
7.3.200.0090.00616.24
7.3.190.0060.01016.15
7.3.180.0070.00616.26
7.3.170.0030.01016.21
7.3.160.0060.00616.21
7.3.150.0040.00816.16
7.3.140.0060.00616.17
7.3.130.0070.00716.20
7.3.120.0100.00316.28
7.3.110.0100.00316.21
7.3.100.0130.00016.15
7.3.90.0060.00616.41
7.3.80.0070.00716.23
7.3.70.0070.00716.34
7.3.60.0030.01016.41
7.3.50.0050.00916.38
7.3.40.0080.00516.45
7.3.30.0030.01116.40
7.3.20.0150.00916.36
7.3.10.0070.01316.26
7.3.00.0090.00616.30

preferences:
52.08 ms | 400 KiB | 5 Q