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 $s; echo "\n"; echo utf8_encode($s);

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.0070.00718.65
8.3.50.0110.00922.05
8.3.40.0090.00618.97
8.3.30.0000.01419.23
8.3.20.0060.00320.30
8.3.10.0030.00620.31
8.3.00.0080.00019.38
8.2.180.0070.00716.75
8.2.170.0100.01022.96
8.2.160.0070.00720.46
8.2.150.0070.00724.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00422.18
8.2.110.0060.00321.11
8.2.100.0090.00317.78
8.2.90.0040.00420.42
8.2.80.0000.00818.04
8.2.70.0050.00318.16
8.2.60.0080.00018.16
8.2.50.0000.00818.10
8.2.40.0080.00020.42
8.2.30.0050.00319.47
8.2.20.0020.00517.95
8.2.10.0030.00618.18
8.2.00.0030.00517.68
8.1.280.0110.00425.92
8.1.270.0080.00023.88
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00322.48
8.1.230.0080.00420.85
8.1.220.0050.00317.74
8.1.210.0000.00819.04
8.1.200.0060.00317.10
8.1.190.0030.00517.22
8.1.180.0000.00818.10
8.1.170.0040.00418.66
8.1.160.0050.00321.95
8.1.150.0000.00818.91
8.1.140.0000.00817.40
8.1.130.0030.00317.92
8.1.120.0070.00017.54
8.1.110.0000.00717.45
8.1.100.0070.00017.38
8.1.90.0030.00317.47
8.1.80.0040.00417.48
8.1.70.0030.00317.46
8.1.60.0060.00317.65
8.1.50.0040.00417.47
8.1.40.0050.00317.46
8.1.30.0000.00817.67
8.1.20.0000.00717.59
8.1.10.0040.00417.59
8.1.00.0040.00417.46
8.0.300.0000.00719.94
8.0.290.0050.00316.75
8.0.280.0000.00718.39
8.0.270.0000.00716.77
8.0.260.0000.00617.21
8.0.250.0030.00316.87
8.0.240.0030.00517.05
8.0.230.0040.00416.94
8.0.220.0070.00016.75
8.0.210.0000.00716.85
8.0.200.0000.00616.93
8.0.190.0030.00516.90
8.0.180.0000.00716.88
8.0.170.0050.00216.92
8.0.160.0070.00016.89
8.0.150.0030.00416.78
8.0.140.0070.00016.78
8.0.130.0060.00013.25
8.0.120.0000.00816.79
8.0.110.0050.00316.69
8.0.100.0040.00416.83
8.0.90.0000.00716.84
8.0.80.0030.01816.81
8.0.70.0070.00016.66
8.0.60.0040.00416.75
8.0.50.0040.00416.90
8.0.30.0050.01317.05
8.0.20.0130.00617.40
8.0.10.0040.00417.07
8.0.00.0120.00716.74
7.4.330.0020.00215.09
7.4.320.0030.00316.63
7.4.300.0030.00316.59
7.4.290.0000.00716.55
7.4.280.0000.00816.54
7.4.270.0030.00316.45
7.4.260.0030.00316.63
7.4.250.0030.00316.45
7.4.240.0030.00416.62
7.4.230.0030.00316.38
7.4.220.0200.00616.56
7.4.210.0030.01116.65
7.4.200.0000.00716.59
7.4.160.0200.00316.61
7.4.150.0110.01417.40
7.4.140.0130.00717.86
7.4.130.0100.00716.55
7.4.120.0060.01116.54
7.4.110.0100.00716.64
7.4.100.0060.01616.48
7.4.90.0090.00916.61
7.4.80.0120.00916.59
7.4.70.0060.01016.60
7.4.60.0090.00616.50
7.4.50.0000.00816.67
7.4.40.0120.01216.52
7.4.30.0120.00516.55
7.4.00.0030.01314.84
7.3.330.0080.00013.08
7.3.320.0030.00313.19
7.3.310.0000.00716.22
7.3.300.0070.00016.26
7.3.290.0080.01216.30
7.3.280.0120.00416.35
7.3.270.0170.00817.40
7.3.260.0100.00716.46
7.3.250.0150.00616.31
7.3.240.0090.00916.23
7.3.230.0110.00716.39
7.3.210.0100.00616.70
7.3.200.0090.01319.39
7.3.190.0120.00916.55
7.3.180.0080.00816.39
7.3.170.0130.00316.37
7.3.160.0170.00316.46
7.3.120.0090.00614.92
7.3.110.0070.00714.80
7.3.100.0030.01114.93
7.3.90.0050.00714.82
7.3.80.0070.00614.87
7.3.70.0080.00514.81
7.3.60.0040.00714.73
7.3.50.0080.00714.99
7.3.40.0080.00614.76
7.3.30.0050.00914.82
7.3.20.0030.01016.53
7.3.10.0130.00316.64
7.3.00.0070.00616.71
7.2.330.0100.00716.52
7.2.320.0100.00616.71
7.2.310.0100.00716.68
7.2.300.0090.01316.62
7.2.290.0090.01216.32
7.2.250.0130.00314.59
7.2.240.0050.01115.15
7.2.230.0030.01015.04
7.2.220.0070.00715.20
7.2.210.0050.00514.86
7.2.200.0040.01214.96
7.2.190.0090.00414.91
7.2.180.0060.00614.73
7.2.170.0080.00315.07
7.2.160.0030.01614.92
7.2.150.0110.00316.79
7.2.140.0070.00716.70
7.2.130.0110.00316.94
7.2.120.0090.00916.81
7.2.110.0080.00916.93
7.2.100.0080.00716.87
7.2.90.0080.00616.80
7.2.80.0060.00917.06
7.2.70.0040.00816.73
7.2.60.0030.01216.94
7.2.50.0080.00616.79
7.2.40.0120.00516.72
7.2.30.0080.00716.93
7.2.20.0070.00416.72
7.2.10.0050.00916.94
7.2.00.0080.00917.71
7.1.330.0090.00715.77
7.1.320.0060.01015.77
7.1.310.0030.00815.74
7.1.300.0060.00515.69
7.1.290.0060.00915.71
7.1.280.0030.00915.84
7.1.270.0030.01015.65
7.1.260.0040.00715.95
7.1.250.0030.00815.89
7.1.240.0040.01115.77
7.1.230.0080.00015.96
7.1.220.0000.01015.64
7.1.210.0100.00715.58
7.1.200.0030.01015.93
7.1.190.0060.00615.41
7.1.180.0040.00715.98
7.1.170.0140.00415.83
7.1.160.0070.01015.74
7.1.150.0060.01215.71
7.1.140.0000.00715.82
7.1.130.0000.01115.91
7.1.120.0070.01015.82
7.1.110.0170.00315.78
7.1.100.0040.01017.00
7.1.90.0030.00715.83
7.1.80.0050.00515.80
7.1.70.0030.01016.20
7.1.60.0090.00317.49
7.1.50.0090.00816.36
7.1.40.0000.01315.70
7.1.30.0110.00715.79
7.1.20.0120.00015.80
7.1.10.0070.00715.87
7.1.00.0050.03819.08
7.0.330.0070.00715.27
7.0.320.0090.00615.32
7.0.310.0040.00815.46
7.0.300.0090.00315.13
7.0.290.0070.00415.49
7.0.280.0000.01215.51
7.0.270.0040.00415.16
7.0.260.0070.01115.45
7.0.250.0030.00715.11
7.0.240.0030.00615.27
7.0.230.0000.01015.52
7.0.220.0030.00715.43
7.0.210.0070.00715.45
7.0.200.0000.00815.88
7.0.190.0090.00615.25
7.0.180.0030.00315.62
7.0.170.0070.00715.35
7.0.160.0060.00615.25
7.0.150.0000.00715.56
7.0.140.0090.04018.67
7.0.130.0030.00915.37
7.0.120.0000.00915.27
7.0.110.0040.00815.15
7.0.100.0130.00715.52
7.0.90.0030.01015.46
7.0.80.0030.00915.47
7.0.70.0000.00815.44
7.0.60.0080.04617.80
7.0.50.0070.04216.53
7.0.40.0030.03316.88
7.0.30.0150.02516.90
7.0.20.0150.02616.80
7.0.10.0050.02816.83
7.0.00.0080.03816.74
5.6.380.0070.00314.14
5.6.370.0030.00814.32
5.6.360.0030.00514.27
5.6.350.0000.00714.35
5.6.340.0090.00614.51
5.6.330.0030.00914.43
5.6.320.0000.01414.29
5.6.310.0070.00414.15
5.6.300.0070.00714.38
5.6.290.0030.00914.32
5.6.280.0070.03517.71
5.6.270.0040.00414.44
5.6.260.0040.00414.21
5.6.250.0000.01014.18
5.6.240.0060.00614.14
5.6.230.0000.01614.29
5.6.220.0080.00814.00
5.6.210.0050.04817.57
5.6.200.0070.02316.30
5.6.190.0080.04017.30
5.6.180.0250.03517.57
5.6.170.0050.02717.48
5.6.160.0110.02217.43
5.6.150.0090.04216.04
5.6.140.0100.02216.13
5.6.130.0120.04016.12
5.6.120.0040.03017.65
5.6.110.0040.04917.67
5.6.100.0080.03917.51
5.6.90.0090.04517.63
5.6.80.0100.04517.47
5.6.70.0120.00614.12
5.6.60.0190.00014.02
5.6.50.0230.00314.39
5.6.40.0040.00714.30
5.6.30.0030.01014.16
5.6.20.0120.00613.92
5.6.10.0160.00314.30
5.6.00.0040.00414.20
5.5.380.0060.00011.22
5.5.370.0000.01211.25
5.5.360.0090.00310.78
5.5.350.0140.03515.81
5.5.340.0100.03814.47
5.5.330.0030.04715.66
5.5.320.0200.02615.47
5.5.310.0140.03815.67
5.5.300.0100.04014.51
5.5.290.0120.01814.54
5.5.280.0020.02616.08
5.5.270.0090.04315.99
5.5.260.0150.04216.01
5.5.250.0050.04115.98
5.5.240.0100.04015.56
5.5.230.0060.00310.98
5.5.220.0000.00811.09
5.5.210.0030.00910.91
5.5.200.0110.00711.11
5.5.190.0170.00010.96
5.5.180.0200.00711.20
5.5.170.0070.00011.17
5.5.160.0130.00311.00
5.5.150.0090.00610.97
5.5.140.0060.00011.19
5.5.130.0000.01311.02
5.5.120.0030.00611.27
5.5.110.0120.00311.18
5.5.100.0040.01110.93
5.5.90.0030.00311.30
5.5.80.0230.00011.18
5.5.70.0210.00310.82
5.5.60.0170.01010.93
5.5.50.0130.00510.85
5.5.40.0100.01310.68
5.5.30.0370.00010.89
5.5.20.0210.00710.59
5.5.10.0150.00311.10
5.5.00.0040.01110.98
5.4.450.0230.02915.22
5.4.440.0080.03815.11
5.4.430.0180.02815.20
5.4.420.0190.02515.18
5.4.410.0170.02715.11
5.4.400.0160.02814.97
5.4.390.0100.03214.94
5.4.380.0160.03514.78
5.4.370.0200.03314.69
5.4.360.0240.03014.65
5.4.350.0140.03514.77
5.4.340.0170.02914.77
5.4.330.0070.00310.95
5.4.320.0070.02011.74
5.4.310.0060.01911.68
5.4.300.0060.02111.65
5.4.290.0060.02211.76
5.4.280.0080.02211.51
5.4.270.0100.02011.43
5.4.260.0050.02111.60
5.4.250.0070.02011.66
5.4.240.0120.02011.70
5.4.230.0150.02111.69
5.4.220.0070.02311.60
5.4.210.0150.02111.60
5.4.200.0210.02311.58
5.4.190.0110.02511.66
5.4.180.0070.02011.53
5.4.170.0130.01911.30
5.4.160.0120.01911.48
5.4.150.0120.02111.53
5.4.140.0150.02111.56
5.4.130.0130.01811.46
5.4.120.0140.02011.40
5.4.110.0110.02011.34
5.4.100.0080.01711.43
5.4.90.0040.02311.35
5.4.80.0070.02011.42
5.4.70.0070.02211.27
5.4.60.0030.03011.31
5.4.50.0020.02211.40
5.4.40.0080.02211.38
5.4.30.0050.02511.41
5.4.20.0090.02111.15
5.4.10.0020.02011.39
5.4.00.0050.02411.20
5.3.290.0060.02211.71
5.3.280.0070.02311.57
5.3.270.0090.02211.54
5.3.260.0130.01911.57
5.3.250.0020.02411.61
5.3.240.0040.02211.57
5.3.230.0040.02411.62
5.3.220.0040.02311.51
5.3.210.0070.02011.52
5.3.200.0020.02411.52
5.3.190.0020.02111.61
5.3.180.0060.02111.58
5.3.170.0140.01811.63
5.3.160.0040.02611.61
5.3.150.0070.01811.56
5.3.140.0060.02511.63
5.3.130.0040.02311.56
5.3.120.0020.02611.57
5.3.110.0050.02511.47
5.3.100.0110.02311.34
5.3.90.0030.02611.16
5.3.80.0040.02111.21
5.3.70.0060.02111.13
5.3.60.0070.01911.14
5.3.50.0060.01811.11
5.3.40.0040.02311.16
5.3.30.0020.02211.18
5.3.20.0040.02011.02
5.3.10.0060.02010.97
5.3.00.0060.02110.92
5.2.170.0060.0159.42
5.2.160.0030.0179.42
5.2.150.0030.0199.42
5.2.140.0040.0209.42
5.2.130.0030.0199.40
5.2.120.0080.0159.40
5.2.110.0050.0169.40
5.2.100.0090.0159.40
5.2.90.0040.0199.40
5.2.80.0070.0209.40
5.2.70.0060.0179.40
5.2.60.0110.0159.37
5.2.50.0060.0179.36
5.2.40.0100.0159.35
5.2.30.0060.0189.33
5.2.20.0040.0179.33
5.2.10.0050.0189.29
5.2.00.0050.0189.22
5.1.60.0080.0138.86
5.1.50.0100.0188.86
5.1.40.0120.0148.85
5.1.30.0120.0139.03
5.1.20.0040.0209.03
5.1.10.0060.0158.90
5.1.00.0040.0188.90
5.0.50.0080.0108.13
5.0.40.0060.0128.07
5.0.30.0020.0207.97
5.0.20.0080.0097.96
5.0.10.0020.0137.95
5.0.00.0050.0157.94
4.4.90.0050.0117.21
4.4.80.0050.0127.21
4.4.70.0030.0107.21
4.4.60.0040.0127.21
4.4.50.0060.0097.21
4.4.40.0100.0217.18
4.4.30.0120.0127.21
4.4.20.0090.0127.25
4.4.10.0010.0137.25
4.4.00.0050.0157.21
4.3.110.0050.0137.16
4.3.100.0040.0097.16
4.3.90.0010.0127.14
4.3.80.0040.0137.12
4.3.70.0030.0117.14
4.3.60.0030.0097.14
4.3.50.0010.0127.14
4.3.40.0030.0147.10
4.3.30.0030.0096.47
4.3.20.0010.0136.46
4.3.10.0030.0076.44
4.3.00.0020.0148.29

preferences:
63.31 ms | 401 KiB | 5 Q