3v4l.org

run code in 300+ PHP versions simultaneously
<?php $line = str_repeat(' ',20); $value ='03'; $pos=0; $len='2'; $line = substr_replace($line,$value,$pos,$len); echo "[$line]\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.40.0040.01118.54
8.3.30.0040.01118.55
8.3.20.0050.00220.07
8.3.10.0000.00821.91
8.3.00.0070.00420.88
8.2.170.0040.01122.96
8.2.160.0100.00619.20
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0060.00317.63
8.2.120.0040.00426.35
8.2.110.0060.00321.04
8.2.100.0110.00017.91
8.2.90.0040.00419.18
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0040.00417.50
8.2.50.0040.00417.55
8.2.40.0050.00319.35
8.2.30.0030.00320.67
8.2.20.0040.00417.55
8.2.10.0040.00418.21
8.2.00.0050.00318.22
8.1.270.0060.00323.90
8.1.260.0030.00628.09
8.1.250.0040.00428.09
8.1.240.0090.00022.58
8.1.230.0040.00817.77
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0050.00516.87
8.1.180.0040.00418.10
8.1.170.0000.00817.76
8.1.160.0040.00418.84
8.1.150.0000.00818.81
8.1.140.0000.00819.45
8.1.130.0000.00717.36
8.1.120.0020.00517.41
8.1.110.0000.00817.40
8.1.100.0040.00417.45
8.1.90.0040.00417.39
8.1.80.0070.00017.45
8.1.70.0030.00317.29
8.1.60.0030.00517.52
8.1.50.0080.00017.40
8.1.40.0030.00617.34
8.1.30.0040.00417.61
8.1.20.0000.00717.59
8.1.10.0000.00717.41
8.1.00.0000.01017.41
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0030.00518.43
8.0.270.0000.00817.17
8.0.260.0030.00316.85
8.0.250.0000.00717.03
8.0.240.0070.00016.84
8.0.230.0030.00316.90
8.0.220.0070.00016.90
8.0.210.0040.00416.95
8.0.200.0050.00217.00
8.0.190.0000.00816.82
8.0.180.0050.00516.92
8.0.170.0060.00316.91
8.0.160.0000.00716.84
8.0.150.0000.00716.84
8.0.140.0030.00316.73
8.0.130.0000.00513.37
8.0.120.0000.00816.75
8.0.110.0040.00316.91
8.0.100.0000.00716.78
8.0.90.0000.00816.99
8.0.80.0060.01116.90
8.0.70.0060.00316.77
8.0.60.0040.00416.91
8.0.50.0040.00416.66
8.0.30.0060.01216.97
8.0.20.0070.01217.40
8.0.10.0070.00017.05
8.0.00.0130.00716.63
7.4.330.0020.00215.08
7.4.320.0000.00616.33
7.4.300.0000.00616.51
7.4.290.0030.00316.44
7.4.280.0000.00716.44
7.4.270.0070.00016.44
7.4.260.0040.00416.49
7.4.250.0040.00416.39
7.4.240.0030.00316.43
7.4.230.0040.00416.33
7.4.220.0060.01216.57
7.4.210.0080.00516.48
7.4.200.0040.00416.41
7.4.160.0150.00616.48
7.4.150.0100.00717.40
7.4.140.0080.00917.86
7.4.130.0140.00316.34
7.4.120.0060.01116.50
7.4.110.0120.00916.34
7.4.100.0040.01516.44
7.4.90.0000.01716.47
7.4.80.0030.01419.39
7.4.70.0040.01216.36
7.4.60.0090.00616.45
7.4.50.0030.01316.30
7.4.40.0120.00916.48
7.4.30.0150.00316.50
7.4.00.0090.00614.89
7.3.330.0050.00012.94
7.3.320.0000.00513.08
7.3.310.0020.00516.26
7.3.300.0070.00015.98
7.3.290.0100.00816.15
7.3.280.0090.00916.19
7.3.270.0140.00517.40
7.3.260.0120.00616.20
7.3.250.0110.01016.27
7.3.240.0090.00816.43
7.3.230.0100.00716.46
7.3.210.0030.01316.36
7.3.200.0110.00516.38
7.3.190.0040.01216.59
7.3.180.0120.00416.41
7.3.170.0060.01816.30
7.3.160.0090.00916.35
7.3.120.0110.00314.33
7.3.110.0060.00914.65
7.3.100.0000.01414.90
7.3.90.0050.00314.99
7.3.80.0000.00814.71
7.3.70.0090.00014.79
7.3.60.0060.00614.66
7.3.50.0040.00414.81
7.3.40.0060.00614.57
7.3.30.0060.00314.66
7.3.20.0030.00916.67
7.3.10.0030.01216.73
7.3.00.0030.00916.73
7.2.330.0090.01016.69
7.2.320.0160.00916.63
7.2.310.0170.00316.63
7.2.300.0110.00616.21
7.2.290.0110.00516.36
7.2.250.0070.01115.04
7.2.240.0100.01015.05
7.2.230.0000.01314.69
7.2.220.0100.00314.97
7.2.210.0060.00915.06
7.2.200.0100.00015.00
7.2.190.0090.00914.98
7.2.180.0040.00715.09
7.2.170.0100.00314.70
7.2.60.0070.00716.80
7.2.00.0030.01019.07
7.1.330.0070.00715.77
7.1.320.0030.01015.56
7.1.310.0030.00915.39
7.1.300.0000.01515.59
7.1.290.0000.01315.93
7.1.280.0000.01415.70
7.1.270.0040.00415.48
7.1.260.0030.01315.50
7.1.200.0000.00815.58
7.1.100.0070.00417.77
7.1.70.0000.00717.13
7.1.60.0070.01319.48
7.1.50.0130.00616.86
7.1.00.0070.07322.36
7.0.200.0040.00416.52
7.0.70.0870.07319.87
7.0.60.0870.08319.89
7.0.50.0770.07320.34
7.0.40.0070.04020.13
7.0.30.0130.07720.14
7.0.20.0030.06320.08
7.0.10.0030.09320.16
7.0.00.0000.07020.05
5.6.280.0030.07321.07
5.6.220.0100.08320.71
5.6.210.0070.07720.64
5.6.200.0000.04721.11
5.6.190.0200.07021.08
5.6.180.0130.08721.07
5.6.170.0070.06020.95
5.6.160.0170.04721.07
5.6.150.0130.05721.08
5.6.140.0070.09021.12
5.6.130.0100.08321.02
5.6.120.0100.08720.99
5.6.110.0130.07321.06
5.6.100.0070.07020.91
5.6.90.0170.04720.97
5.6.80.0030.08720.32
5.6.70.0070.05720.44
5.6.60.0100.07720.32
5.6.50.0030.08720.45
5.6.40.0100.07020.52
5.6.30.0070.04720.46
5.6.20.0100.08020.36
5.6.10.0100.08020.28
5.6.00.0170.07020.32
5.5.360.0100.05320.38
5.5.350.0070.05020.45
5.5.340.0070.04020.72
5.5.330.0000.06320.88
5.5.320.0070.05320.92
5.5.310.0170.07720.72
5.5.300.0170.07720.88
5.5.290.0130.07020.82
5.5.280.0200.08020.77
5.5.270.0130.07720.86
5.5.260.0070.07720.89
5.5.250.0170.07320.70
5.5.240.0130.06320.11
5.5.230.0100.08320.24
5.5.220.0070.08020.00
5.5.210.0070.07720.29
5.5.200.0130.07720.22
5.5.190.0070.04320.17
5.5.180.0130.07720.14
5.5.160.0070.08320.18
5.5.150.0100.06020.25
5.5.140.0100.07320.25
5.5.130.0170.07020.16
5.5.120.0200.07019.97
5.5.110.0100.07320.24
5.5.100.0070.08320.20
5.5.90.0030.05020.05
5.5.80.0100.05720.16
5.5.70.0070.07320.11
5.5.60.0070.07320.04
5.5.50.0100.07720.14
5.5.40.0030.04020.10
5.5.30.0030.04020.03
5.5.20.0070.03719.91
5.5.10.0070.03720.04
5.5.00.0070.08019.99
5.4.450.0070.06319.23
5.4.440.0100.06319.35
5.4.430.0070.08019.44
5.4.420.0130.07319.11
5.4.410.0100.07719.21
5.4.400.0100.07318.88
5.4.390.0070.05319.03
5.4.380.0030.08018.96
5.4.370.0100.04019.14
5.4.360.0100.08318.95
5.4.350.0070.08319.18
5.4.340.0170.05719.10
5.4.320.0100.07719.10
5.4.310.0070.07719.13
5.4.300.0130.07318.78
5.4.290.0070.04719.09
5.4.280.0100.07319.00
5.4.270.0030.08319.04
5.4.260.0070.07719.16
5.4.250.0030.08018.99
5.4.240.0100.06718.82
5.4.230.0030.04719.09
5.4.220.0070.07718.99
5.4.210.0070.07019.13
5.4.200.0030.04019.22
5.4.190.0070.05718.97
5.4.180.0030.03719.12
5.4.170.0070.03718.89
5.4.160.0070.07718.76
5.4.150.0070.03719.10
5.4.140.0030.04016.27
5.4.130.0000.05016.38
5.4.120.0030.03716.06
5.4.110.0100.03716.25
5.4.100.0070.03316.32
5.4.90.0130.04716.42
5.4.80.0000.04016.29
5.4.70.0030.03716.26
5.4.60.0000.03716.30
5.4.50.0030.03716.36
5.4.40.0100.03716.33
5.4.30.0070.03316.28
5.4.20.0000.03716.23
5.4.10.0070.03316.31
5.4.00.0000.03315.85
5.3.290.0130.07714.52
5.3.280.0030.04314.58
5.3.270.0000.04014.46
5.3.260.0030.05314.61
5.3.250.0000.04014.59
5.3.240.0070.03314.46
5.3.230.0030.04314.42
5.3.220.0070.03314.56
5.3.210.0030.03714.38
5.3.200.0030.03714.55
5.3.190.0070.03714.57
5.3.180.0100.04014.41
5.3.170.0070.03714.42
5.3.160.0000.04014.42
5.3.150.0000.04014.50
5.3.140.0030.03714.41
5.3.130.0000.04014.40
5.3.120.0030.05314.55
5.3.110.0100.03314.50
5.3.100.0100.07014.02
5.3.90.0030.05314.00
5.3.80.0030.03713.95
5.3.70.0000.03713.77
5.3.60.0030.04013.96
5.3.50.0030.03313.80
5.3.40.0070.03313.71
5.3.30.0070.03313.89
5.3.20.0100.03013.63
5.3.10.0000.03013.41
5.3.00.0030.04713.58
5.2.170.0030.04310.97
5.2.160.0000.03011.21
5.2.150.0030.02711.19
5.2.140.0100.02011.12
5.2.130.0000.02310.93
5.2.120.0030.02710.93
5.2.110.0100.02011.16
5.2.100.0000.02711.08
5.2.90.0030.02310.93
5.2.80.0030.02711.07
5.2.70.0030.02311.08
5.2.60.0000.02711.00
5.2.50.0030.02710.93
5.2.40.0000.03010.93
5.2.30.0070.02010.96
5.2.20.0000.02711.02
5.2.10.0000.02710.93
5.2.00.0030.02310.93
5.1.60.0000.02710.93
5.1.50.0030.02010.93
5.1.40.0070.02010.93
5.1.30.0000.02710.93
5.1.20.0000.04310.93
5.1.10.0100.02010.93
5.1.00.0030.02310.93
5.0.50.0030.01710.93
5.0.40.0000.01710.93
5.0.30.0030.02310.93
5.0.20.0000.02310.93
5.0.10.0000.04710.93
5.0.00.0030.04310.93
4.4.90.0000.01310.93
4.4.80.0030.01310.93
4.4.70.0000.01710.93
4.4.60.0030.01310.93
4.4.50.0030.01310.93
4.4.40.0070.04310.93
4.4.30.0000.01710.93
4.4.20.0000.01710.93
4.4.10.0000.01710.93
4.4.00.0000.02310.93
4.3.110.0000.01310.93
4.3.100.0000.01310.93
4.3.90.0000.01710.93
4.3.80.0000.05310.93
4.3.70.0030.01310.93
4.3.60.0030.01710.93
4.3.50.0030.02710.93
4.3.40.0030.05010.93
4.3.30.0000.03310.93
4.3.20.0030.03310.93
4.3.10.0000.04010.93
4.3.00.0030.03310.93

preferences:
67.57 ms | 400 KiB | 5 Q