3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string.='testing'; $string.='produk_kemeja'; $pos=0; $count=0; while(($pos = strpos($string, 'produk_',$pos)) !== FALSE){ if((strpos($string, 'produk_')) !== FALSE){ echo $string; } $count++; $pos++; // This ends } echo $count;

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.0140.00718.56
8.3.60.0110.01118.55
8.3.50.0110.00517.27
8.3.40.0040.01118.88
8.3.30.0120.00318.70
8.3.20.0000.00818.65
8.3.10.0040.00420.63
8.3.00.0030.00617.34
8.2.180.0060.01216.63
8.2.170.0120.00622.96
8.2.160.0070.00722.26
8.2.150.0050.00224.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00719.83
8.2.110.0030.00719.31
8.2.100.0040.00817.91
8.2.90.0060.00319.34
8.2.80.0090.00219.07
8.2.70.0080.00017.63
8.2.60.0040.00418.03
8.2.50.0030.00518.07
8.2.40.0060.00320.07
8.2.30.0030.00618.14
8.2.20.0040.00417.71
8.2.10.0050.00317.73
8.2.00.0050.00317.87
8.1.280.0120.00325.92
8.1.270.0000.00824.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0000.01220.95
8.1.220.0040.00417.74
8.1.210.0030.00618.94
8.1.200.0070.00317.22
8.1.190.0030.00617.41
8.1.180.0040.00418.10
8.1.170.0000.00718.76
8.1.160.0050.00218.70
8.1.150.0080.00318.61
8.1.140.0030.00617.29
8.1.130.0000.00617.84
8.1.120.0000.00717.37
8.1.110.0040.00417.38
8.1.100.0040.00417.32
8.1.90.0000.00717.38
8.1.80.0000.00817.29
8.1.70.0030.00317.34
8.1.60.0060.00317.50
8.1.50.0020.00517.36
8.1.40.0030.00517.48
8.1.30.0040.00417.59
8.1.20.0050.00317.42
8.1.10.0050.00317.55
8.1.00.0040.00417.29
8.0.300.0000.00720.07
8.0.290.0040.00416.75
8.0.280.0040.00418.43
8.0.270.0040.00417.16
8.0.260.0000.00616.86
8.0.250.0000.00816.89
8.0.240.0020.00516.96
8.0.230.0030.00316.86
8.0.220.0000.00716.84
8.0.210.0030.00316.93
8.0.200.0000.00716.90
8.0.190.0000.00816.91
8.0.180.0050.00316.90
8.0.170.0040.00416.79
8.0.160.0040.00416.73
8.0.150.0030.00616.70
8.0.140.0040.00416.90
8.0.130.0000.00513.33
8.0.120.0030.00516.75
8.0.110.0020.00516.94
8.0.100.0070.00016.73
8.0.90.0030.00516.86
8.0.80.0070.00716.88
8.0.70.0030.00316.84
8.0.60.0040.00416.73
8.0.50.0000.00716.84
8.0.30.0130.00816.95
8.0.20.0120.00617.09
8.0.10.0070.00016.97
8.0.00.0100.00816.75
7.4.330.0000.00613.09
7.4.320.0030.00316.64
7.4.300.0060.00016.48
7.4.290.0070.00016.51
7.4.280.0050.00516.57
7.4.270.0070.00016.62
7.4.260.0000.00513.25
7.4.250.0000.00816.57
7.4.240.0030.00516.56
7.4.230.0030.00316.39
7.4.220.0130.01016.59
7.4.210.0070.01116.52
7.4.200.0070.00016.66
7.4.190.0020.00516.64
7.4.160.0090.00916.48
7.4.150.0160.00317.07
7.4.140.0090.00817.21
7.4.130.0060.01516.53
7.4.120.0140.00516.43
7.4.110.0110.00716.62
7.4.100.0100.00716.58
7.4.90.0080.00816.36
7.4.80.0070.01018.63
7.4.70.0110.01416.43
7.4.60.0060.01316.45
7.4.50.0060.00318.82
7.4.40.0130.00321.69
7.4.30.0130.00316.50
7.4.00.0120.00014.73
7.3.330.0000.00613.16
7.3.320.0030.00313.21
7.3.310.0070.00016.39
7.3.300.0040.00416.43
7.3.290.0070.01316.37
7.3.280.0100.00716.31
7.3.270.0080.01117.07
7.3.260.0070.01118.24
7.3.250.0110.00816.36
7.3.240.0120.00416.51
7.3.230.0040.01216.35
7.3.210.0120.00816.27
7.3.200.0100.01019.39
7.3.190.0110.00716.43
7.3.180.0050.01116.70
7.3.170.0040.01816.34
7.3.160.0080.00816.34
7.3.120.0000.01415.09
7.3.10.0050.00816.73
7.3.00.0040.01116.64
7.2.330.0090.01016.56
7.2.320.0040.01516.63
7.2.310.0140.00916.79
7.2.300.0040.01316.82
7.2.290.0120.00616.67
7.2.130.0060.00916.90
7.2.120.0030.01317.05
7.2.110.0040.01416.88
7.2.100.0030.01016.86
7.2.90.0060.00917.03
7.2.80.0100.00616.84
7.2.70.0070.00416.98
7.2.60.0060.00816.84
7.2.50.0090.00917.00
7.2.40.0090.00616.92
7.2.30.0000.01017.04
7.2.20.0140.00316.64
7.2.10.0030.00917.02
7.2.00.0080.00518.32
7.1.250.0090.00015.56
7.1.200.0060.00615.80
7.1.100.0000.01218.33
7.1.70.0160.00717.03
7.1.60.0110.00719.40
7.1.50.0160.01034.92
7.1.00.0070.07322.45
7.0.200.0030.00516.80
7.0.140.0000.07722.00
7.0.120.0000.03322.02
7.0.60.0070.08019.96
7.0.50.0030.05017.72
7.0.40.0100.08020.09
7.0.30.0430.04020.09
7.0.20.0270.07720.17
7.0.10.0170.04320.33
7.0.00.0070.09020.20
5.6.280.0000.07721.09
5.6.210.0070.07720.51
5.6.200.0030.08018.12
5.6.190.0000.06020.60
5.6.180.0300.07720.42
5.6.170.0330.07320.40
5.6.160.0100.08020.51
5.6.150.0030.07318.16
5.6.140.0070.06018.07
5.6.130.0100.06718.07
5.6.120.0130.04020.89
5.6.110.0100.07021.11
5.6.100.0170.06721.03
5.6.90.0030.05320.97
5.6.80.0030.08320.43
5.6.70.4300.04720.39
5.5.350.0270.06720.41
5.5.340.0070.05017.88
5.5.330.0170.07720.56
5.5.320.0000.04720.23
5.5.310.0400.06720.13
5.5.300.0130.06717.95
5.5.290.0070.06717.92
5.5.280.0100.08320.68
5.5.270.0030.04320.89
5.5.260.0200.07720.87
5.5.250.0130.07020.57
5.5.240.0130.06320.18
5.4.450.0000.04319.47
5.4.440.0000.05019.46
5.4.430.0030.04019.23
5.4.420.0070.03319.50
5.4.410.0030.03718.98
5.4.400.0070.04019.04
5.4.390.0030.03719.14
5.4.380.0100.03019.17
5.4.370.0070.03719.08
5.4.360.0070.03319.08
5.4.350.0070.05018.92
5.4.340.0030.03719.15
5.4.320.0100.06319.18
5.4.310.0070.04019.16
5.4.300.0100.07318.82
5.4.290.0030.04719.12
5.4.280.0000.08318.80
5.4.270.0100.04019.15
5.4.260.0000.04018.91
5.4.250.0100.06019.17
5.4.240.0170.05718.78
5.4.230.0030.04318.80
5.4.220.0030.08019.15
5.4.210.0170.04018.78
5.4.200.0070.03719.07
5.4.190.0030.04718.91
5.4.180.0070.07319.17
5.4.170.0030.07019.14
5.4.160.0100.07319.12
5.4.150.0030.07019.06
5.4.140.0030.05716.27
5.4.130.0030.04316.33
5.4.120.0100.07316.26
5.4.110.0000.04316.23
5.4.100.0030.06316.25
5.4.90.0000.04016.23
5.4.80.0030.04316.24
5.4.70.0070.04316.39
5.4.60.0100.07316.38
5.4.50.0030.03716.24
5.4.40.0070.05316.57
5.4.30.0070.04316.13
5.4.20.0100.07016.38
5.4.10.0030.04716.38
5.4.00.0000.06315.71
5.3.290.0100.05014.56
5.3.280.0070.03314.55
5.3.270.0130.03314.53
5.3.260.0030.04014.70
5.3.250.0170.07714.53
5.3.240.0100.04714.54
5.3.230.0130.07014.56
5.3.220.0030.07314.36
5.3.210.0070.05314.51
5.3.200.0130.06714.58
5.3.190.0030.07714.50
5.3.180.0000.06014.65
5.3.170.0070.03314.49
5.3.160.0070.06714.66
5.3.150.0030.06314.54
5.3.140.0070.07014.48
5.3.130.0100.05314.47
5.3.120.0000.04014.44
5.3.110.0100.07314.49
5.3.100.0030.03714.00
5.3.90.0130.06013.95
5.3.80.0070.05713.80
5.3.70.0030.04713.95
5.3.60.0030.04013.97
5.3.50.0130.06713.76
5.3.40.0030.08013.96
5.3.30.0000.07713.84
5.3.20.0070.06013.53
5.3.10.0000.07713.45
5.3.00.0030.04313.45
5.2.170.0030.07011.32
5.2.160.0030.04311.02
5.2.150.0070.03010.96
5.2.140.0070.04011.13
5.2.130.0070.06311.03
5.2.120.0000.04710.96
5.2.110.0030.04310.99
5.2.100.0070.06311.08
5.2.90.0100.03311.09
5.2.80.0030.03711.18
5.2.70.0070.02711.25
5.2.60.0070.02710.93
5.2.50.0030.04011.01
5.2.40.0070.06010.91
5.2.30.0130.05710.90
5.2.20.0000.03310.84
5.2.10.0070.05310.89
5.2.00.0030.03010.75
5.1.60.0000.05310.13
5.1.50.0100.04310.13
5.1.40.0030.0339.94
5.1.30.0030.05710.36
5.1.20.0100.05710.40
5.1.10.0070.03710.08
5.1.00.0000.06010.01
5.0.50.0030.0278.60
5.0.40.0030.0208.46
5.0.30.0000.0338.17
5.0.20.0030.0208.17
5.0.10.0000.0438.21
5.0.00.0100.0578.20
4.4.90.0000.0177.87
4.4.80.0000.0337.87
4.4.70.0030.0337.87
4.4.60.0000.0277.87
4.4.50.0030.0337.87
4.4.40.0070.0307.87
4.4.30.0000.0177.87
4.4.20.0030.0337.87
4.4.10.0000.0237.87
4.4.00.0000.0277.87
4.3.110.0030.0137.87
4.3.100.0000.0377.87
4.3.90.0030.0337.87
4.3.80.0070.0337.87
4.3.70.0000.0407.87
4.3.60.0030.0377.87
4.3.50.0030.0307.87
4.3.40.0100.0477.87
4.3.30.0070.0277.87
4.3.20.0000.0177.87
4.3.10.0000.0407.87
4.3.00.0000.0277.87

preferences:
54.29 ms | 401 KiB | 5 Q