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 $i.":".$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.40.0170.00318.66
8.3.30.0140.00019.14
8.3.20.0030.01220.34
8.3.10.0050.00322.00
8.3.00.0030.00622.44
8.2.170.0120.00622.96
8.2.160.0090.00620.94
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00417.63
8.2.110.0050.00522.25
8.2.100.0100.00319.63
8.2.90.0050.00319.21
8.2.80.0000.00918.03
8.2.70.0000.00817.50
8.2.60.0000.00818.04
8.2.50.0060.00318.07
8.2.40.0070.00418.16
8.2.30.0050.00318.00
8.2.20.0070.00317.83
8.2.10.0040.00419.57
8.2.00.0040.00417.79
8.1.270.0050.00322.10
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0000.00923.75
8.1.230.0080.00419.01
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0030.00517.51
8.1.180.0050.00318.84
8.1.170.0000.00818.50
8.1.160.0000.00722.13
8.1.150.0070.00018.67
8.1.140.0030.00517.45
8.1.130.0040.00417.69
8.1.120.0070.00017.43
8.1.110.0040.00717.44
8.1.100.0000.00717.46
8.1.90.0040.00417.49
8.1.80.0040.00417.50
8.1.70.0030.00317.41
8.1.60.0000.00817.57
8.1.50.0040.00417.58
8.1.40.0040.00417.50
8.1.30.0060.00317.61
8.1.20.0040.00417.67
8.1.10.0000.00717.64
8.1.00.0060.00317.51
8.0.300.0000.00718.77
8.0.290.0000.00717.18
8.0.280.0070.00018.45
8.0.270.0030.00517.26
8.0.260.0000.00618.45
8.0.250.0030.00317.00
8.0.240.0030.00316.95
8.0.230.0000.00716.95
8.0.220.0030.00316.83
8.0.210.0000.00816.93
8.0.200.0050.00216.91
8.0.190.0030.00516.85
8.0.180.0020.00516.97
8.0.170.0000.00816.89
8.0.160.0040.00416.84
8.0.150.0000.00716.88
8.0.140.0000.00916.91
8.0.130.0000.00613.30
8.0.120.0080.00016.89
8.0.110.0040.00416.96
8.0.100.0000.00816.72
8.0.90.0040.00416.67
8.0.80.0180.00416.90
8.0.70.0060.00316.89
8.0.60.0040.00416.91
8.0.50.0020.00516.72
8.0.30.0090.00917.21
8.0.20.0090.00817.40
8.0.10.0040.00416.92
8.0.00.0100.00816.71
7.4.330.0030.00315.00
7.4.320.0000.00616.58
7.4.300.0030.00316.61
7.4.290.0030.00316.55
7.4.280.0030.00316.35
7.4.270.0000.00716.52
7.4.260.0040.00416.58
7.4.250.0040.00416.37
7.4.240.0060.00116.45
7.4.230.0030.00316.32
7.4.220.0060.01216.63
7.4.210.0090.00716.63
7.4.200.0070.00016.51
7.4.190.0070.00016.40
7.4.160.0120.00616.35
7.4.150.0150.00317.40
7.4.140.0070.01617.86
7.4.130.0070.01216.64
7.4.120.0130.00516.47
7.4.110.0100.00716.47
7.4.100.0070.01416.49
7.4.90.0100.01316.51
7.4.80.0100.00719.39
7.4.70.0130.00416.54
7.4.60.0030.01616.43
7.4.50.0000.00816.52
7.4.40.0000.01222.77
7.4.30.0160.00016.48
7.4.10.0070.01416.32
7.4.00.0060.00815.87
7.3.330.0060.00013.18
7.3.320.0060.00013.23
7.3.310.0030.00316.26
7.3.300.0070.00016.36
7.3.290.0070.01116.36
7.3.280.0080.00816.35
7.3.270.0100.00717.40
7.3.260.0100.01016.39
7.3.250.0060.01516.36
7.3.240.0090.01316.65
7.3.230.0040.01516.39
7.3.210.0030.01716.62
7.3.200.0100.01319.39
7.3.190.0110.00616.43
7.3.180.0110.00516.71
7.3.170.0090.00616.56
7.3.160.0130.00316.56
7.3.130.0060.01216.41
7.3.120.0050.00915.63
7.3.110.0000.01516.36
7.3.100.0100.00716.28
7.3.90.0030.00616.29
7.3.80.0060.00616.43
7.3.70.0030.01016.53
7.3.60.0100.00716.48
7.3.50.0090.00616.39
7.3.40.0030.01016.27
7.3.30.0080.00616.42
7.3.20.0030.01018.21
7.3.10.0040.01118.18
7.3.00.0100.00318.28
7.2.330.0100.00716.40
7.2.320.0110.00616.72
7.2.310.0060.01116.84
7.2.300.0070.01016.77
7.2.290.0130.00316.77
7.2.260.0070.01016.68
7.2.250.0070.01016.65
7.2.240.0040.01216.57
7.2.230.0000.01116.57
7.2.220.0120.00416.80
7.2.210.0100.00016.76
7.2.200.0060.01016.55
7.2.190.0060.00916.58
7.2.180.0090.00616.45
7.2.170.0100.00716.50
7.2.160.0090.00316.53
7.2.150.0070.01018.25
7.2.140.0090.00318.54
7.2.130.0030.01218.42
7.2.120.0090.00618.42
7.2.110.0070.01118.41
7.2.100.0000.01418.34
7.2.90.0090.00618.40
7.2.80.0080.00418.36
7.2.70.0100.00318.33
7.2.60.0080.00818.50
7.2.50.0130.00018.46
7.2.40.0030.01218.41
7.2.30.0070.00718.54
7.2.20.0150.00318.35
7.2.10.0000.01518.45
7.2.00.0000.01719.04
7.1.330.0030.01017.66
7.1.320.0060.00917.47
7.1.310.0100.00317.50
7.1.300.0060.00917.29
7.1.290.0030.00917.20
7.1.280.0030.01117.38
7.1.270.0000.01217.23
7.1.260.0060.00617.27
7.1.250.0080.00317.42
7.1.240.0050.00517.40
7.1.230.0060.00917.32
7.1.220.0040.00817.31
7.1.210.0040.00817.27
7.1.200.0000.00817.34
7.1.190.0000.01417.32
7.1.180.0060.00317.38
7.1.170.0100.00317.34
7.1.160.0030.01017.27
7.1.150.0030.01217.53
7.1.140.0080.00317.20
7.1.130.0070.00717.27
7.1.120.0080.00417.22
7.1.110.0100.00617.32
7.1.100.0060.00717.71
7.1.90.0030.00917.41
7.1.80.0080.00817.37
7.1.70.0050.00617.18
7.1.60.0080.01018.56
7.1.50.0070.01017.10
7.1.40.0070.01017.36
7.1.30.0090.00917.32
7.1.20.0100.00317.52
7.1.10.0080.00417.46
7.1.00.0020.04519.90
7.0.330.0040.01116.85
7.0.320.0030.01017.12
7.0.310.0050.00516.95
7.0.300.0060.00316.88
7.0.290.0030.01416.96
7.0.280.0060.00617.00
7.0.270.0070.00716.93
7.0.260.0000.01117.17
7.0.250.0160.00016.96
7.0.240.0040.00816.93
7.0.230.0040.01117.13
7.0.220.0060.00917.29
7.0.210.0090.00617.02
7.0.200.0050.00817.05
7.0.190.0090.00616.97
7.0.180.0110.00417.04
7.0.170.0030.01217.07
7.0.160.0080.00817.15
7.0.150.0060.00617.05
7.0.140.0070.04019.69
7.0.130.0080.00417.05
7.0.120.0000.01216.98
7.0.110.0090.00617.09
7.0.100.0000.01016.99
7.0.90.0030.01016.96
7.0.80.0070.00717.14
7.0.70.0120.00617.11
7.0.60.0070.02218.65
7.0.50.0050.04617.37
7.0.40.0070.04517.59
7.0.30.0120.02717.64
7.0.20.0080.02917.50
7.0.10.0030.03217.55
7.0.00.0090.01917.62
5.6.400.0100.00315.65
5.6.390.0040.01115.99
5.6.380.0030.00716.09
5.6.370.0030.01115.73
5.6.360.0110.00416.09
5.6.350.0090.00615.71
5.6.340.0030.00916.02
5.6.330.0040.00816.04
5.6.320.0040.00716.04
5.6.310.0070.00715.80
5.6.300.0030.01216.23
5.6.290.0070.00716.13
5.6.280.0030.04218.64
5.6.270.0100.00316.18
5.6.260.0100.00315.79
5.6.250.0070.01016.05
5.6.240.0060.00615.94
5.6.230.0000.01715.80
5.6.220.0030.00715.84
5.6.210.0050.04518.17
5.6.200.0050.04716.97
5.6.190.0000.03618.15
5.6.180.0200.03118.27
5.6.170.0170.04018.25
5.6.160.0050.02518.30
5.6.150.0070.02317.21
5.6.140.0050.04517.11
5.6.130.0110.04117.06
5.6.120.0060.04618.32
5.6.110.0040.02518.56
5.6.100.0030.02518.38
5.6.90.0090.04718.48
5.6.80.0020.05218.08
5.6.70.0030.00915.76
5.6.60.0040.01116.04
5.6.50.0040.01116.15
5.6.40.0160.00015.90
5.6.30.0070.00715.92
5.6.20.0060.00615.83
5.6.10.0040.01115.84
5.6.00.0030.01315.86
5.5.380.0000.01015.83
5.5.370.0030.01315.77
5.5.360.0030.01015.81
5.5.350.0100.04518.24
5.5.340.0080.02816.97
5.5.330.0100.02017.98
5.5.320.0030.03318.26
5.5.310.0190.04118.14
5.5.300.0090.04317.01
5.5.290.0060.02616.92
5.5.280.0120.03218.34
5.5.270.0080.04718.39
5.5.260.0070.04118.36
5.5.250.0070.04518.26
5.5.240.0130.04018.00
5.5.230.0000.01115.72
5.5.220.0080.00415.77
5.5.210.0060.00315.97
5.5.200.0090.00615.73
5.5.190.0040.00815.77
5.5.180.0000.01515.95
5.5.170.0060.00615.70
5.5.160.0090.00615.89
5.5.150.0030.01015.72
5.5.140.0000.00915.92
5.5.130.0100.00615.85
5.5.120.0030.00815.77
5.5.110.0070.00315.96
5.5.100.0030.01015.91
5.5.90.0030.00715.77
5.5.80.0090.00615.87
5.5.70.0030.00715.97
5.5.60.0070.01115.91
5.5.50.0110.00415.59
5.5.40.0090.00615.75
5.5.30.0060.00615.80
5.5.20.0030.01015.94
5.5.10.0090.00615.88
5.5.00.0030.01315.82
5.4.450.0280.02616.14
5.4.440.0570.02216.07
5.4.430.0500.03216.19
5.4.420.0380.02616.07
5.4.410.0070.03016.14
5.4.400.0520.02815.81
5.4.390.0080.02815.82
5.4.380.0100.03815.67
5.4.370.0190.02915.74
5.4.360.0100.03415.75
5.4.350.0180.03115.72
5.4.340.0150.03215.82
5.4.330.0060.00612.73
5.4.320.0060.02012.62
5.4.310.0050.02212.62
5.4.300.0080.02012.63
5.4.290.0060.02312.61
5.4.280.0060.02312.58
5.4.270.0050.02612.56
5.4.260.0070.02715.86
5.4.250.0090.02915.77
5.4.240.0110.02615.86
5.4.230.0030.03315.78
5.4.220.0120.03115.85
5.4.210.0170.02215.82
5.4.200.0070.02715.92
5.4.190.0090.02715.75
5.4.180.0140.02415.84
5.4.170.0090.03715.84
5.4.160.0120.03015.78
5.4.150.0140.02715.68
5.4.140.0180.03214.60
5.4.130.0110.03214.71
5.4.120.0130.02114.68
5.4.110.0050.03514.55
5.4.100.0120.03014.58
5.4.90.0090.03714.61
5.4.80.0090.03414.52
5.4.70.0140.03314.68
5.4.60.0030.02814.59
5.4.50.0070.02614.65
5.4.40.0030.02914.64
5.4.30.0100.02314.62
5.4.20.0130.02314.63
5.4.10.0050.03114.61
5.4.00.0070.02714.34
5.3.290.0080.02112.99
5.3.280.0080.03113.81
5.3.270.0050.03013.77
5.3.260.0060.03113.80
5.3.250.0150.03813.87
5.3.240.0100.03213.67
5.3.230.0150.02513.79
5.3.220.0120.03013.68
5.3.210.0100.02813.68
5.3.200.0100.03013.73
5.3.190.0100.02813.77
5.3.180.0100.02513.81
5.3.170.0070.03713.84
5.3.160.0020.03013.83
5.3.150.0100.04013.84
5.3.140.0100.02313.91
5.3.130.0050.03113.74
5.3.120.0030.03613.75
5.3.110.0100.02613.85
5.3.100.0050.02813.54
5.3.90.0030.03313.60
5.3.80.0080.02713.48
5.3.70.0030.03613.63
5.3.60.0070.02713.63
5.3.50.0050.02813.49
5.3.40.0090.02713.41
5.3.30.0060.02713.57
5.3.20.0060.03013.52
5.3.10.0030.02813.22
5.3.00.0050.02513.20
5.2.170.0070.04011.13
5.2.160.0070.03711.30
5.2.150.0030.04711.21
5.2.140.0130.05311.22
5.2.130.0130.03311.32
5.2.120.0170.03311.27
5.2.110.0070.03711.05
5.2.100.0070.03711.05
5.2.90.0000.04311.27
5.2.80.0030.04310.92
5.2.70.0100.05311.04
5.2.60.0100.03711.24
5.2.50.0070.04310.93
5.2.40.0070.03710.98
5.2.30.0070.03710.80
5.2.20.0130.03310.79
5.2.10.0030.04010.94
5.2.00.0030.04010.79
5.1.60.0070.03010.23
5.1.50.0030.03310.08
5.1.40.0100.0409.98
5.1.30.0070.03310.29
5.1.20.0030.03710.41
5.1.10.0130.03710.13
5.1.00.0030.03710.16
5.0.50.0070.0238.80
5.0.40.0100.0278.57
5.0.30.0100.0408.21
5.0.20.0070.0238.20
5.0.10.0000.0308.23
5.0.00.0070.0508.02
4.4.90.0070.0177.00
4.4.80.0030.0237.00
4.4.70.0030.0207.00
4.4.60.0070.0177.00
4.4.50.0000.0237.00
4.4.40.0130.0237.00
4.4.30.0000.0237.00
4.4.20.0070.0177.00
4.4.10.0000.0237.00
4.4.00.0030.0337.00
4.3.110.0030.0207.00
4.3.100.0070.0277.00
4.3.90.0070.0177.00
4.3.80.0100.0237.00
4.3.70.0000.0237.00
4.3.60.0000.0207.00
4.3.50.0070.0177.00
4.3.40.0030.0307.00
4.3.30.0100.0207.00
4.3.20.0000.0337.00
4.3.10.0000.0207.00
4.3.00.0130.01314.49

preferences:
38.48 ms | 400 KiB | 5 Q