3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array("kaushik","kaushik is","kaushik is great","is","is great","great"); function sort($a,$b){ return strlen($b)-strlen($a); } usort($data,'sort'); $current = ""; for($i=0;$i<count($data);$i++) { $current=$data[$i]; for($j=$i+1;$j<count($data);$i++) { $current=str_replace($data[$j],"",$current); } if ($current=="") { echo $current."\n"; } } ?>

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.4.260.0230.06018.90
5.4.250.0170.05718.79
5.4.240.0230.04318.79
5.4.230.0070.06718.83
5.4.220.0130.07718.79
5.4.210.0170.05019.00
5.4.200.0070.06318.74
5.4.190.0130.04718.95
5.4.180.0170.05318.89
5.4.170.0100.07718.79
5.4.160.0070.05718.93
5.4.150.0100.05018.95
5.4.140.0130.04716.55
5.4.130.0070.04716.42
5.4.120.0100.04716.36
5.4.110.0070.05316.40
5.4.100.0130.04316.46
5.4.90.0100.05316.47
5.4.80.0000.05716.39
5.4.70.0130.05316.55
5.4.60.0070.05316.47
5.4.50.0100.06716.40
5.4.40.0100.04716.52
5.4.30.0000.05316.49
5.4.20.0200.05316.53
5.4.10.0100.05316.52
5.4.00.0170.04716.03
5.3.280.0130.05714.55
5.3.270.0070.07014.69
5.3.260.0070.08014.74
5.3.250.0070.05314.68
5.3.240.0130.06714.66
5.3.230.0030.05314.81
5.3.220.0100.05014.39
5.3.210.0000.06314.72
5.3.200.0100.07014.67
5.3.190.0170.06314.64
5.3.180.0030.07014.73
5.3.170.0170.04014.57
5.3.160.0030.05714.71
5.3.150.0100.05314.62
5.3.140.0170.06714.62
5.3.130.0130.05014.54
5.3.120.0100.05314.63
5.3.110.0070.06314.72
5.3.100.0070.07314.11
5.3.90.0070.06713.86
5.3.80.0100.06714.00
5.3.70.0170.06014.00
5.3.60.0130.06314.16
5.3.50.0230.05714.17
5.3.40.0030.06714.02
5.3.30.0100.04313.97
5.3.20.0030.06313.77
5.3.10.0070.06013.70
5.3.00.0200.05713.86
5.2.170.0000.05011.37
5.2.160.0070.04011.13
5.2.150.0070.03711.23
5.2.140.0000.05311.23
5.2.130.0000.04311.10
5.2.120.0030.04011.17
5.2.110.0100.04011.17
5.2.100.0170.03711.07
5.2.90.0070.04311.26
5.2.80.0130.05011.07
5.2.70.0100.03711.07
5.2.60.0070.04010.96
5.2.50.0130.05010.92
5.2.40.0000.04310.96
5.2.30.0100.03710.93
5.2.20.0070.04711.04
5.2.10.0000.05710.75
5.2.00.0100.04710.89
5.1.60.0070.0479.92
5.1.50.0000.0509.84
5.1.40.0170.03010.02
5.1.30.0030.05010.31
5.1.20.0070.03310.42
5.1.10.0130.04010.12
5.1.00.0100.04710.23
5.0.50.0030.0308.49
5.0.40.0130.0278.48
5.0.30.0000.0478.21
5.0.20.0000.0338.02
5.0.10.0030.0378.33
5.0.00.0030.0438.13
4.4.90.0030.0275.84
4.4.80.0070.0175.84
4.4.70.0070.0235.86
4.4.60.0000.0235.83
4.4.50.0070.0275.92
4.4.40.0000.0375.89
4.4.30.0030.0205.88
4.4.20.0100.0235.92
4.4.10.0030.0205.93
4.4.00.0000.0375.88
4.3.110.0030.0205.82
4.3.100.0030.0305.77
4.3.90.0000.0235.75
4.3.80.0000.0375.78
4.3.70.0030.0305.75
4.3.60.0100.0235.74
4.3.50.0000.0235.68
4.3.40.0000.0435.71
4.3.30.0000.0305.55
4.3.20.0070.0205.55
4.3.10.0030.0205.55
4.3.00.0230.01014.49

preferences:
140.73 ms | 1394 KiB | 7 Q