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"); usort($data,'mysort'); $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)
8.3.60.0071.99218.30
8.3.50.0151.98821.87
8.3.40.0071.99718.60
8.3.30.0071.99618.92
8.3.20.0032.00020.16
8.3.10.0071.99722.13
8.3.00.0032.00022.50
8.2.180.0071.99516.75
8.2.170.0071.99522.96
8.2.160.0071.99620.82
8.2.150.0031.99824.18
8.2.140.0101.99324.66
8.2.130.0002.00226.16
8.2.120.0031.99819.36
8.2.110.0071.99522.30
8.2.100.0071.99717.91
8.2.90.0031.99918.01
8.2.80.0031.99817.97
8.2.70.0072.00217.59
8.2.60.0002.00418.03
8.2.50.0032.00318.07
8.2.40.0031.99919.88
8.2.30.0031.99918.24
8.2.20.0032.00417.85
8.2.10.0032.00219.71
8.2.00.0031.99817.68
8.1.280.0071.99525.92
8.1.270.0071.99623.76
8.1.260.0071.99726.35
8.1.250.0002.00328.09
8.1.240.0031.99922.45
8.1.230.0101.99220.97
8.1.220.0031.99817.76
8.1.210.0071.99618.91
8.1.200.0032.00017.25
8.1.190.0031.99717.43
8.1.180.0032.00018.75
8.1.170.0002.00218.43
8.1.160.0002.00322.20
8.1.150.0002.00618.60
8.1.140.0101.99217.56
8.1.130.0031.99717.82
8.1.120.0032.00017.53
8.1.110.0031.99817.53
8.1.100.0002.00417.39
8.1.90.0031.99917.50
8.1.80.0002.00417.50
8.1.70.0031.99817.54
8.1.60.0071.99517.65
8.1.50.0071.99617.64
8.1.40.0002.00217.56
8.1.30.0002.00117.54
8.1.20.0032.00017.63
8.1.10.0071.99717.56
8.1.00.0101.99117.53
8.0.300.0031.99619.66
8.0.290.0072.00017.03
8.0.280.0071.99418.38
8.0.270.0231.97517.05
8.0.260.0002.00316.55
8.0.250.0071.99416.88
8.0.240.0071.99716.71
8.0.230.0031.99916.77
8.0.220.0002.00416.67
8.0.210.0131.98816.64
8.0.200.0002.00216.61
8.0.190.0071.99716.80
8.0.180.0032.00016.82
8.0.170.0002.00316.82
8.0.160.0002.00416.77
8.0.150.0032.00116.77
8.0.140.0002.00216.82
8.0.130.0032.00013.20
8.0.120.0031.99916.66
8.0.110.0002.00316.80
8.0.100.0002.00416.82
8.0.90.0031.99916.71
8.0.80.0101.99216.77
8.0.70.0002.00316.71
8.0.60.0002.00416.79
8.0.50.0071.99816.70
8.0.30.0071.99116.87
8.0.20.0161.98817.40
8.0.10.0071.99516.77
8.0.00.0111.99316.71
7.4.330.0031.99815.09
7.4.320.0002.00316.49
7.4.300.0002.00316.33
7.4.290.0032.00416.41
7.4.280.0101.99116.41
7.4.270.0002.00116.41
7.4.260.0032.00016.34
7.4.250.0031.99816.36
7.4.240.0031.99816.49
7.4.230.0002.00216.51
7.4.220.0071.99516.42
7.4.210.0101.98816.42
7.4.200.0101.99016.28
7.4.190.0002.00316.35
7.4.160.0401.95516.33
7.4.150.0321.95417.40
7.4.140.0101.99117.86
7.4.130.0131.98616.42
7.4.120.0111.99116.34
7.4.110.0172.43916.39
7.4.100.0132.45216.30
7.4.90.0132.22716.59
7.4.80.0162.43619.39
7.4.70.0262.36916.46
7.4.60.0132.46516.45
7.4.50.0072.49116.25
7.4.40.0102.48722.77
7.4.30.0162.44916.30
7.4.00.0032.49414.93
7.3.330.0031.99813.32
7.3.320.0002.00113.22
7.3.310.0032.00016.10
7.3.300.0002.00216.08
7.3.290.0391.96116.35
7.3.280.0041.99616.28
7.3.270.0231.98717.40
7.3.260.0161.98416.27
7.3.250.0101.99716.27
7.3.240.0131.98916.39
7.3.230.0352.10716.45
7.3.210.0102.43416.35
7.3.200.0162.43819.39
7.3.190.0102.42616.60
7.3.180.0262.38716.23
7.3.170.0102.46816.49
7.3.160.0102.46116.43
7.3.120.0002.49714.91
7.2.330.0292.45416.77
7.2.320.0132.45716.68
7.2.310.0132.44616.72
7.2.300.0202.44216.53
7.2.290.0072.47116.52
7.2.80.0032.49416.38
7.2.00.0002.50119.47
7.1.200.0032.49515.70
7.1.100.0002.50017.91
7.1.70.0032.49817.16
7.1.60.0132.48819.82
7.1.50.0072.49416.78
7.1.00.0072.49322.16
7.0.200.0032.49816.77
7.0.140.0032.49722.15
7.0.60.0072.49320.00
7.0.50.0032.49717.81
7.0.40.0032.49719.85
7.0.30.0272.47319.80
7.0.20.0202.48019.98
7.0.10.0072.49319.97
7.0.00.0102.49019.81
5.6.280.0032.49721.13
5.6.210.0032.49720.75
5.6.200.0032.49718.23
5.6.190.0002.50020.36
5.6.180.0472.45320.46
5.6.170.0332.46720.21
5.6.160.0032.49720.36
5.6.150.0172.48318.16
5.6.140.0002.50018.14
5.6.130.0102.49018.13
5.6.120.0102.49020.93
5.6.110.0202.48021.05
5.6.100.0132.48721.03
5.6.90.0072.49320.95
5.6.80.0102.49020.38
5.5.350.0502.08720.57
5.5.340.0401.31720.86
5.5.330.0230.90720.96
5.5.320.0172.09320.91
5.5.310.0132.46720.95
5.5.300.0532.35720.89
5.5.290.0272.40020.85
5.5.280.0102.47020.78
5.5.270.0332.37020.74
5.5.260.0272.37320.70
5.5.250.0102.43720.79
5.5.240.0202.39020.22
5.4.450.0032.47019.39
5.4.440.0332.41719.16
5.4.430.0102.43719.29
5.4.420.0132.44319.54
5.4.410.0072.38719.41
5.4.400.0102.43319.11
5.4.390.0272.43018.91
5.4.380.0132.45719.07
5.4.370.0272.39318.85
5.4.360.0402.38319.04
5.4.350.0172.45319.11
5.4.340.0202.43018.88
5.4.320.0132.45318.91
5.4.310.0172.43019.04
5.4.300.0202.38718.87
5.4.290.0002.45019.02
5.4.280.0232.41718.95
5.4.270.0172.45718.85
5.4.260.0172.43319.05
5.4.250.0302.39018.90
5.4.240.0072.45018.88
5.4.230.0302.42018.90
5.4.220.0472.30719.05
5.4.210.0632.32719.06
5.4.200.0172.42018.95
5.4.190.0102.38719.17
5.4.180.0132.44319.03
5.4.170.0132.47019.03
5.4.160.0232.42019.08
5.4.150.0132.43319.00
5.4.140.0272.44316.43
5.4.130.0202.40316.34
5.4.120.0172.43716.50
5.4.110.0172.39016.52
5.4.100.0202.45016.23
5.4.90.0172.42016.51
5.4.80.0132.40016.23
5.4.70.0172.43716.46
5.4.60.0102.42316.48
5.4.50.0132.43316.48
5.4.40.0272.40016.46
5.4.30.0132.43716.52
5.4.20.0202.41716.50
5.4.10.0172.44016.52
5.4.00.0072.45015.83
5.3.290.0132.46014.38
5.3.280.0232.40014.45
5.3.270.0132.45314.44
5.3.260.0172.41714.38
5.3.250.0232.43014.31
5.3.240.0302.42714.47
5.3.230.0232.42314.44
5.3.220.0202.43714.34
5.3.210.0272.45014.44
5.3.200.0172.40014.34
5.3.190.0172.43314.42
5.3.180.0232.41714.43
5.3.170.0232.42714.40
5.3.160.0132.45314.36
5.3.150.0172.45714.40
5.3.140.0102.44014.40
5.3.130.0232.42314.53
5.3.120.0272.43314.41
5.3.110.0302.41314.38
5.3.100.0102.45013.89
5.3.90.0272.42313.80
5.3.80.0172.43713.79
5.3.70.0072.47013.82
5.3.60.0302.38313.80
5.3.50.0132.38313.75
5.3.40.0202.43713.75
5.3.30.0372.39313.68
5.3.20.0072.44713.33
5.3.10.0272.41713.45
5.3.00.0132.45313.41
5.2.170.0072.47310.88
5.2.160.0102.41710.85
5.2.150.0132.42310.91
5.2.140.0132.43710.89
5.2.130.0132.47310.87
5.2.120.0202.41710.83
5.2.110.0102.42010.86
5.2.100.0072.45310.86
5.2.90.0102.43310.85
5.2.80.0172.43010.99
5.2.70.0172.41010.83
5.2.60.0132.46010.81
5.2.50.0072.45310.77
5.2.40.0232.40710.77
5.2.30.0272.41710.75
5.2.20.0102.40710.70
5.2.10.0302.38010.68
5.2.00.0202.40710.46
5.1.60.0172.4039.68
5.1.50.0102.4479.79
5.1.40.0202.4439.75
5.1.30.0172.40310.17
5.1.20.0132.39010.19
5.1.10.0072.4539.93
5.1.00.0032.4239.89
5.0.50.0272.4308.35
5.0.40.0072.4378.18
5.0.30.0232.4038.12
5.0.20.0102.4338.03
5.0.10.0172.4238.02
5.0.00.0172.4277.98
4.4.90.0132.4477.66
4.4.80.0072.4307.66
4.4.70.0072.3877.65
4.4.60.0172.4037.65
4.4.50.0102.3937.65
4.4.40.0102.4337.65
4.4.30.0102.4407.65
4.4.20.0132.4237.65
4.4.10.0102.4437.65
4.4.00.0102.4577.65
4.3.110.0202.4377.65
4.3.100.0232.4237.65
4.3.90.0102.4207.65
4.3.80.0002.4677.65
4.3.70.0102.4307.65
4.3.60.0232.3907.65
4.3.50.0102.4107.65
4.3.40.0132.4477.65
4.3.30.0432.4107.65
4.3.20.0272.4077.65
4.3.10.0002.4507.65
4.3.00.0172.4237.65

preferences:
40.2 ms | 401 KiB | 5 Q