3v4l.org

run code in 300+ PHP versions simultaneously
<?php // just comment/uncomment to choose which $data you want to see in action //$data = array("kaushik","kaushik is","kaushik is great","is","is great","great"); $data = array("usb","pc","cam 168","cam","168","cam 168"); $current = ""; for($i=0;$i<count($data);$i++) { $current=$data[$i]; for($j=0;$j<count($data);$j++) { if($i<>$j) { if((str_replace($data[$j],"",$current))!=$current) { $data[$j]=""; }; } } } for($i=0;$i<count($data);$i++) { if($data[$i]!="") { 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.70.0090.00618.23
8.3.60.0170.00016.50
8.3.50.0140.00622.11
8.3.40.0040.01118.88
8.3.30.0000.01419.13
8.3.20.0090.00320.09
8.3.10.0080.00022.04
8.3.00.0040.00422.34
8.2.180.0140.00716.38
8.2.170.0140.00322.96
8.2.160.0170.00321.01
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0090.00926.16
8.2.120.0040.00419.23
8.2.110.0100.00722.29
8.2.100.0060.00619.52
8.2.90.0000.00719.32
8.2.80.0070.00017.97
8.2.70.0050.00517.50
8.2.60.0050.00318.03
8.2.50.0080.00018.07
8.2.40.0000.00818.09
8.2.30.0060.00318.04
8.2.20.0060.00317.78
8.2.10.0080.00019.35
8.2.00.0030.00617.74
8.1.280.0000.01425.92
8.1.270.0030.00622.02
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00423.92
8.1.230.0090.00319.10
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0000.00817.36
8.1.190.0060.00317.65
8.1.180.0040.00420.52
8.1.170.0040.00418.59
8.1.160.0000.00722.15
8.1.150.0040.00418.69
8.1.140.0090.00017.49
8.1.130.0030.00317.66
8.1.120.0030.00317.54
8.1.110.0060.00317.38
8.1.100.0030.00317.36
8.1.90.0000.00717.48
8.1.80.0000.00717.46
8.1.70.0040.00417.40
8.1.60.0030.00617.63
8.1.50.0080.00017.42
8.1.40.0050.00317.41
8.1.30.0080.00017.60
8.1.20.0030.00617.53
8.1.10.0000.00817.56
8.1.00.0040.00417.50
8.0.300.0000.00718.77
8.0.290.0000.00717.05
8.0.280.0070.00018.35
8.0.270.0080.00017.25
8.0.260.0060.00016.85
8.0.250.0030.00316.86
8.0.240.0030.00316.86
8.0.230.0030.00316.99
8.0.220.0000.00716.81
8.0.210.0000.00816.80
8.0.200.0060.00016.96
8.0.190.0000.00716.83
8.0.180.0040.00416.91
8.0.170.0040.00416.83
8.0.160.0040.00416.85
8.0.150.0000.00716.85
8.0.140.0040.00416.75
8.0.130.0030.00313.25
8.0.120.0000.00816.80
8.0.110.0000.00716.76
8.0.100.0000.00716.72
8.0.90.0040.00416.74
8.0.80.0120.00316.87
8.0.70.0050.00216.72
8.0.60.0050.00316.81
8.0.50.0040.00416.93
8.0.30.0080.01016.85
8.0.20.0110.01217.40
8.0.10.0040.00417.11
8.0.00.0090.00916.63
7.4.330.0000.00515.12
7.4.320.0060.00016.59
7.4.300.0000.00616.44
7.4.290.0000.00716.47
7.4.280.0000.00716.56
7.4.270.0000.00616.61
7.4.260.0030.00516.61
7.4.250.0070.00016.49
7.4.240.0020.00516.58
7.4.230.0040.00416.41
7.4.220.0100.01316.55
7.4.210.0080.01416.62
7.4.200.0080.00016.59
7.4.190.0000.00716.75
7.4.160.0120.00316.63
7.4.150.0030.01317.40
7.4.140.0100.01117.86
7.4.130.0150.00316.61
7.4.120.0130.00416.48
7.4.110.0150.00916.59
7.4.100.0150.00816.48
7.4.90.0090.00916.46
7.4.80.0070.01019.39
7.4.70.0150.00616.59
7.4.60.0110.00716.37
7.4.50.0050.00316.45
7.4.40.0040.01122.77
7.4.30.0070.01416.59
7.4.00.0080.00814.96
7.3.330.0050.00013.33
7.3.320.0020.00213.27
7.3.310.0080.00016.43
7.3.300.0070.00016.39
7.3.290.0030.01016.23
7.3.280.0120.00716.39
7.3.270.0160.00317.40
7.3.260.0130.01016.50
7.3.250.0090.01116.49
7.3.240.0130.00316.75
7.3.230.0110.00716.65
7.3.210.0070.01716.39
7.3.200.0110.00719.39
7.3.190.0070.01416.54
7.3.180.0110.00616.66
7.3.170.0060.00916.51
7.3.160.0090.00916.32
7.3.120.0060.00814.91
7.3.110.0030.01414.63
7.3.100.0100.00314.84
7.3.90.0100.00714.92
7.3.80.0030.01514.83
7.3.70.0040.00814.80
7.3.60.0040.01014.55
7.3.50.0070.00714.78
7.3.40.0000.01614.64
7.3.30.0100.00314.61
7.3.20.0070.00716.65
7.3.10.0100.00316.59
7.3.00.0080.00016.59
7.2.330.0080.01216.79
7.2.320.0030.01416.70
7.2.310.0130.00316.59
7.2.300.0100.00616.55
7.2.290.0040.01516.59
7.2.250.0160.00314.74
7.2.240.0130.00715.26
7.2.230.0070.00714.69
7.2.220.0090.00015.32
7.2.210.0000.01015.05
7.2.200.0030.01215.03
7.2.190.0070.00414.96
7.2.180.0040.01114.99
7.2.170.0120.00315.12
7.1.330.0070.00715.82
7.1.320.0090.00015.60
7.1.310.0000.01315.77
7.1.300.0060.00315.82
7.1.290.0040.01115.94
7.1.280.0000.00815.77
7.1.270.0070.00715.50
7.1.260.0090.00615.90
7.1.70.0030.00617.17
7.1.60.0160.00619.82
7.1.50.0070.00716.82
7.1.00.0100.07322.25
7.0.200.0090.00416.23
7.0.140.0070.07321.98
7.0.60.0070.08020.09
7.0.50.0030.06017.91
7.0.40.0170.07719.91
7.0.30.0370.07720.13
7.0.20.0330.07020.33
7.0.10.0100.06320.09
7.0.00.0130.07020.04
5.6.280.0100.06720.95
5.6.210.0170.06020.54
5.6.200.0070.03718.22
5.6.190.0030.04720.56
5.6.180.0200.05020.39
5.6.170.0200.05020.46
5.6.160.0030.05720.46
5.6.150.0000.05318.08
5.6.140.0000.06018.07
5.6.130.0130.07318.15
5.6.120.0100.09020.99
5.6.110.0070.09021.01
5.6.100.0070.08320.88
5.6.90.0070.08020.97
5.6.80.0030.08320.39
5.6.70.3530.03320.42
5.5.350.0200.05020.33
5.5.340.0230.06718.02
5.5.330.0170.07020.14
5.5.320.0230.04720.34
5.5.310.0200.05720.41
5.5.300.0070.07718.02
5.5.290.0030.04018.01
5.5.280.0130.05720.88
5.5.270.0070.04720.86
5.5.260.0130.08020.75
5.5.250.0100.08320.54
5.5.240.0230.03720.18
5.4.450.0330.04719.49
5.4.440.0030.07319.43
5.4.430.0100.06319.48
5.4.420.0200.04719.25
5.4.410.0170.05318.89
5.4.400.1030.00018.74
5.4.390.0770.00018.61
5.4.380.0370.05318.77
5.4.370.0170.05018.49
5.4.360.0100.05318.72
5.4.350.0330.04318.61
5.4.340.0200.06018.50
5.4.320.0070.03612.46
5.4.310.0080.04212.46
5.4.300.0090.03412.46
5.4.290.0050.04312.45
5.4.280.0060.03512.35
5.4.270.0060.04412.35
5.4.260.0070.05018.98
5.4.250.0070.05718.84
5.4.240.0100.05718.80
5.4.230.0070.05318.86
5.4.220.0100.05318.90
5.4.210.0070.06018.99
5.4.200.0070.05018.89
5.4.190.0030.05718.69
5.4.180.0100.05318.70
5.4.170.0100.05018.88
5.4.160.0130.07318.72
5.4.150.0100.05318.98
5.4.140.0030.07016.26
5.4.130.0130.06016.27
5.4.120.0100.04716.48
5.4.110.0230.04016.46
5.4.100.0170.06316.32
5.4.90.0070.05716.46
5.4.80.0100.04716.35
5.4.70.0000.05316.15
5.4.60.0030.07316.30
5.4.50.0070.05016.43
5.4.40.0070.06316.51
5.4.30.0130.06016.37
5.4.20.0170.03716.44
5.4.10.0130.05716.45
5.4.00.0100.04315.93
5.3.290.0040.04112.80
5.3.280.0100.05314.60
5.3.270.0100.05014.62
5.3.260.0030.05714.49
5.3.250.0100.07314.62
5.3.240.0070.06714.52
5.3.230.0070.06714.30
5.3.220.0130.07014.59
5.3.210.0070.05314.61
5.3.200.0130.05014.45
5.3.190.0070.05714.48
5.3.180.0100.07314.43
5.3.170.0130.04714.33
5.3.160.0030.05314.61
5.3.150.0170.06314.40
5.3.140.0130.06714.57
5.3.130.0100.05014.46
5.3.120.0070.07714.64
5.3.110.0030.05714.43
5.3.100.0100.05013.92
5.3.90.0100.05714.02
5.3.80.0030.05313.79
5.3.70.0070.05014.02
5.3.60.0200.04013.84
5.3.50.0130.06313.87
5.3.40.0200.03713.86
5.3.30.0170.06013.92
5.3.20.0030.05013.57
5.3.10.0100.05013.68
5.3.00.0070.05013.66
5.2.170.0000.04711.15
5.2.160.0000.04311.08
5.2.150.0000.04711.25
5.2.140.0030.04310.92
5.2.130.0100.03311.02
5.2.120.0030.06011.02
5.2.110.0030.05311.09
5.2.100.0030.04011.20
5.2.90.0030.04011.03
5.2.80.0100.03711.01
5.2.70.0070.06011.04
5.2.60.0100.03711.16
5.2.50.0070.04011.13
5.2.40.0070.05711.14
5.2.30.0030.06310.99
5.2.20.0000.05011.05
5.2.10.0070.03710.84
5.2.00.0170.04010.73
5.1.60.0100.04010.06
5.1.50.0030.03710.05
5.1.40.0000.03710.21
5.1.30.0070.03310.25
5.1.20.0030.03710.33
5.1.10.0000.0379.92
5.1.00.0030.03710.13
5.0.50.0070.0278.63
5.0.40.0130.0278.56
5.0.30.0070.0408.17
5.0.20.0000.0308.17
5.0.10.0000.0338.11
5.0.00.0030.0408.15
4.4.90.0000.0237.07
4.4.80.0000.0237.07
4.4.70.0000.0237.07
4.4.60.0070.0277.07
4.4.50.0000.0277.07
4.4.40.0100.0407.07
4.4.30.0030.0207.07
4.4.20.0000.0237.07
4.4.10.0030.0337.07
4.4.00.0030.0307.07
4.3.110.0000.0337.07
4.3.100.0070.0177.07
4.3.90.0000.0237.07
4.3.80.0000.0337.07
4.3.70.0000.0237.07
4.3.60.0070.0237.07
4.3.50.0000.0307.07
4.3.40.0100.0377.07
4.3.30.0070.0177.07
4.3.20.0070.0177.07
4.3.10.0030.0207.07
4.3.00.0130.0276.83

preferences:
51.72 ms | 401 KiB | 5 Q