3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = "CN=CMPPDepartemental_Secretariat,OU=1 - Groupes de sécurité,OU=CMPP,OU=Pole,OU=Utilisateurs,DC=ricky,DC=fr"; $str2 = "CN=CMPPDepartemental_Direction,OU=1 - Groupes de sécurité,OU=CMPP,OU=Pole,OU=Utilisateurs,DC=ricky,DC=fr"; var_dump(find_by_keyword($str2, "CN=")); function find_by_keyword( $string, $keyword ) { $array = explode(",",$string); $found = []; // Loop through each item and check for a match. foreach ( $array as $string ) { // If found somewhere inside the string, add. if ( strpos( $string, $keyword ) !== false ) { $found[] = substr($string, strlen($keyword)); } } return $found; }

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.130.0110.00818.60
8.4.120.0120.00723.82
8.4.110.0110.00520.71
8.4.100.0130.00718.82
8.4.90.0060.00418.75
8.4.80.0120.00818.90
8.4.70.0060.00218.04
8.4.60.0150.00618.85
8.4.50.0100.01018.79
8.4.40.0070.01422.47
8.4.30.0060.01318.64
8.4.20.0030.00619.81
8.4.10.0070.01322.01
8.3.250.0100.00818.72
8.3.240.0150.00517.13
8.3.230.0100.00816.71
8.3.220.0090.01019.16
8.3.210.0080.00416.49
8.3.200.0070.00416.43
8.3.190.0130.00619.14
8.3.180.0150.00316.54
8.3.170.0170.00020.54
8.3.160.0120.00617.36
8.3.150.0090.00918.93
8.3.140.0090.00916.43
8.3.130.0080.00016.53
8.3.120.0110.00019.14
8.3.110.0060.00318.29
8.3.100.0060.00316.66
8.3.90.0080.00026.77
8.3.80.0030.00616.50
8.3.70.0140.00316.63
8.3.60.0060.01116.63
8.3.50.0080.00820.11
8.3.40.0120.00318.57
8.3.30.0070.00719.20
8.3.20.0080.00024.18
8.3.10.0000.00824.66
8.3.00.0000.00826.16
8.2.290.0070.01020.14
8.2.280.0120.00718.23
8.2.270.0180.00019.02
8.2.260.0070.00016.51
8.2.250.0110.00318.49
8.2.240.0080.00016.99
8.2.230.0080.00020.94
8.2.220.0040.00724.06
8.2.210.0080.00026.77
8.2.200.0030.00618.16
8.2.190.0070.00716.58
8.2.180.0070.01025.92
8.2.170.0040.01118.96
8.2.160.0120.00622.96
8.2.150.0040.01425.66
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0080.00418.90
8.2.110.0060.00319.25
8.2.100.0070.00417.91
8.2.90.0040.00419.46
8.2.80.0030.00617.97
8.2.70.0030.00517.63
8.2.60.0050.00317.93
8.2.50.0000.00818.07
8.2.40.0050.00318.20
8.2.30.0070.00018.02
8.2.20.0050.00220.46
8.2.10.0000.00818.18
8.2.00.0030.00519.29
8.1.330.0110.00821.74
8.1.320.0130.00916.30
8.1.310.0120.00316.80
8.1.300.0000.00918.29
8.1.290.0060.00330.84
8.1.280.0150.00625.92
8.1.270.0030.00522.18
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00623.63
8.1.230.0090.00322.75
8.1.220.0040.00417.77
8.1.210.0040.00418.95
8.1.200.0090.00017.23
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0030.00518.66
8.1.160.0000.00718.89
8.1.150.0050.00218.62
8.1.140.0070.00017.45
8.1.130.0000.00717.38
8.1.120.0080.00017.43
8.1.110.0000.00717.48
8.1.100.0030.00517.52
8.1.90.0030.00517.49
8.1.80.0050.00317.36
8.1.70.0000.00717.51
8.1.60.0040.00417.49
8.1.50.0150.00217.51
8.1.40.0090.00717.43
8.1.30.0150.00317.63
8.1.20.0180.00317.59
8.1.10.0150.00417.42
8.1.00.0170.00517.27
8.0.300.0030.00620.10
8.0.290.0040.00416.75
8.0.280.0000.00718.38
8.0.270.0070.00016.71
8.0.260.0030.00316.88
8.0.250.0000.00816.85
8.0.240.0000.00716.96
8.0.230.0030.00317.02
8.0.220.0040.00416.84
8.0.210.0000.00816.84
8.0.200.0050.00316.98
8.0.190.0040.00416.93
8.0.180.0120.00616.77
8.0.170.0100.00916.89
8.0.160.0110.00816.81
8.0.150.0100.00816.80
8.0.140.0170.00216.83
8.0.130.0110.00716.62
8.0.120.0140.00416.78
8.0.110.0060.00416.77
8.0.100.0050.00616.81
8.0.90.0100.00216.75
8.0.80.0130.00416.78
8.0.70.0110.00616.73
8.0.60.0080.00516.63
8.0.50.0090.00616.65
8.0.30.0080.00516.78
8.0.20.0050.00616.93
8.0.10.0110.00516.83
7.4.330.0030.00315.55
7.4.320.0030.00316.52
7.4.300.0000.00616.62
7.4.290.0100.00316.21
7.4.280.0110.00316.42
7.4.270.0140.00516.37
7.4.260.0140.00516.45
7.4.250.0090.00916.38
7.4.240.0170.00116.43
7.4.230.0110.00916.29
7.4.220.0160.00416.29
7.4.210.0160.00416.15
7.4.200.0150.00416.34
7.4.190.0140.00516.36
7.4.180.0150.00516.27
7.4.160.0070.00916.32
7.4.150.0120.00716.13
7.4.140.0150.00316.17
7.4.130.0100.00716.18
7.4.120.0110.01016.27
7.4.110.0170.00216.35
7.4.100.0130.00616.41
7.4.90.0140.00616.21
7.4.80.0130.00516.40
7.4.70.0120.00416.22
7.4.60.0140.00416.23
7.4.50.0140.00716.09
7.4.40.0140.00316.13
7.4.30.0120.00516.13
7.4.20.0110.00616.16
7.4.10.0090.00716.14
7.4.00.0150.00616.12

preferences:
29.53 ms | 403 KiB | 5 Q