3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*$str = '4111111111111111'; //$str = '4556494730120644'; $str = 'xxxxxxxxxxxx1111'; $sKey = '8519293193919192153'; $s = ''; $j = 0; for($i=0;$i < strlen($str);$i++) { $s .= chr( ord(substr($str,$i,1)) + ord(substr($sKey,$j++,1))); if($j==strlen($sKey)) $j=0; } ; echo utf8_decode($s); echo "\n"; echo utf8_encode($s); echo "===============\n"; echo utf8_decode("°­©±ª±«©±«±©jbjc");*/ echo utf8_encode('������������igmf');

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.0100.00318.30
8.3.50.0090.01021.94
8.3.40.0040.01118.69
8.3.30.0120.00619.02
8.3.20.0070.00020.25
8.3.10.0040.00420.36
8.3.00.0030.00519.38
8.2.180.0110.00418.41
8.2.170.0170.00022.96
8.2.160.0120.00320.57
8.2.150.0090.00024.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0070.00022.05
8.2.110.0100.00022.13
8.2.100.0050.00517.72
8.2.90.0030.00619.05
8.2.80.0080.00017.97
8.2.70.0040.00417.59
8.2.60.0040.00417.90
8.2.50.0030.00618.07
8.2.40.0060.00318.09
8.2.30.0020.00519.49
8.2.20.0040.00417.66
8.2.10.0030.00617.92
8.2.00.0000.00717.56
8.1.280.0090.00625.92
8.1.270.0090.00021.94
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0030.00723.79
8.1.230.0040.00819.04
8.1.220.0000.00717.74
8.1.210.0060.00318.77
8.1.200.0090.00017.23
8.1.190.0030.00617.23
8.1.180.0050.00318.10
8.1.170.0030.00718.54
8.1.160.0070.00021.83
8.1.150.0040.00418.79
8.1.140.0040.00417.32
8.1.130.0060.00017.66
8.1.120.0040.00417.23
8.1.110.0000.00717.28
8.1.100.0030.00317.23
8.1.90.0000.00817.21
8.1.80.0040.00417.36
8.1.70.0000.00717.27
8.1.60.0040.00417.46
8.1.50.0050.00217.46
8.1.40.0000.00817.27
8.1.30.0030.00517.51
8.1.20.0050.00217.48
8.1.10.0040.00417.29
8.1.00.0000.00717.31
8.0.300.0000.00719.27
8.0.290.0040.00416.75
8.0.280.0000.00718.34
8.0.270.0030.00317.24
8.0.260.0040.00417.18
8.0.250.0030.00316.92
8.0.240.0000.00616.81
8.0.230.0070.00016.75
8.0.220.0070.00016.74
8.0.210.0070.00016.82
8.0.200.0000.00716.87
8.0.190.0000.00716.86
8.0.180.0050.00216.70
8.0.170.0000.00816.69
8.0.160.0070.00016.80
8.0.150.0070.00016.63
8.0.140.0000.00716.72
8.0.130.0050.00013.11
8.0.120.0050.00216.62
8.0.110.0030.00316.73
8.0.100.0040.00416.71
8.0.90.0000.00816.65
8.0.80.0060.00916.74
8.0.70.0000.00716.54
8.0.60.0040.00416.55
8.0.50.0020.00516.62
8.0.30.0090.00916.96
8.0.20.0080.01517.40
8.0.10.0030.00516.65
8.0.00.0120.00716.60
7.4.330.0030.00315.00
7.4.320.0060.00016.51
7.4.300.0050.00216.46
7.4.290.0050.00316.50
7.4.280.0040.00416.45
7.4.270.0030.00316.35
7.4.260.0040.00416.45
7.4.250.0000.00816.32
7.4.240.0030.00316.34
7.4.230.0000.00816.40
7.4.220.0150.00316.40
7.4.210.0030.01016.41
7.4.200.0030.00316.27
7.4.160.0110.01116.52
7.4.150.0060.01417.40
7.4.140.0080.01217.86
7.4.130.0120.00516.46
7.4.120.0080.01016.35
7.4.110.0030.01216.43
7.4.100.0070.01316.39
7.4.90.0170.00016.41
7.4.80.0100.00716.39
7.4.70.0120.00616.39
7.4.60.0030.01316.42
7.4.50.0040.00416.48
7.4.40.0160.00016.37
7.4.30.0130.00316.41
7.4.00.0090.00615.04
7.3.330.0030.00312.86
7.3.320.0000.00513.04
7.3.310.0030.00316.02
7.3.300.0030.00316.13
7.3.290.0060.00916.15
7.3.280.0110.00616.16
7.3.270.0070.01117.40
7.3.260.0100.00616.32
7.3.250.0080.01016.36
7.3.240.0170.00016.51
7.3.230.0080.00816.39
7.3.210.0140.00316.44
7.3.200.0070.01119.39
7.3.190.0120.01216.34
7.3.180.0120.00916.29
7.3.170.0070.01416.43
7.3.160.0110.01116.46
7.2.330.0070.01016.21
7.2.320.0100.00716.47
7.2.310.0130.01016.22
7.2.300.0120.00416.37
7.2.290.0110.01116.53
7.2.00.0130.00718.98
7.1.200.0070.00715.63
7.1.100.0670.00315.86
7.1.70.0000.01017.00
7.1.60.0090.01519.32
7.1.50.0070.01416.81
7.1.00.0030.07322.40
7.0.200.0040.00416.63
7.0.140.0030.07722.15
7.0.60.0030.08719.77
7.0.50.0070.08017.79
7.0.40.0070.08719.90
7.0.30.0530.07020.30
7.0.20.0300.08020.18
7.0.10.0100.08320.20
7.0.00.0200.07020.27
5.6.280.0070.06721.12
5.6.210.0000.09020.46
5.6.200.0000.04318.21
5.6.190.0170.08020.41
5.6.180.0530.06720.32
5.6.170.0230.04020.61
5.6.160.0030.04320.48
5.6.150.0070.08318.16
5.6.140.0070.06718.22
5.6.130.0070.08318.20
5.6.120.0030.04720.73
5.6.110.0070.08321.02
5.6.100.0230.06721.10
5.6.90.0100.08021.09
5.6.80.0070.05720.41
5.5.350.0100.09020.34
5.5.340.0070.03717.93
5.5.330.0100.07720.25
5.5.320.0400.07720.29
5.5.310.0230.05320.23
5.5.300.0030.07317.96
5.5.290.0070.08317.99
5.5.280.0070.03720.73
5.5.270.0330.07720.84
5.5.260.0100.04320.79
5.5.250.0070.04320.68
5.5.240.0200.06720.14
5.4.450.0330.05719.46
5.4.440.0370.06319.62
5.4.430.0400.05319.29
5.4.420.0170.04719.31
5.4.410.0330.04719.48
5.4.400.0370.05018.81
5.4.390.0300.06719.18
5.4.380.0430.05018.75
5.4.370.0470.04318.49
5.4.360.0330.05718.72
5.4.350.0400.05318.51
5.4.340.0170.06718.72
5.4.320.0020.03812.46
5.4.310.0050.04112.45
5.4.300.0060.03512.45
5.4.290.0070.04012.45
5.4.280.0050.04412.35
5.4.270.0070.04512.34
5.4.260.0060.04012.34
5.4.250.0060.04912.34
5.4.240.0080.03212.34
5.4.230.0060.04012.34
5.4.220.0070.03712.34
5.4.210.0090.03512.34
5.4.200.0070.03912.34
5.4.190.0090.04812.33
5.4.180.0090.04012.34
5.4.170.0060.04012.34
5.4.160.0060.03512.34
5.4.150.0050.03712.34
5.4.140.0060.03612.02
5.4.130.0030.03712.01
5.4.120.0090.03611.97
5.4.110.0040.04111.96
5.4.100.0070.03211.96
5.4.90.0060.04311.97
5.4.80.0090.03811.96
5.4.70.0060.03611.96
5.4.60.0060.04411.96
5.4.50.0070.04111.96
5.4.40.0040.04111.95
5.4.30.0050.03511.95
5.4.20.0060.03411.95
5.4.10.0080.03111.95
5.4.00.0060.05111.44
5.3.290.0070.04012.80
5.3.280.0060.03912.71
5.3.270.0080.03712.72
5.3.260.0070.04012.72
5.3.250.0080.04512.72
5.3.240.0090.04012.72
5.3.230.0050.04412.71
5.3.220.0060.03912.68
5.3.210.0090.04412.68
5.3.200.0040.04212.68
5.3.190.0040.04712.68
5.3.180.0070.04012.68
5.3.170.0060.03912.67
5.3.160.0080.04212.68
5.3.150.0060.04112.67
5.3.140.0080.04412.66
5.3.130.0060.05412.66
5.3.120.0080.03912.66
5.3.110.0100.04112.66
5.3.100.0060.03912.12
5.3.90.0080.03612.08
5.3.80.0060.04412.08
5.3.70.0110.04212.08
5.3.60.0090.04012.06
5.3.50.0100.04312.00
5.3.40.0080.04012.00
5.3.30.0070.03611.94
5.3.20.0060.03911.71
5.3.10.0080.03211.70
5.3.00.0080.04111.68
5.2.170.0040.0409.18
5.2.160.0030.0309.18
5.2.150.0060.0379.17
5.2.140.0070.0289.17
5.2.130.0060.0339.13
5.2.120.0040.0289.13
5.2.110.0060.0329.14
5.2.100.0080.0339.13
5.2.90.0060.0309.13
5.2.80.0050.0299.13
5.2.70.0030.0319.13
5.2.60.0110.0309.08
5.2.50.0080.0339.05
5.2.40.0050.0399.03
5.2.30.0110.0339.01
5.2.20.0030.0359.00
5.2.10.0060.0318.91
5.2.00.0040.0298.78
5.1.60.0040.0238.06
5.1.50.0040.0238.05
5.1.40.0030.0248.04
5.1.30.0040.0268.39
5.1.20.0080.0268.41
5.1.10.0090.0308.13
5.1.00.0020.0278.13
5.0.50.0040.0196.61
5.0.40.0020.0216.46
5.0.30.0030.0326.28
5.0.20.0020.0286.25
5.0.10.0050.0256.23
5.0.00.0030.0336.23
4.4.90.0060.0134.78
4.4.80.0040.0134.75
4.4.70.0040.0154.75
4.4.60.0040.0194.76
4.4.50.0020.0204.77
4.4.40.0010.0284.71
4.4.30.0030.0214.76
4.4.20.0040.0184.85
4.4.10.0020.0184.84
4.4.00.0040.0324.76
4.3.110.0020.0294.67
4.3.100.0040.0204.66
4.3.90.0050.0134.63
4.3.80.0020.0244.59
4.3.70.0010.0164.63
4.3.60.0020.0154.63
4.3.50.0030.0164.63
4.3.40.0020.0244.54
4.3.30.0040.0183.28
4.3.20.0040.0143.25
4.3.10.0010.0173.22
4.3.00.0030.0276.96

preferences:
47.26 ms | 401 KiB | 5 Q