3v4l.org

run code in 300+ PHP versions simultaneously
<?php function TRIM_SEARCH_TABLE_UNIQ($column,$what) { $Find=0; $e1=strpos('0'.trim(strtolower($column)),trim(strtolower($what))); $e2=strpos('0'.trim(($what)),trim(strtolower($column))); if(($e1>0)||($e2>0)) { $Find=1; return " YES "; } return " NO "; } //example 1 : $column="smith"; $what="mike smith"; echo(TRIM_SEARCH_TABLE_UNIQ($column,$what)); //example 2 : $column="mike smith"; $what="smith"; echo(TRIM_SEARCH_TABLE_UNIQ($column,$what)); //example 3 : $column="andreas"; $what="smith"; echo(TRIM_SEARCH_TABLE_UNIQ($column,$what)); ?>

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.70.0160.00318.18
8.3.60.0180.00018.55
8.3.50.0120.00817.39
8.3.40.0120.00918.68
8.3.30.0040.01118.74
8.3.20.0050.00220.20
8.3.10.0080.00020.90
8.3.00.0080.00020.71
8.2.190.0090.00616.58
8.2.180.0060.01216.36
8.2.170.0150.00322.96
8.2.160.0030.01019.41
8.2.150.0080.00025.66
8.2.140.0070.00324.66
8.2.130.0050.00326.16
8.2.120.0070.00021.04
8.2.110.0070.00322.25
8.2.100.0040.00817.72
8.2.90.0000.00917.84
8.2.80.0090.00019.21
8.2.70.0040.00417.38
8.2.60.0030.00617.80
8.2.50.0090.00018.07
8.2.40.0040.00418.16
8.2.30.0000.00718.05
8.2.20.0000.00718.15
8.2.10.0080.00018.14
8.2.00.0000.00718.02
8.1.280.0070.01325.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0100.00028.09
8.1.240.0060.00322.16
8.1.230.0090.00321.03
8.1.220.0000.00717.77
8.1.210.0030.00518.77
8.1.200.0030.00617.23
8.1.190.0030.00717.22
8.1.180.0040.00418.10
8.1.170.0080.00018.70
8.1.160.0040.00418.92
8.1.150.0050.00218.84
8.1.140.0030.00519.67
8.1.130.0030.00318.91
8.1.120.0030.00317.48
8.1.110.0050.00217.51
8.1.100.0000.00717.42
8.1.90.0080.00017.40
8.1.80.0040.00417.48
8.1.70.0030.00317.46
8.1.60.0040.00417.50
8.1.50.0030.00617.54
8.1.40.0050.00217.53
8.1.30.0050.00317.67
8.1.20.0000.00717.64
8.1.10.0050.00317.44
8.1.00.0030.00617.47
8.0.300.0070.00020.13
8.0.290.0050.00316.63
8.0.280.0040.00418.43
8.0.270.0040.00417.21
8.0.260.0050.00318.91
8.0.250.0030.00316.92
8.0.240.0000.00917.02
8.0.230.0000.00716.87
8.0.220.0000.00716.96
8.0.210.0030.00316.82
8.0.200.0000.00717.00
8.0.190.0000.00816.97
8.0.180.0000.00716.95
8.0.170.0040.00416.91
8.0.160.0070.00016.96
8.0.150.0060.00316.79
8.0.140.0040.00416.76
8.0.130.0000.00513.32
8.0.120.0000.00716.78
8.0.110.0040.00416.82
8.0.100.0080.00016.87
8.0.90.0040.00416.91
8.0.80.0070.00716.91
8.0.70.0000.00716.84
8.0.60.0040.00416.95
8.0.50.0070.00016.93
8.0.30.0080.01217.06
8.0.20.0120.00717.40
8.0.10.0080.00017.16
8.0.00.0070.01116.72
7.4.330.0000.00415.55
7.4.320.0060.00016.49
7.4.300.0030.00316.43
7.4.290.0000.00716.53
7.4.280.0000.00816.63
7.4.270.0000.00816.44
7.4.260.0040.00416.54
7.4.250.0040.00416.57
7.4.240.0030.00316.51
7.4.230.0000.00816.53
7.4.220.0150.00916.43
7.4.210.0090.01216.51
7.4.200.0030.00316.57
7.4.160.0100.00816.43
7.4.150.0070.01017.40
7.4.140.0100.00717.86
7.4.130.0090.00916.41
7.4.120.0060.01316.62
7.4.110.0100.00716.58
7.4.100.0030.01316.65
7.4.90.0110.00716.69
7.4.80.0130.00719.39
7.4.70.0090.00816.69
7.4.60.0100.00616.67
7.4.50.0070.01016.52
7.4.40.0110.00816.56
7.4.30.0090.00916.58
7.4.00.0040.01414.60
7.3.330.0030.00613.20
7.3.320.0040.00413.26
7.3.310.0030.00316.15
7.3.300.0030.00316.29
7.3.290.0070.00816.28
7.3.280.0090.00916.30
7.3.270.0140.00317.40
7.3.260.0170.00316.43
7.3.250.0100.00916.43
7.3.240.0110.00816.38
7.3.230.0090.00616.49
7.3.210.0070.01016.34
7.3.200.0120.00416.50
7.3.190.0110.00516.28
7.3.180.0120.01216.36
7.3.170.0100.01016.34
7.3.160.0120.00416.45
7.3.10.0030.01016.82
7.3.00.0090.00916.67
7.2.330.0060.01216.81
7.2.320.0100.01316.77
7.2.310.0120.00416.79
7.2.300.0030.01316.77
7.2.290.0120.00916.57
7.2.130.0060.00916.82
7.2.120.0030.01016.85
7.2.110.0110.00316.65
7.2.100.0100.00316.87
7.2.90.0080.01216.83
7.2.80.0030.01416.81
7.2.70.0000.01516.64
7.2.60.0100.00316.96
7.2.50.0160.00416.76
7.2.40.0030.01116.69
7.2.30.0090.00616.58
7.2.20.0160.00616.84
7.2.10.0090.00916.93
7.2.00.0160.00816.75
7.1.250.0040.00715.66
7.1.200.0000.00815.55
7.1.80.0070.01218.10
7.1.70.0090.00717.15
7.1.60.0140.02134.79
7.1.50.0220.01234.74
7.1.40.0190.01834.47
7.1.30.0150.02434.57
7.1.20.0220.01334.53
7.1.10.0040.00916.46
7.1.00.0090.00616.49
7.0.200.0060.01116.44
7.0.190.0060.01116.62
7.0.180.0040.01416.11
7.0.170.0100.00515.98
7.0.160.0110.00316.44
7.0.150.0030.00916.13
7.0.140.0030.01416.32
7.0.130.0090.00616.42
7.0.120.0090.00916.61
7.0.110.0040.01516.30
7.0.100.0050.01316.12
7.0.90.0090.00916.21
7.0.80.0080.00916.20
7.0.70.0060.01216.25
7.0.60.0110.00616.17
7.0.50.0060.01216.36
7.0.40.0000.01716.33
7.0.30.0060.00916.38
7.0.20.0080.00816.47
7.0.10.0060.01016.38
7.0.00.0060.01016.27

preferences:
72.34 ms | 401 KiB | 5 Q