3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string4="Featuring"; $pos="Featuring"; while(($pos = strpos($string, ',',$pos)) !== FALSE){ $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.60.0030.01716.50
8.3.50.0150.00721.92
8.3.40.0100.01018.88
8.3.30.0040.01219.00
8.3.20.0050.00320.16
8.3.10.0050.00323.65
8.3.00.0030.00619.23
8.2.180.0060.01618.67
8.2.170.0160.00422.96
8.2.160.0030.01020.52
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00422.27
8.2.110.0060.00322.25
8.2.100.0070.00417.78
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0030.00517.63
8.2.60.0000.00817.80
8.2.50.0000.00818.07
8.2.40.0030.00618.03
8.2.30.0040.00417.96
8.2.20.0040.00417.73
8.2.10.0060.00319.91
8.2.00.0030.00717.64
8.1.280.0100.01025.92
8.1.270.0000.00823.84
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00424.02
8.1.230.0070.00719.16
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00817.41
8.1.180.0000.00818.10
8.1.170.0080.00018.56
8.1.160.0000.00721.94
8.1.150.0040.00418.56
8.1.140.0070.00017.39
8.1.130.0000.00717.76
8.1.120.0000.00717.37
8.1.110.0000.00717.39
8.1.100.0030.00317.28
8.1.90.0030.00517.29
8.1.80.0000.00717.40
8.1.70.0000.00717.23
8.1.60.0040.00417.39
8.1.50.0000.00817.37
8.1.40.0070.00017.49
8.1.30.0000.00817.56
8.1.20.0030.00517.68
8.1.10.0000.00817.44
8.1.00.0000.00817.57
8.0.300.0040.00418.77
8.0.290.0040.00416.92
8.0.280.0000.00718.48
8.0.270.0000.00717.17
8.0.260.0030.00316.68
8.0.250.0000.00716.98
8.0.240.0050.00216.96
8.0.230.0030.00516.84
8.0.220.0040.00416.91
8.0.210.0000.00716.89
8.0.200.0000.00616.98
8.0.190.0000.00716.98
8.0.180.0000.00716.79
8.0.170.0030.00516.82
8.0.160.0040.00416.77
8.0.150.0040.00416.83
8.0.140.0060.00316.84
8.0.130.0060.00013.37
8.0.120.0040.00416.88
8.0.110.0000.00716.84
8.0.100.0000.00716.95
8.0.90.0050.00316.76
8.0.80.0110.00316.91
8.0.70.0040.00416.95
8.0.60.0040.00416.77
8.0.50.0070.00016.90
8.0.30.0080.01317.15
8.0.20.0130.00717.40
8.0.10.0040.00417.07
8.0.00.0110.00816.67
7.4.330.0020.00215.07
7.4.320.0000.00716.44
7.4.300.0000.00616.48
7.4.290.0030.00316.40
7.4.280.0030.00316.43
7.4.270.0030.00316.51
7.4.260.0030.00316.57
7.4.250.0000.00816.45
7.4.240.0030.00316.56
7.4.230.0040.00416.70
7.4.220.0070.01016.61
7.4.210.0100.00516.59
7.4.200.0030.00516.56
7.4.190.0030.00316.50
7.4.160.0090.00616.37
7.4.150.0040.01417.40
7.4.140.0120.00517.86
7.4.130.0120.00716.55
7.4.120.0130.00716.58
7.4.110.0100.00716.42
7.4.100.0040.01816.50
7.4.90.0100.00616.42
7.4.80.0060.01619.39
7.4.70.0120.00316.58
7.4.60.0080.00816.40
7.4.50.0040.00016.32
7.4.40.0070.01122.77
7.4.30.0190.00416.63
7.4.00.0060.01015.10
7.3.330.0050.00013.02
7.3.320.0030.00312.98
7.3.310.0000.00716.35
7.3.300.0060.00016.30
7.3.290.0100.00516.28
7.3.280.0070.01216.32
7.3.270.0090.00917.40
7.3.260.0170.00716.64
7.3.250.0150.00516.47
7.3.240.0140.00316.41
7.3.230.0110.00616.39
7.3.210.0100.00716.38
7.3.200.0110.00519.39
7.3.190.0130.00316.44
7.3.180.0060.00916.45
7.3.170.0110.00616.32
7.3.160.0100.00716.34
7.3.120.0060.00915.01
7.3.110.0080.00615.00
7.3.100.0110.00314.78
7.3.90.0070.00714.76
7.3.80.0030.00914.93
7.3.70.0030.01014.44
7.3.60.0080.00514.89
7.3.50.0060.01314.89
7.3.40.0000.01714.96
7.3.30.0040.01414.86
7.3.20.0130.00016.79
7.3.10.0040.00716.69
7.3.00.0040.00816.55
7.2.330.0100.00716.54
7.2.320.0100.01316.68
7.2.310.0160.00016.46
7.2.300.0030.01816.38
7.2.290.0060.01116.73
7.2.250.0030.01414.98
7.2.240.0080.00815.30
7.2.230.0100.00714.94
7.2.220.0100.00314.98
7.2.210.0120.00315.13
7.2.200.0060.00615.09
7.2.190.0000.01514.68
7.2.180.0070.00714.91
7.2.170.0040.01414.93
7.2.60.0080.00816.95
7.2.00.0040.01119.54
7.1.330.0030.01015.61
7.1.320.0030.00715.74
7.1.310.0120.00615.56
7.1.300.0070.00715.86
7.1.290.0150.00315.46
7.1.280.0030.01415.60
7.1.270.0040.01215.89
7.1.260.0000.01315.84
7.1.200.0000.01015.85
7.1.100.0200.00617.98
7.1.70.0000.00916.89
7.1.60.0070.01819.33
7.1.50.0060.00617.01
7.1.00.0030.07722.40
7.0.200.0000.00716.93
7.0.140.0070.06722.15
7.0.60.0100.03321.82
7.0.50.0070.08017.81
7.0.40.0070.04319.90
7.0.30.0470.07320.20
7.0.20.0230.05019.99
7.0.10.0070.05020.30
7.0.00.0100.03320.19
5.6.280.0070.07021.14
5.6.210.0070.06020.53
5.6.200.0130.03318.15
5.6.190.0070.06020.43
5.6.180.0000.06320.41
5.6.170.0300.07720.71
5.6.160.0130.04720.51
5.6.150.0130.07318.21
5.6.140.0100.08318.16
5.6.130.0130.06718.18
5.6.120.0030.08721.09
5.6.110.0070.08021.11
5.6.100.0100.05321.00
5.6.90.0000.08721.03
5.6.80.0130.07020.35
5.5.350.0330.07320.43
5.5.340.0030.05018.03
5.5.330.0100.03720.12
5.5.320.0330.05720.12
5.5.310.0170.05020.20
5.5.300.0030.06717.91
5.5.290.0100.08018.02
5.5.280.0200.07720.79
5.5.270.0070.07320.64
5.5.260.0030.04020.86
5.5.250.0030.09020.61
5.5.240.0270.07320.15
5.4.450.0830.05019.10
5.4.440.0470.06019.19
5.4.430.0200.06019.25
5.4.420.0630.05719.24
5.4.410.0270.04719.41
5.4.400.0630.05719.10
5.4.390.0600.05319.05
5.4.380.0270.06318.74
5.4.370.0200.04718.59
5.4.360.0100.05718.77
5.4.350.0270.05718.61
5.4.340.0170.05018.63
5.4.320.0060.03612.45
5.4.310.0080.03812.45
5.4.300.0050.03712.45
5.4.290.0040.03912.45
5.4.280.0080.03312.35
5.4.270.0040.04112.34
5.4.260.0050.04112.35
5.4.250.0080.03512.35
5.4.240.0050.03612.34
5.4.230.0060.03812.34
5.4.220.0100.04112.34
5.4.210.0060.03512.34
5.4.200.0080.03612.34
5.4.190.0140.04612.32
5.4.180.0200.04112.32
5.4.170.0160.04612.32
5.4.160.0340.05812.32
5.4.150.0230.04312.32
5.4.140.0140.04512.00
5.4.130.0260.06411.98
5.4.120.0160.04211.95
5.4.110.0180.04211.94
5.4.100.0170.04411.94
5.4.90.0180.04111.94
5.4.80.0430.11011.94
5.4.70.0260.06311.94
5.4.60.0150.04211.94
5.4.50.0140.04311.94
5.4.40.0190.04011.93
5.4.30.0160.04311.92
5.4.20.0110.04511.93
5.4.10.0180.03911.93
5.4.00.0120.04411.41
5.3.290.0080.03712.80
5.3.280.0060.03712.71
5.3.270.0140.04612.72
5.3.260.0170.04412.72
5.3.250.0270.06612.72
5.3.240.0170.04612.72
5.3.230.0150.04812.71
5.3.220.0290.09412.68
5.3.210.0190.04712.68
5.3.200.0170.04412.68
5.3.190.0220.04312.68
5.3.180.0180.04412.67
5.3.170.0190.04412.67
5.3.160.0140.04612.67
5.3.150.0160.04412.68
5.3.140.0170.04212.66
5.3.130.0170.04312.66
5.3.120.0110.04912.66
5.3.110.0200.04112.66
5.3.100.0150.04412.12
5.3.90.0320.06012.09
5.3.80.0120.04712.07
5.3.70.0170.04412.07
5.3.60.0170.04212.07
5.3.50.0130.04612.00
5.3.40.0140.04412.00
5.3.30.0200.06811.94
5.3.20.0160.04111.71
5.3.10.0160.04111.67
5.3.00.0190.03611.66
5.2.170.0140.0339.16
5.2.160.0100.0379.16
5.2.150.0110.0359.15
5.2.140.0120.0349.16
5.2.130.0100.0359.12
5.2.120.0290.0479.11
5.2.110.0170.0309.12
5.2.100.0100.0389.12
5.2.90.0210.0589.12
5.2.80.0160.0339.11
5.2.70.0190.0299.11
5.2.60.0120.0379.07
5.2.50.0160.0349.04
5.2.40.0140.0399.02
5.2.30.0120.0458.98
5.2.20.0130.0348.98
5.2.10.0120.0378.89
5.2.00.0180.0398.76
5.1.60.0140.0328.04
5.1.50.0140.0318.04
5.1.40.0170.0268.03
5.1.30.0160.0288.37
5.1.20.0130.0298.39
5.1.10.0090.0338.12
5.1.00.0070.0348.11
5.0.50.0080.0266.60
5.0.40.0110.0226.46
5.0.30.0120.0346.27
5.0.20.0090.0236.24
5.0.10.0120.0196.21
5.0.00.0080.0376.21
4.4.90.0060.0184.78
4.4.80.0070.0174.76
4.4.70.0060.0194.75
4.4.60.0060.0194.76
4.4.50.0050.0194.77
4.4.40.0040.0314.71
4.4.30.0090.0174.76
4.4.20.0050.0204.84
4.4.10.0090.0174.85
4.4.00.0090.0314.76
4.3.110.0060.0184.67
4.3.100.0090.0154.67
4.3.90.0070.0174.63
4.3.80.0080.0274.58
4.3.70.0060.0194.63
4.3.60.0030.0214.63
4.3.50.0170.0374.63
4.3.40.0060.0274.53
4.3.30.0040.0193.28
4.3.20.0050.0173.27
4.3.10.0060.0163.22
4.3.00.0170.0307.84

preferences:
45.12 ms | 401 KiB | 5 Q