3v4l.org

run code in 300+ PHP versions simultaneously
<?php function match_str($cellItemName,$dbItemArray) { $count = 0; $reult1 = stristr($cellItemName,$dbItemArray); //echo $reult1; if($reult1){ $count=1; break; } if($count==1) { return 1; } else { return 0; } } $result = match_str("2 php developer $150","PHP DEVELOPER"); if($result) echo "<a href='#' >anand</a>"; else echo "<a href='#' >kumar</a>"; ?>

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)
5.5.90.0100.05320.16
5.5.80.0130.07720.16
5.5.70.0130.07720.06
5.5.60.0200.06320.06
5.5.50.0000.08320.09
5.5.40.0070.08020.11
5.5.30.0100.07720.08
5.5.20.0070.08319.93
5.5.10.0070.07720.09
5.5.00.0130.04020.02
5.4.250.0170.07018.84
5.4.240.0130.07319.15
5.4.230.0130.07019.20
5.4.220.0100.06318.94
5.4.210.0070.05719.02
5.4.200.0070.07319.08
5.4.190.0170.07019.07
5.4.180.0100.07719.02
5.4.170.0170.05019.02
5.4.160.0070.07719.12
5.4.150.0100.05318.86
5.4.140.0170.06316.19
5.4.130.0070.07016.24
5.4.120.0100.07016.26
5.4.110.0100.06716.27
5.4.100.0130.07316.50
5.4.90.0070.04016.39
5.4.80.0100.06316.37
5.4.70.0070.07016.32
5.4.60.0070.07316.45
5.4.50.0000.07716.33
5.4.40.0030.05716.46
5.4.30.0100.07316.31
5.4.20.0100.07316.40
5.4.10.0130.07316.36
5.4.00.0130.06715.90
5.3.280.0030.08714.70
5.3.270.0130.04314.59
5.3.260.0130.07014.63
5.3.250.0070.07714.58
5.3.240.0100.07714.72
5.3.230.0100.08014.66
5.3.220.0100.07314.66
5.3.210.0070.06014.55
5.3.200.0100.07014.66
5.3.190.0070.08014.62
5.3.180.0100.05014.58
5.3.170.0130.06714.70
5.3.160.0070.04714.51
5.3.150.0030.04014.59
5.3.140.0030.08014.50
5.3.130.0000.08714.65
5.3.120.0070.06014.57
5.3.110.0100.07314.54
5.3.100.0030.05014.09
5.3.90.0070.04314.00
5.3.80.0070.07313.94
5.3.70.0200.05013.94
5.3.60.0070.07714.03
5.3.50.0100.07013.92
5.3.40.0030.08013.88
5.3.30.0030.05713.92
5.3.20.0100.07013.59
5.3.10.0030.07313.76
5.3.00.0100.05713.64
5.2.170.0070.06012.26
5.2.160.0030.04712.26
5.2.150.0030.06712.26
5.2.140.0100.06012.26
5.2.130.0030.06712.26
5.2.120.0030.05312.26
5.2.110.0100.06012.26
5.2.100.0070.06012.26
5.2.90.0030.06012.26
5.2.80.0030.06312.26
5.2.70.0000.06312.26
5.2.60.0070.06312.26
5.2.50.0030.06312.26
5.2.40.0030.06312.26
5.2.30.0100.05712.26
5.2.20.0030.05712.26
5.2.10.0000.06712.26
5.2.00.0070.06012.26
5.1.60.0000.04312.26
5.1.50.0100.05012.26
5.1.40.0000.06012.26
5.1.30.0070.04712.26
5.1.20.0100.05712.26
5.1.10.0000.06012.26
5.1.00.0000.05712.26
5.0.50.0000.04012.26
5.0.40.0030.04712.26
5.0.30.0030.04312.26
5.0.20.0070.02312.26
5.0.10.0070.04012.26
5.0.00.0030.05312.26
4.4.90.0100.02312.26
4.4.80.0030.03312.26
4.4.70.0030.02312.26
4.4.60.0000.03712.26
4.4.50.0000.03712.26
4.4.40.0070.04712.26
4.4.30.0000.03312.26
4.4.20.0030.03012.26
4.4.10.0000.04012.26
4.4.00.0070.05012.26
4.3.110.0030.03012.26
4.3.100.0000.01712.26
4.3.90.0000.03312.26
4.3.80.0070.05312.26
4.3.70.0130.02312.26
4.3.60.0030.02712.26
4.3.50.0070.03012.26
4.3.40.0070.05012.26
4.3.30.0030.03312.26
4.3.20.0000.03712.26
4.3.10.0000.04012.26
4.3.00.0030.03012.26

preferences:
139.49 ms | 1394 KiB | 7 Q