3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo strlen("abcd"); $s = "arc"; echo "count: " . strlen($s) . "\n"; $string = "Marcus"; $rest = $string; do { $rest = stristr($rest,$s); echo "rest: $rest\n"; $s3 = substr($rest,0,strlen($s)+1); $string = str_replace($s3,"<$s3>",$string); echo "s3: $s3\n"; $rest = substr($rest,strlen($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.0090.01216.63
8.3.60.0110.00416.38
8.3.50.0140.00717.16
8.3.40.0150.00618.58
8.3.30.0060.01218.42
8.3.20.0080.00018.37
8.3.10.0040.00420.36
8.3.00.0080.00019.02
8.2.180.0060.01016.63
8.2.170.0140.00722.96
8.2.160.0130.00720.99
8.2.150.0100.00624.18
8.2.140.0030.00624.66
8.2.130.0000.00826.16
8.2.120.0080.00019.20
8.2.110.0080.00020.53
8.2.100.0110.00017.78
8.2.90.0030.00519.27
8.2.80.0020.00519.28
8.2.70.0030.00517.63
8.2.60.0040.00417.93
8.2.50.0030.00518.07
8.2.40.0040.00418.28
8.2.30.0040.00417.91
8.2.20.0000.00717.71
8.2.10.0000.00717.80
8.2.00.0070.00017.59
8.1.280.0170.00725.92
8.1.270.0070.00024.66
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0090.00323.88
8.1.230.0080.00321.00
8.1.220.0050.00318.77
8.1.210.0080.00019.04
8.1.200.0090.00017.22
8.1.190.0030.00517.40
8.1.180.0000.00818.10
8.1.170.0050.00318.74
8.1.160.0050.00218.88
8.1.150.0040.00418.60
8.1.140.0070.00017.43
8.1.130.0000.00717.71
8.1.120.0030.00417.45
8.1.110.0000.00717.45
8.1.100.0000.00717.30
8.1.90.0070.00017.44
8.1.80.0000.00717.34
8.1.70.0030.00317.37
8.1.60.0040.00417.63
8.1.50.0030.00617.33
8.1.40.0080.00017.42
8.1.30.0000.00717.63
8.1.20.0040.00417.64
8.1.10.0030.00617.52
8.1.00.0040.00417.35
8.0.300.0030.00619.81
8.0.290.0000.00716.63
8.0.280.0030.00518.48
8.0.270.0000.00717.24
8.0.260.0030.00316.74
8.0.250.0000.00816.84
8.0.240.0000.00816.82
8.0.230.0000.00816.82
8.0.220.0030.00316.91
8.0.210.0000.00716.95
8.0.200.0000.00716.82
8.0.190.0000.00816.87
8.0.180.0060.00316.92
8.0.170.0030.00616.89
8.0.160.0030.00316.78
8.0.150.0000.00916.78
8.0.140.0100.00016.80
8.0.130.0030.00313.32
8.0.120.0030.00616.88
8.0.110.0070.00016.82
8.0.100.0030.00316.85
8.0.90.0030.00516.88
8.0.80.0120.00916.94
8.0.70.0030.00516.77
8.0.60.0000.00716.98
8.0.50.0030.00316.74
8.0.30.0070.01217.10
8.0.20.0140.00517.07
8.0.10.0040.00416.87
8.0.00.0100.01116.89
7.4.330.0020.00212.98
7.4.320.0050.00216.64
7.4.300.0000.00616.48
7.4.290.0070.00316.45
7.4.280.0000.00716.60
7.4.270.0080.00016.44
7.4.260.0000.00613.27
7.4.250.0040.00416.50
7.4.240.0050.00216.51
7.4.230.0000.00716.39
7.4.220.0100.00516.37
7.4.210.0100.00416.49
7.4.200.0080.00016.49
7.4.190.0030.00316.56
7.4.160.0060.00916.27
7.4.150.0030.01616.54
7.4.140.0090.01216.48
7.4.130.0120.00916.36
7.4.120.0110.00616.50
7.4.110.0130.00416.34
7.4.100.0080.00816.45
7.4.90.0160.00316.55
7.4.80.0100.01319.39
7.4.70.0200.00316.66
7.4.60.0060.00916.38
7.4.50.0040.00416.36
7.4.40.0060.00916.34
7.4.30.0060.01016.46
7.4.00.0060.01114.96
7.3.330.0030.00313.15
7.3.320.0050.00013.14
7.3.310.0030.00416.12
7.3.300.0030.00316.27
7.3.290.0090.00916.29
7.3.280.0040.01116.26
7.3.270.0140.00316.57
7.3.260.0070.01016.55
7.3.250.0110.00716.38
7.3.240.0080.00816.50
7.3.230.0090.01216.31
7.3.210.0120.01216.46
7.3.200.0100.01016.24
7.3.190.0000.01716.49
7.3.180.0100.00716.25
7.3.170.0090.01216.34
7.3.160.0050.01016.30
7.3.120.0050.01014.74
7.3.110.0120.00314.92
7.3.100.0060.00914.91
7.3.90.0000.01314.98
7.3.80.0060.00614.75
7.3.70.0030.00614.95
7.3.60.0000.01914.79
7.3.50.0040.00814.94
7.3.40.0070.00714.85
7.3.30.0040.00714.80
7.3.20.0070.00316.74
7.3.10.0090.00616.76
7.3.00.0100.00316.64
7.2.330.0120.00616.73
7.2.320.0170.00616.68
7.2.310.0110.01116.67
7.2.300.0090.01216.81
7.2.290.0070.01016.70
7.2.250.0060.00915.10
7.2.240.0060.01314.99
7.2.230.0040.00815.20
7.2.220.0030.00614.91
7.2.210.0040.01115.00
7.2.200.0090.00615.11
7.2.190.0000.01115.13
7.2.180.0040.01515.07
7.2.170.0030.00914.81
7.2.00.0030.01019.22
7.1.330.0090.00615.77
7.1.320.0000.00815.54
7.1.310.0000.00815.80
7.1.300.0070.00415.51
7.1.290.0100.00615.67
7.1.280.0040.00415.84
7.1.270.0030.01015.90
7.1.260.0040.00815.80
7.1.100.0080.00417.96
7.1.70.0040.00417.03
7.1.60.0140.01119.40
7.1.50.0030.01617.07
7.1.00.0070.03022.47
7.0.200.0110.00416.74
7.0.140.0000.07322.00
7.0.120.0000.06722.19
7.0.60.0130.07019.90
7.0.50.0000.06017.88
7.0.40.0130.03717.79
7.0.30.0070.08717.78
7.0.20.0030.08317.79
7.0.10.0130.06717.74
7.0.00.0170.07717.64
5.6.210.0130.07320.46
5.6.200.0000.08018.22
5.6.190.0070.04318.14
5.6.180.0170.04318.17
5.6.170.0070.08018.18
5.6.160.0100.06718.11
5.6.150.0000.09018.18
5.6.140.0130.07718.21
5.6.130.0100.05018.14
5.6.120.0070.07318.21
5.6.110.0100.06318.11
5.6.100.0100.08018.21
5.6.90.0070.05718.25
5.6.80.0000.05317.56
5.6.70.0030.08017.46
5.6.60.0000.08317.56
5.6.50.0100.07317.47
5.6.40.0070.05017.52
5.6.30.0170.04717.48
5.6.20.0100.07717.43
5.6.10.0130.06017.54
5.6.00.0070.05017.40
5.5.350.0230.08020.41
5.5.340.0030.04717.95
5.5.330.0070.06018.05
5.5.320.0070.07017.98
5.5.310.0070.07317.96
5.5.300.0170.07317.88
5.5.290.0070.08718.00
5.5.280.0030.05018.02
5.5.270.0070.08017.91
5.5.260.0170.07718.00
5.5.250.0100.07317.81
5.5.240.0100.08017.30
5.5.230.0030.04017.29
5.5.220.0070.08017.39
5.5.210.0100.06017.34
5.5.200.0100.05717.28
5.5.190.0070.04017.34
5.5.180.0030.05717.27
5.5.160.0070.04017.36
5.5.150.0100.07017.25
5.5.140.0030.08317.27
5.5.130.0130.04717.36
5.5.120.0130.07017.23
5.5.110.0030.06717.36
5.5.100.0000.04317.17
5.5.90.0130.07017.13
5.5.80.0100.05017.21
5.5.70.0100.06317.14
5.5.60.0130.06717.16
5.5.50.0000.08317.22
5.5.40.0100.04717.22
5.5.30.0070.05317.22
5.5.20.0000.05717.20
5.5.10.0000.06317.25
5.5.00.0070.06717.09
5.4.450.0130.04719.15
5.4.440.0100.08019.14
5.4.430.0100.07719.29
5.4.420.0030.07319.30
5.4.410.0070.04719.44
5.4.400.0130.07018.95
5.4.390.0030.04718.98
5.4.380.0170.06719.16
5.4.370.0030.07719.02
5.4.360.0030.06318.95
5.4.350.0030.04719.00
5.4.340.0100.07718.98
5.4.320.0070.05319.04
5.4.310.0100.07319.12
5.4.300.0170.07019.02
5.4.290.0070.05718.82
5.4.280.0100.04718.96
5.4.270.0130.06719.13
5.4.260.0000.04319.00
5.4.250.0000.04019.12
5.4.240.0170.07318.81
5.4.230.0000.06718.94
5.4.220.0070.07319.02
5.4.210.0070.05318.97
5.4.200.0130.06318.81
5.4.190.0100.04318.99
5.4.180.0070.04019.06
5.4.170.0000.09019.09
5.4.160.0030.05018.80
5.4.150.0200.07018.96
5.4.140.0100.06716.48
5.4.130.0170.06716.32
5.4.120.0100.04316.32
5.4.110.0170.06316.29
5.4.100.0100.06716.41
5.4.90.0070.06016.27
5.4.80.0130.07016.34
5.4.70.0100.06016.25
5.4.60.0000.04716.34
5.4.50.0030.08016.36
5.4.40.0070.07316.38
5.4.30.0100.06716.21
5.4.20.0070.04716.21
5.4.10.0070.07316.20
5.4.00.0070.07715.66
5.3.290.0000.08714.62
5.3.280.0100.06014.52
5.3.270.0130.06714.58
5.3.260.0070.05714.51
5.3.250.0070.07314.68
5.3.240.0100.07014.52
5.3.230.0130.07014.37
5.3.220.0070.07314.39
5.3.210.0070.08014.50
5.3.200.0100.06314.50
5.3.190.0070.07014.48
5.3.180.0130.06314.51
5.3.170.0030.05714.53
5.3.160.0130.07314.38
5.3.150.0070.07014.39
5.3.140.0100.07014.52
5.3.130.0000.07314.38
5.3.120.0100.06714.54
5.3.110.0000.05314.47
5.3.100.0030.06713.89
5.3.90.0100.07013.98
5.3.80.0200.06713.98
5.3.70.0070.07713.95
5.3.60.0100.07313.98
5.3.50.0100.07313.91
5.3.40.0100.06313.86
5.3.30.0130.06713.68
5.3.20.0030.03713.77
5.3.10.0070.07013.50
5.3.00.0070.07013.62
5.2.170.0030.06711.04
5.2.160.0070.06011.10
5.2.150.0130.04311.12
5.2.140.0030.04311.13
5.2.130.0000.04010.99
5.2.120.0100.04010.95
5.2.110.0100.05311.08
5.2.100.0100.03711.02
5.2.90.0030.03711.05
5.2.80.0030.03010.87
5.2.70.0100.06011.12
5.2.60.0100.05711.02
5.2.50.0030.06310.91
5.2.40.0000.05710.97
5.2.30.0000.05011.00
5.2.20.0030.06710.94
5.2.10.0000.05010.76
5.2.00.0030.04310.74
5.1.60.0070.04710.08
5.1.50.0030.0439.91
5.1.40.0070.0479.93
5.1.30.0070.02310.56
5.1.20.0000.03710.37
5.1.10.0130.03710.17
5.1.00.0030.04310.11
5.0.50.0070.0338.54
5.0.40.0070.0308.39
5.0.30.0000.0578.18
5.0.20.0030.0438.25
5.0.10.0030.0438.22
5.0.00.0030.0638.24
4.4.90.0030.0337.49
4.4.80.0070.0277.49
4.4.70.0030.0337.49
4.4.60.0070.0337.49
4.4.50.0000.0307.49
4.4.40.0000.0407.49
4.4.30.0030.0177.49
4.4.20.0030.0307.49
4.4.10.0000.0407.49
4.4.00.0000.0477.49
4.3.110.0000.0237.50
4.3.100.0070.0337.51
4.3.90.0030.0237.52
4.3.80.0000.0437.55
4.3.70.0070.0337.55
4.3.60.0070.0307.55
4.3.50.0030.0307.55
4.3.40.0000.0377.55
4.3.30.0030.0207.55
4.3.20.0030.0377.56
4.3.10.0000.0377.56
4.3.00.0000.0377.56

preferences:
44.18 ms | 401 KiB | 5 Q