3v4l.org

run code in 300+ PHP versions simultaneously
<?php function mysort($a,$b){ return strlen($b)-strlen($a); } //$data = array("kaushik","kaushik is","kaushik is great","is","is great","great"); $data = array("usb","pc","cam 168","cam","168"); usort($data,'mysort'); // print_r($data); $current = ""; for($i=0;$i<count($data);$i++) { $current=$data[$i]; for($j=0;$j<count($data);$j++) { if($i<>$j) { $current=(str_replace($data[$j],"",trim($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)
8.3.40.0080.00818.79
8.3.30.0070.00719.04
8.3.20.0040.00420.34
8.3.10.0080.00021.92
8.3.00.0080.00022.51
8.2.170.0080.00822.96
8.2.160.0070.00720.94
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0050.00319.36
8.2.110.0060.00322.32
8.2.100.0030.01019.76
8.2.90.0080.00019.21
8.2.80.0030.00617.97
8.2.70.0000.00817.50
8.2.60.0090.00018.03
8.2.50.0000.00818.07
8.2.40.0040.00418.14
8.2.30.0000.00718.13
8.2.20.0040.00717.66
8.2.10.0040.00419.59
8.2.00.0050.00217.67
8.1.270.0080.00022.19
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0000.00923.73
8.1.230.0040.00819.15
8.1.220.0050.00317.74
8.1.210.0000.00918.77
8.1.200.0030.00617.35
8.1.190.0000.00817.53
8.1.180.0050.00318.59
8.1.170.0060.00318.69
8.1.160.0040.00422.14
8.1.150.0040.00418.58
8.1.140.0030.00617.42
8.1.130.0030.00317.82
8.1.120.0050.00217.35
8.1.110.0080.00217.36
8.1.100.0040.00417.36
8.1.90.0000.00817.48
8.1.80.0070.00017.36
8.1.70.0000.00717.38
8.1.60.0050.00317.47
8.1.50.0050.00317.43
8.1.40.0040.00417.50
8.1.30.0040.00417.60
8.1.20.0000.00817.59
8.1.10.0040.00417.47
8.1.00.0050.00317.38
8.0.300.0000.00718.77
8.0.290.0000.00717.04
8.0.280.0030.00318.38
8.0.270.0000.00717.19
8.0.260.0030.00316.87
8.0.250.0040.00417.01
8.0.240.0070.00017.02
8.0.230.0030.00316.87
8.0.220.0040.00416.86
8.0.210.0050.00216.96
8.0.200.0030.00316.84
8.0.190.0040.00416.97
8.0.180.0040.00416.87
8.0.170.0000.00716.94
8.0.160.0000.00716.88
8.0.150.0050.00316.86
8.0.140.0080.00016.88
8.0.130.0030.00313.31
8.0.120.0030.00516.88
8.0.110.0000.00816.91
8.0.100.0050.00217.00
8.0.90.0080.00016.91
8.0.80.0040.01816.89
8.0.70.0000.00716.78
8.0.60.0040.00416.90
8.0.50.0040.00416.72
8.0.30.0100.01317.11
8.0.20.0120.00717.40
8.0.10.0040.00417.08
8.0.00.0110.01216.76
7.4.330.0030.00315.15
7.4.320.0000.00616.57
7.4.300.0000.00716.58
7.4.290.0040.00416.60
7.4.280.0030.00316.57
7.4.270.0000.00716.59
7.4.260.0030.00316.55
7.4.250.0050.00216.55
7.4.240.0020.00616.51
7.4.230.0000.00716.30
7.4.220.0170.00016.64
7.4.210.0080.00716.46
7.4.200.0000.00716.62
7.4.190.0000.00716.78
7.4.160.0030.01216.60
7.4.150.0070.01017.40
7.4.140.0110.00717.86
7.4.130.0160.00316.57
7.4.120.0060.01116.45
7.4.110.0110.00716.36
7.4.100.0100.01016.38
7.4.90.0090.01216.60
7.4.80.0110.01119.39
7.4.70.0100.00616.67
7.4.60.0100.00616.46
7.4.50.0000.00816.45
7.4.40.0070.01022.77
7.4.30.0080.00816.54
7.4.00.0090.00914.93
7.3.330.0020.00213.31
7.3.320.0060.00013.35
7.3.310.0000.00716.40
7.3.300.0030.00316.27
7.3.290.0060.00916.26
7.3.280.0090.00716.38
7.3.270.0080.00817.40
7.3.260.0140.01116.38
7.3.250.0140.00416.43
7.3.240.0060.01316.42
7.3.230.0120.00916.64
7.3.210.0030.01316.41
7.3.200.0080.00819.39
7.3.190.0110.00816.66
7.3.180.0120.00616.64
7.3.170.0000.01616.68
7.3.160.0070.01016.37
7.3.120.0070.01014.72
7.3.110.0070.01114.95
7.3.100.0120.00314.97
7.3.90.0040.00815.00
7.3.80.0060.00614.66
7.3.70.0000.01314.82
7.3.60.0060.00914.99
7.3.50.0030.00814.85
7.3.40.0080.00414.84
7.3.30.0060.00314.70
7.3.20.0090.00016.80
7.3.10.0090.00916.75
7.3.00.0080.01216.43
7.2.330.0130.00716.50
7.2.320.0070.01016.44
7.2.310.0140.00316.84
7.2.300.0130.00416.84
7.2.290.0060.01016.33
7.2.250.0120.00314.83
7.2.240.0070.01114.79
7.2.230.0060.00315.06
7.2.220.0060.00914.99
7.2.210.0030.00614.90
7.2.200.0070.00715.20
7.2.190.0090.00314.75
7.2.180.0030.00614.95
7.2.170.0030.01515.12
7.2.160.0120.00414.92
7.2.150.0100.01016.83
7.2.140.0120.00816.98
7.2.130.0040.01517.10
7.2.120.0120.00017.03
7.2.110.0030.01216.79
7.2.100.0060.00616.79
7.2.90.0100.00616.59
7.2.80.0120.00616.80
7.2.70.0060.01317.09
7.2.60.0080.00816.77
7.2.50.0090.00917.15
7.2.40.0110.00716.97
7.2.30.0060.00916.83
7.2.20.0060.00616.94
7.2.10.0060.00616.98
7.2.00.0060.00718.23
7.1.330.0070.00715.66
7.1.320.0000.01415.76
7.1.310.0090.00315.81
7.1.300.0060.00915.54
7.1.290.0100.00315.77
7.1.280.0000.01115.93
7.1.270.0060.00615.96
7.1.260.0080.00815.81
7.1.250.0040.00815.48
7.1.200.0100.00315.74
7.1.70.0000.00716.93
7.1.60.0030.01016.91
7.1.50.0070.01316.99
7.1.00.0030.07722.43
7.0.200.0000.01016.66
7.0.140.0000.07722.07
7.0.60.0070.04019.82
7.0.50.0070.04017.84
7.0.40.0000.05020.09
7.0.30.0200.07720.07
7.0.20.0300.06720.33
7.0.10.0070.04020.12
7.0.00.0030.05320.05
5.6.280.0000.07721.13
5.6.210.0100.06320.73
5.6.200.0030.06018.29
5.6.190.0000.08020.68
5.6.180.0200.04320.60
5.6.170.0300.05320.50
5.6.160.0030.07020.55
5.6.150.0070.06718.28
5.6.140.0030.07018.18
5.6.130.0200.07018.18
5.6.120.0100.08321.01
5.6.110.0030.04320.97
5.6.100.0170.07321.13
5.6.90.0030.06720.95
5.6.80.0170.06720.48
5.5.350.0200.08320.43
5.5.340.0100.04718.05
5.5.330.0030.08020.42
5.5.320.0230.05320.27
5.5.310.0370.04320.36
5.5.300.0070.08017.93
5.5.290.0130.05717.95
5.5.280.0070.05720.90
5.5.270.0130.08020.63
5.5.260.0000.04320.76
5.5.250.0030.04320.44
5.5.240.0270.07720.13
5.4.450.0770.05719.16
5.4.440.0900.05719.57
5.4.430.0170.04719.54
5.4.420.0070.05719.31
5.4.410.0130.05018.95
5.4.400.0070.05318.54
5.4.390.0070.05318.59
5.4.380.0130.05318.76
5.4.370.0470.05318.50
5.4.360.0270.05718.61
5.4.350.0430.05718.78
5.4.340.0230.05318.77
5.4.320.0070.03512.51
5.4.310.0080.03712.50
5.4.300.0070.03912.50
5.4.290.0070.04512.50
5.4.280.0050.04012.39
5.4.270.0080.04112.40
5.4.260.0130.04718.92
5.4.250.0070.05718.92
5.4.240.0170.05018.93
5.4.230.0070.05318.76
5.4.220.0100.07019.05
5.4.210.0130.05318.75
5.4.200.0070.05319.06
5.4.190.0100.07319.02
5.4.180.0000.05718.97
5.4.170.0170.04718.86
5.4.160.0000.06018.94
5.4.150.0070.05318.75
5.4.140.0070.05016.38
5.4.130.0100.06016.53
5.4.120.0170.06716.38
5.4.110.0030.06016.38
5.4.100.0170.04016.47
5.4.90.0130.04716.29
5.4.80.0100.04716.42
5.4.70.0130.04716.43
5.4.60.0070.05716.35
5.4.50.0100.05716.44
5.4.40.0070.04716.64
5.4.30.0170.04016.59
5.4.20.0130.04016.48
5.4.10.0070.06016.47
5.4.00.0070.06015.98
5.3.290.0090.03812.80
5.3.280.0100.05314.42
5.3.270.0030.08714.43
5.3.260.0170.06714.78
5.3.250.0030.05314.62
5.3.240.0070.05014.66
5.3.230.0070.05014.66
5.3.220.0100.04714.40
5.3.210.0030.05314.55
5.3.200.0070.05014.55
5.3.190.0070.05714.74
5.3.180.0100.05014.63
5.3.170.0100.05314.64
5.3.160.0070.05014.56
5.3.150.0030.07314.63
5.3.140.0030.05314.64
5.3.130.0100.05314.55
5.3.120.0100.06014.71
5.3.110.0000.06314.38
5.3.100.0070.05014.26
5.3.90.0100.04714.15
5.3.80.0070.04714.20
5.3.70.0100.06314.02
5.3.60.0170.04014.06
5.3.50.0100.04313.95
5.3.40.0070.05314.17
5.3.30.0100.04313.99
5.3.20.0000.05713.68
5.3.10.0100.04713.67
5.3.00.0070.05013.54
5.2.170.0070.05011.20
5.2.160.0070.03711.23
5.2.150.0100.03711.13
5.2.140.0030.04311.31
5.2.130.0130.04011.07
5.2.120.0070.04011.18
5.2.110.0070.03711.18
5.2.100.0030.04011.18
5.2.90.0070.03711.05
5.2.80.0030.04011.07
5.2.70.0030.04011.07
5.2.60.0130.03311.03
5.2.50.0070.03711.00
5.2.40.0030.04311.07
5.2.30.0070.04010.94
5.2.20.0070.04311.04
5.2.10.0030.04310.95
5.2.00.0030.06010.80
5.1.60.0070.05010.06
5.1.50.0030.03310.06
5.1.40.0100.02710.18
5.1.30.0100.03010.50
5.1.20.0030.03710.52
5.1.10.0070.0339.90
5.1.00.0070.03710.00
5.0.50.0030.0378.65
5.0.40.0070.0238.26
5.0.30.0000.0608.47
5.0.20.0130.0178.13
5.0.10.0000.0308.02
5.0.00.0030.0408.26
4.4.90.0030.0207.04
4.4.80.0030.0207.04
4.4.70.0000.0237.04
4.4.60.0070.0207.04
4.4.50.0030.0207.04
4.4.40.0030.0307.04
4.4.30.0100.0237.04
4.4.20.0030.0207.04
4.4.10.0000.0337.04
4.4.00.0070.0307.04
4.3.110.0130.0177.04
4.3.100.0070.0307.04
4.3.90.0070.0277.04
4.3.80.0000.0337.04
4.3.70.0000.0237.04
4.3.60.0070.0237.04
4.3.50.0030.0277.04
4.3.40.0000.0507.04
4.3.30.0030.0207.04
4.3.20.0030.0207.04
4.3.10.0000.0237.04
4.3.00.0130.0206.86

preferences:
52.81 ms | 400 KiB | 5 Q