3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "arc"; $string = "Marcus"; $rest = $string; do { $rest = stristr($rest,$s); echo "rest: $rest\n"; $s3 = substr($rest,0,count($s)+1); $string = str_replace($s3,"<$s3>",$string); echo "s3: $s3\n"; $rest = substr($rest,count($s)+1); echo "rest: $rest\n"; echo "=======\n"; } while ($rest != false); echo "string: $string\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.0130.00616.63
8.3.60.0070.01018.43
8.3.50.0120.00721.92
8.3.40.0070.00718.70
8.3.30.0000.01418.84
8.3.20.0030.00518.82
8.3.10.0080.00021.18
8.3.00.0080.00023.53
8.2.180.0070.01116.63
8.2.170.0110.00422.96
8.2.160.0070.00720.38
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0070.00021.00
8.2.110.0060.00320.16
8.2.100.0060.00618.03
8.2.90.0030.00619.21
8.2.80.0080.00017.97
8.2.70.0030.00617.63
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0050.00318.03
8.2.30.0030.00519.91
8.2.20.0040.00417.69
8.2.10.0040.00417.83
8.2.00.0030.00517.86
8.1.280.0120.00625.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00322.52
8.1.230.0110.00020.88
8.1.220.0050.00318.77
8.1.210.0040.00419.04
8.1.200.0060.00317.35
8.1.190.0040.00419.31
8.1.180.0000.00818.10
8.1.170.0030.00518.64
8.1.160.0040.00418.88
8.1.150.0040.00418.62
8.1.140.0040.00417.42
8.1.130.0030.00317.86
8.1.120.0040.00417.45
8.1.110.0060.00317.46
8.1.100.0070.00017.38
8.1.90.0030.00417.34
8.1.80.0040.00417.38
8.1.70.0070.00017.45
8.1.60.0120.00017.65
8.1.50.0040.00417.48
8.1.40.0050.00317.55
8.1.30.0050.00317.66
8.1.20.0050.00217.59
8.1.10.0060.00317.57
8.1.00.0060.00517.54
8.0.300.0040.00420.11
8.0.290.0070.00017.05
8.0.280.0070.00018.36
8.0.270.0000.00817.25
8.0.260.0040.00416.89
8.0.250.0040.00416.98
8.0.240.0000.00817.03
8.0.230.0040.00417.00
8.0.220.0040.00416.86
8.0.210.0040.00416.84
8.0.200.0000.00817.02
8.0.190.0080.00016.96
8.0.180.0040.00416.96
8.0.170.0000.00816.98
8.0.160.0070.00017.02
8.0.150.0040.00416.94
8.0.140.0000.00816.90
8.0.130.0060.00013.33
8.0.120.0000.00716.89
8.0.110.0030.00316.95
8.0.100.0070.00016.86
8.0.90.0040.00416.89
8.0.80.0040.01116.82
8.0.70.0000.00716.86
8.0.60.0040.00417.02
8.0.50.0030.00516.78
8.0.30.0090.01417.16
8.0.20.0120.01017.40
8.0.10.0000.00717.08
8.0.00.0110.01116.73
7.4.330.0000.00614.79
7.4.320.0030.00316.52
7.4.300.0030.00316.60
7.4.290.0030.00316.58
7.4.280.0000.00716.42
7.4.270.0040.00416.45
7.4.260.0000.00513.38
7.4.250.0040.00416.48
7.4.240.0000.00616.51
7.4.230.0030.00316.62
7.4.220.0100.01316.50
7.4.210.0100.00516.58
7.4.200.0070.00016.47
7.4.190.0030.00316.68
7.4.160.0030.01316.37
7.4.150.0080.01617.40
7.4.140.0100.00817.86
7.4.130.0100.00616.46
7.4.120.0070.01016.56
7.4.110.0100.00716.55
7.4.100.0110.00616.51
7.4.90.0110.00616.61
7.4.80.0040.01219.37
7.4.70.0140.00316.67
7.4.60.0090.00916.63
7.4.50.0000.00716.31
7.4.40.0060.00922.27
7.4.30.0070.01016.53
7.4.00.0100.00714.77
7.3.330.0050.00013.11
7.3.320.0000.00713.23
7.3.310.0000.00716.41
7.3.300.0000.00716.37
7.3.290.0110.00416.31
7.3.280.0110.00716.33
7.3.270.0030.01417.40
7.3.260.0090.00918.24
7.3.250.0060.01016.39
7.3.240.0030.01416.36
7.3.230.0130.01016.39
7.3.210.0090.01216.45
7.3.200.0100.01019.39
7.3.190.0070.01016.43
7.3.180.0030.01316.38
7.3.170.0050.01016.57
7.3.160.0080.00816.38
7.3.120.0090.00614.65
7.2.330.0100.00716.65
7.2.320.0070.01316.63
7.2.310.0130.00616.47
7.2.300.0080.00816.50
7.2.290.0090.00816.89
7.2.80.0040.01116.77
7.2.60.0040.00816.81
7.2.00.0000.00919.16
7.1.200.0030.00715.52
7.1.100.0040.00717.91
7.1.70.0050.00316.84
7.1.60.0000.01819.40
7.1.50.0130.01616.87
7.1.00.0130.06022.57
7.0.200.0000.00716.79
7.0.140.0070.07022.12
7.0.120.0070.03322.00
7.0.110.0000.03722.11
7.0.100.0000.04021.91
7.0.90.0000.04721.93
7.0.80.0000.03321.92
7.0.70.0030.03021.97
7.0.60.0000.03322.03
7.0.50.0000.03722.14
7.0.40.0000.03320.15
7.0.30.0030.04020.13
7.0.20.0000.04319.99
7.0.10.0000.04020.09
7.0.00.0030.04020.15
5.6.280.0000.07720.74
5.6.270.0000.03720.85
5.6.260.0030.03020.93
5.6.250.0000.03320.79
5.6.240.0000.03720.89
5.6.230.0030.03320.93
5.6.220.0000.03320.93
5.6.210.0000.03320.86
5.6.200.0000.04320.86
5.6.190.0030.04021.00
5.6.180.0030.06020.78
5.6.170.0000.03720.86
5.6.160.0070.03720.76
5.6.150.0000.04020.86
5.6.140.0070.03721.02
5.6.130.0000.04320.92
5.6.120.0030.04020.68
5.6.110.0000.04320.88
5.6.100.0000.04320.97
5.6.90.0030.04020.74
5.6.80.0070.03320.16
5.6.70.0000.04020.32
5.6.60.0000.04020.27
5.6.50.0030.03720.13
5.6.40.0000.06020.39
5.6.30.0000.04320.31
5.6.20.0000.04020.13
5.6.10.0070.05720.36
5.6.00.0070.04320.36
5.5.380.0070.02717.58
5.5.370.0000.03317.61
5.5.360.0000.04017.62
5.5.350.0000.03317.62
5.5.340.0000.03317.87
5.5.330.0030.03317.99
5.5.320.0000.04318.25
5.5.310.0000.04017.89
5.5.300.0030.05718.16
5.5.290.0030.04317.86
5.5.280.0000.03318.16
5.5.270.0030.05018.11
5.5.260.0070.02718.00
5.5.250.0000.04017.91
5.5.240.0000.04017.21
5.5.230.0000.04317.14
5.5.220.0000.04017.40
5.5.210.0030.03317.54
5.5.200.0070.05317.48
5.5.190.0000.04017.24
5.5.180.0030.03717.12
5.5.160.0000.04017.24
5.5.150.0130.07317.33
5.5.140.0030.03317.20
5.5.130.0100.04717.21
5.5.120.0000.04017.50
5.5.110.0130.02717.18
5.5.100.0000.04017.28
5.5.90.0070.03317.37
5.5.80.0030.03717.35
5.5.70.0000.07017.26
5.5.60.0030.03317.08
5.5.50.0030.03317.09
5.5.40.0000.03717.10
5.5.30.0030.04717.36
5.5.20.0000.03317.00
5.5.10.0100.06717.37
5.5.00.0070.03317.36
5.4.450.0000.04019.26
5.4.440.0030.03719.16
5.4.430.0030.03719.22
5.4.420.0000.04019.43
5.4.410.0030.08019.40
5.4.400.0030.04318.92
5.4.390.0100.03019.11
5.4.380.0000.03718.95
5.4.370.0000.03719.12
5.4.360.0000.06719.11
5.4.350.0030.03318.86
5.4.340.0000.05319.12
5.4.320.0000.04018.96
5.4.310.0030.03719.22
5.4.300.0030.04718.96
5.4.290.0030.03318.92
5.4.280.0070.05019.04
5.4.270.0070.03018.91
5.4.260.0070.03319.21
5.4.250.0000.03718.95
5.4.240.0000.03718.94
5.4.230.0000.03018.86
5.4.220.0030.03718.93
5.4.210.0070.03019.19
5.4.200.0000.06719.03
5.4.190.0030.05019.10
5.4.180.0030.04719.10
5.4.170.0000.03318.94
5.4.160.0030.03719.09
5.4.150.0000.06319.09
5.4.140.0000.08716.23
5.4.130.0070.03016.51
5.4.120.0000.04316.31
5.4.110.0070.03716.32
5.4.100.0030.03316.08
5.4.90.0030.06716.50
5.4.80.0030.03316.16
5.4.70.0000.03716.33
5.4.60.0070.03016.43
5.4.50.0000.03716.20
5.4.40.0030.03316.25
5.4.30.0000.03016.34
5.4.20.0000.04316.26
5.4.10.0000.05716.28
5.4.00.0000.03715.65
5.3.290.0030.07714.49
5.3.280.0000.04014.55
5.3.270.0070.04014.47
5.3.260.0070.03314.66
5.3.250.0000.04314.69
5.3.240.0000.04014.39
5.3.230.0000.05314.66
5.3.220.0000.05014.56
5.3.210.0030.03714.66
5.3.200.0030.03314.56
5.3.190.0000.03714.43
5.3.180.0000.03714.46
5.3.170.0000.06314.58
5.3.160.0030.03314.58
5.3.150.0030.03314.42
5.3.140.0000.03714.38
5.3.130.0030.04714.41
5.3.120.0000.03714.62
5.3.110.0030.04014.45
5.3.100.0030.03313.98
5.3.90.0000.03713.91
5.3.80.0100.02713.86
5.3.70.0000.03714.07
5.3.60.0000.03714.09
5.3.50.0000.03713.88
5.3.40.0030.03013.88
5.3.30.0000.04013.81
5.3.20.0000.03313.58
5.3.10.0000.02713.54
5.3.00.0030.02713.56
5.2.170.0000.02311.16
5.2.160.0030.02711.20
5.2.150.0030.02711.05
5.2.140.0000.03011.03
5.2.130.0000.02311.05
5.2.120.0000.02311.02
5.2.110.0000.02311.11
5.2.100.0000.03011.04
5.2.90.0000.02711.09
5.2.80.0000.02710.88
5.2.70.0030.02710.88
5.2.60.0000.02311.07
5.2.50.0000.02311.04
5.2.40.0000.02310.92
5.2.30.0030.02010.75
5.2.20.0030.02710.95
5.2.10.0000.02710.93
5.2.00.0000.02310.79
5.1.60.0000.0209.97
5.1.50.0000.0279.89
5.1.40.0000.03010.05
5.1.30.0030.02010.47
5.1.20.0000.02010.35
5.1.10.0000.02010.23
5.1.00.0000.0279.98
5.0.50.0000.0209.82
5.0.40.0000.0179.82
5.0.30.0030.0309.82
5.0.20.0000.0209.82
5.0.10.0000.0179.82
5.0.00.0000.0339.82
4.4.90.0000.0139.82
4.4.80.0000.0239.82
4.4.70.0030.0109.82
4.4.60.0000.0139.82
4.4.50.0000.0179.82
4.4.40.0000.0209.82
4.4.30.0000.0139.82
4.4.20.0000.0139.82
4.4.10.0030.0179.82
4.4.00.0030.0179.82
4.3.110.0000.0139.82
4.3.100.0000.0209.82
4.3.90.0030.0139.82
4.3.80.0000.0239.82
4.3.70.0030.0109.82
4.3.60.0000.0109.82
4.3.50.0000.0139.82
4.3.40.0000.0239.82
4.3.30.0000.0139.82
4.3.20.0000.0179.82
4.3.10.0000.0179.82
4.3.00.0000.0139.82

preferences:
40.16 ms | 401 KiB | 5 Q