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'); // print_r($data); $current = ""; for($i=0;$i<count($data);$i++) { $current=$data[$i]; for($j=$i+1;$j<count($data);$j++) { $current=str_replace($data[$j],"",$current); } if ($current!="") { echo $data[$i]."\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.0140.00318.55
8.3.50.0130.00621.91
8.3.40.0090.00618.54
8.3.30.0030.01019.09
8.3.20.0040.00420.28
8.3.10.0060.00321.92
8.3.00.0030.00622.40
8.2.180.0150.00616.63
8.2.170.0070.00722.96
8.2.160.0070.01520.89
8.2.150.0000.00824.18
8.2.140.0080.00824.66
8.2.130.0030.00726.16
8.2.120.0070.00719.27
8.2.110.0040.00422.08
8.2.100.0060.00619.58
8.2.90.0030.00518.96
8.2.80.0000.00817.97
8.2.70.0080.00017.63
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0030.00618.34
8.2.30.0030.00518.00
8.2.20.0030.00617.59
8.2.10.0040.00419.48
8.2.00.0000.00817.67
8.1.280.0140.00725.92
8.1.270.0080.00022.09
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.01123.96
8.1.230.0000.01018.97
8.1.220.0000.00817.76
8.1.210.0000.00818.77
8.1.200.0000.00917.36
8.1.190.0000.00817.53
8.1.180.0050.00318.79
8.1.170.0040.00418.64
8.1.160.0020.00521.91
8.1.150.0030.00518.63
8.1.140.0000.00717.38
8.1.130.0050.00217.78
8.1.120.0030.00317.43
8.1.110.0060.00317.42
8.1.100.0050.00317.48
8.1.90.0000.00717.47
8.1.80.0040.00417.45
8.1.70.0000.00717.39
8.1.60.0000.01017.57
8.1.50.0030.00617.51
8.1.40.0000.00817.53
8.1.30.0000.00717.52
8.1.20.0040.00417.54
8.1.10.0030.00517.46
8.1.00.0000.00817.39
8.0.300.0040.00418.77
8.0.290.0090.00016.93
8.0.280.0030.00518.34
8.0.270.0070.00017.17
8.0.260.0030.00516.86
8.0.250.0040.00416.98
8.0.240.0030.00316.88
8.0.230.0030.00316.83
8.0.220.0000.00716.93
8.0.210.0080.00016.77
8.0.200.0000.00716.77
8.0.190.0000.00716.93
8.0.180.0030.00316.89
8.0.170.0070.00016.91
8.0.160.0040.00416.75
8.0.150.0030.00316.73
8.0.140.0000.00716.83
8.0.130.0050.00013.33
8.0.120.0070.00016.86
8.0.110.0000.00816.93
8.0.100.0000.00716.79
8.0.90.0080.00016.80
8.0.80.0090.00616.86
8.0.70.0040.00416.70
8.0.60.0000.00716.82
8.0.50.0070.00016.84
8.0.30.0090.01116.98
8.0.20.0140.00717.40
8.0.10.0000.00816.91
8.0.00.0130.00716.61
7.4.330.0020.00215.01
7.4.320.0000.00616.59
7.4.300.0030.00316.61
7.4.290.0000.00616.52
7.4.280.0040.00416.50
7.4.270.0040.00416.54
7.4.260.0030.00316.35
7.4.250.0040.00416.46
7.4.240.0060.00116.56
7.4.230.0040.00416.60
7.4.220.0070.01016.60
7.4.210.0080.00716.62
7.4.200.0040.00416.71
7.4.190.0070.00016.54
7.4.160.0070.01416.51
7.4.150.0140.01017.40
7.4.140.0110.01317.86
7.4.130.0100.00916.45
7.4.120.0120.00516.50
7.4.110.0150.00616.45
7.4.100.0060.01216.59
7.4.90.0190.00416.63
7.4.80.0030.01519.39
7.4.70.0210.00016.49
7.4.60.0090.00716.45
7.4.50.0030.00316.48
7.4.40.0060.01022.77
7.4.30.0110.00716.68
7.4.00.0090.00914.92
7.3.330.0060.00013.34
7.3.320.0000.00513.37
7.3.310.0040.00416.35
7.3.300.0060.00016.39
7.3.290.0090.00516.34
7.3.280.0090.00716.37
7.3.270.0170.00317.40
7.3.260.0100.00716.34
7.3.250.0100.00716.41
7.3.240.0070.01016.42
7.3.230.0120.00416.39
7.3.210.0090.00916.38
7.3.200.0100.00719.39
7.3.190.0150.00316.39
7.3.180.0120.00616.74
7.3.170.0070.01016.41
7.3.160.0120.00416.41
7.3.120.0060.00914.73
7.3.110.0060.01314.95
7.3.100.0030.01214.87
7.3.90.0070.00915.04
7.3.80.0060.00614.64
7.3.70.0080.00314.82
7.3.60.0060.00614.72
7.3.50.0040.00814.67
7.3.40.0080.00414.83
7.3.30.0100.00114.79
7.3.20.0060.00816.75
7.3.10.0030.00816.55
7.3.00.0080.00816.57
7.2.330.0160.00316.81
7.2.320.0100.01316.58
7.2.310.0090.00616.75
7.2.300.0030.01316.49
7.2.290.0060.01216.50
7.2.250.0080.00714.71
7.2.240.0080.01214.84
7.2.230.0090.00715.13
7.2.220.0100.00815.08
7.2.210.0030.01115.14
7.2.200.0100.00414.87
7.2.190.0070.00815.00
7.2.180.0080.00715.04
7.2.170.0030.00915.03
7.2.60.0030.01416.80
7.2.00.0030.01019.48
7.1.330.0070.00715.83
7.1.320.0050.01015.92
7.1.310.0050.00815.92
7.1.300.0030.01015.82
7.1.290.0030.01215.71
7.1.280.0050.00715.74
7.1.270.0030.00915.86
7.1.260.0060.00515.95
7.1.200.0070.00715.84
7.1.100.0030.01317.85
7.1.70.0060.00317.35
7.1.60.0070.00719.82
7.1.50.0090.00316.76
7.1.00.0100.06722.35
7.0.200.0000.00716.80
7.0.140.0000.07722.15
7.0.60.0100.07719.89
7.0.50.0030.06317.85
7.0.40.0070.04020.04
7.0.30.0200.04020.15
7.0.20.0170.04320.10
7.0.10.0300.07720.12
7.0.00.0070.05020.27
5.6.280.0000.07021.03
5.6.210.0070.03720.53
5.6.200.0030.04018.18
5.6.190.0100.08020.39
5.6.180.4230.04320.39
5.6.170.0330.06020.48
5.6.160.0070.04020.51
5.6.150.0070.03718.21
5.6.140.0100.08018.18
5.6.130.0100.07718.16
5.6.120.0070.06721.12
5.6.110.0030.05321.02
5.6.100.0070.03721.14
5.6.90.0100.07321.12
5.6.80.0130.07320.51
5.6.70.0270.07720.51
5.5.350.0030.08020.30
5.5.340.0130.04317.98
5.5.330.0100.07320.29
5.5.320.0200.08320.42
5.5.310.0330.07020.36
5.5.300.0170.07318.02
5.5.290.0000.08718.08
5.5.280.0070.05720.69
5.5.270.0070.04020.76
5.5.260.0070.05020.79
5.5.250.0070.08320.70
5.5.240.0070.06720.26
5.4.450.0370.06719.53
5.4.440.0200.05019.54
5.4.430.0200.07019.32
5.4.420.0400.06719.41
5.4.410.0370.07019.04
5.4.400.0230.05019.00
5.4.390.0370.06719.09
5.4.380.0300.06719.00
5.4.370.0200.06719.06
5.4.360.0370.04019.22
5.4.350.0300.06318.98
5.4.340.0270.04318.96
5.4.320.0370.06018.88
5.4.310.0270.04719.06
5.4.300.0230.07019.07
5.4.290.0270.04719.20
5.4.280.0370.04019.14
5.4.270.0270.07319.23
5.4.260.0230.04019.08
5.4.250.0230.05718.97
5.4.240.0300.06318.84
5.4.230.0270.06019.16
5.4.220.0270.07718.94
5.4.210.0300.05718.98
5.4.200.0230.07319.21
5.4.190.0370.06319.25
5.4.180.0230.07719.14
5.4.170.0230.05019.02
5.4.160.0200.04319.06
5.4.150.0200.07319.14
5.4.140.0230.04316.50
5.4.130.0270.07016.30
5.4.120.0270.04716.33
5.4.110.0200.05716.27
5.4.100.0200.03716.54
5.4.90.0170.04016.38
5.4.80.0200.03016.36
5.4.70.0200.05716.50
5.4.60.0200.03316.52
5.4.50.0200.03016.34
5.4.40.0170.03716.39
5.4.30.0200.03316.37
5.4.20.0200.03316.32
5.4.10.0130.03716.50
5.4.00.0130.04315.96
5.3.290.0330.06714.77
5.3.280.0300.07314.75
5.3.270.0270.04714.76
5.3.260.0230.05014.55
5.3.250.0200.07714.58
5.3.240.0200.06314.58
5.3.230.0300.07014.61
5.3.220.0170.05314.58
5.3.210.0230.03014.66
5.3.200.0300.03014.56
5.3.190.0200.03714.74
5.3.180.0230.03714.57
5.3.170.0170.04014.56
5.3.160.0200.03314.49
5.3.150.0130.05014.68
5.3.140.0100.04314.78
5.3.130.0170.03714.71
5.3.120.0230.03714.66
5.3.110.0170.03714.66
5.3.100.0200.03313.95
5.3.90.0230.02713.94
5.3.80.0170.03314.03
5.3.70.0100.04014.23
5.3.60.0070.04013.91
5.3.50.0130.04013.86
5.3.40.0230.03313.88
5.3.30.0170.03713.83
5.3.20.0170.03713.76
5.3.10.0300.03713.66
5.3.00.0370.02313.86
5.2.170.0170.04712.15
5.2.160.0130.03012.15
5.2.150.0130.03012.15
5.2.140.0130.03012.15
5.2.130.0170.03012.15
5.2.120.0070.03312.15
5.2.110.0200.02712.15
5.2.100.0130.03012.15
5.2.90.0270.01712.15
5.2.80.0070.03712.15
5.2.70.0100.03712.15
5.2.60.0170.02712.15
5.2.50.0100.03012.15
5.2.40.0200.01712.15
5.2.30.0130.02712.15
5.2.20.0070.03012.15
5.2.10.0130.02712.15
5.2.00.0130.02712.15
5.1.60.0130.02012.15
5.1.50.0130.02312.15
5.1.40.0130.03012.15
5.1.30.0130.03012.15
5.1.20.0170.02312.15
5.1.10.0200.04012.15
5.1.00.0200.03712.15
5.0.50.0100.04312.15
5.0.40.0130.03312.15
5.0.30.0130.05712.15
5.0.20.0030.04312.15
5.0.10.0130.04312.15
5.0.00.0130.05312.15
4.4.90.0100.01312.15
4.4.80.0070.01712.15
4.4.70.0070.01312.15
4.4.60.0070.01712.15
4.4.50.0100.01312.15
4.4.40.0030.02712.15
4.4.30.0030.02012.15
4.4.20.0100.03712.15
4.4.10.0070.02012.15
4.4.00.0130.05012.15
4.3.110.0170.02712.15
4.3.100.0130.03012.15
4.3.90.0170.02012.15
4.3.80.0070.05312.15
4.3.70.0100.03312.15
4.3.60.0100.03012.15
4.3.50.0070.02712.15
4.3.40.0170.05012.15
4.3.30.0030.03312.15
4.3.20.0000.03012.15
4.3.10.0030.03712.15
4.3.00.0130.02712.15

preferences:
42.66 ms | 401 KiB | 5 Q