3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "device_id=LA14011269&card_number=1073741835&mpb=1000&trans_time=1429443693&sessionId=1073741835LA140112691429443693&checksum=4"; echo checkBcc($str,4); function checkBcc($str, $check_sum) { $i=0; $checksum = 0; $result = false; $len = strlen($str); echo " str:".$str; $pBuf = explode($str); print_r($pBuf); for ($i = 0; $i < $len-2; $i++) { $checksum ^= $pBuf[$i]; } echo "checksum:". $checksum; if ($checksum == $check_sum) { $result = true; } return $result; } ?>

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.0160.00016.60
8.3.50.0100.01021.95
8.3.40.0170.00318.83
8.3.30.0090.00619.09
8.3.20.0070.00020.21
8.3.10.0070.00021.61
8.3.00.0080.00317.75
8.2.180.0140.00316.75
8.2.170.0090.00622.96
8.2.160.0090.00620.46
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0090.00619.64
8.2.110.0120.00619.21
8.2.100.0040.00817.63
8.2.90.0020.00519.22
8.2.80.0050.00317.97
8.2.70.0000.00917.63
8.2.60.0000.00817.93
8.2.50.0090.00018.07
8.2.40.0040.00417.82
8.2.30.0000.00718.12
8.2.20.0000.00717.65
8.2.10.0050.00218.23
8.2.00.0030.00517.93
8.1.280.0090.00925.92
8.1.270.0100.00718.86
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00421.05
8.1.230.0110.00022.70
8.1.220.0000.00717.91
8.1.210.0060.00318.77
8.1.200.0000.00817.35
8.1.190.0000.00817.10
8.1.180.0090.00018.10
8.1.170.0080.00020.30
8.1.160.0050.00321.82
8.1.150.0000.00718.82
8.1.140.0050.00317.41
8.1.130.0000.00717.82
8.1.120.0040.00417.29
8.1.110.0040.00417.34
8.1.100.0030.00517.36
8.1.90.0030.00417.32
8.1.80.0070.00017.30
8.1.70.0000.00717.40
8.1.60.0030.00617.59
8.1.50.0080.00017.41
8.1.40.0040.00417.40
8.1.30.0030.00617.64
8.1.20.0000.00817.59
8.1.10.0060.00317.49
8.1.00.0000.01017.52
8.0.300.0050.00218.77
8.0.290.0070.00016.88
8.0.280.0000.00718.43
8.0.270.0030.00517.25
8.0.260.0000.00617.14
8.0.250.0000.00716.93
8.0.240.0030.00317.02
8.0.230.0070.00017.02
8.0.220.0060.00016.96
8.0.210.0040.00416.96
8.0.200.0020.00516.89
8.0.190.0030.00316.89
8.0.180.0040.00416.96
8.0.170.0000.00816.98
8.0.160.0040.00417.04
8.0.150.0030.00316.95
8.0.140.0030.00416.89
8.0.130.0000.00613.39
8.0.120.0030.00516.95
8.0.110.0000.00716.96
8.0.100.0040.00416.84
8.0.90.0040.00416.83
8.0.80.0130.00316.83
8.0.70.0040.00417.00
8.0.60.0000.00816.70
8.0.50.0000.00716.77
8.0.30.0090.01117.05
8.0.20.0150.00617.40
8.0.10.0040.00416.83
8.0.00.0100.00716.70
7.4.330.0000.00615.09
7.4.320.0000.00616.57
7.4.300.0000.00616.57
7.4.290.0030.00316.58
7.4.280.0050.00316.59
7.4.270.0030.00316.57
7.4.260.0000.00716.63
7.4.250.0030.00516.57
7.4.240.0080.00016.60
7.4.230.0030.00316.71
7.4.220.0110.00816.66
7.4.210.0050.00916.48
7.4.200.0000.00716.70
7.4.160.0120.00416.48
7.4.150.0030.01617.40
7.4.140.0110.00717.86
7.4.130.0060.01316.60
7.4.120.0050.01216.46
7.4.110.0110.00716.53
7.4.100.0160.00316.64
7.4.90.0040.01716.58
7.4.80.0140.00519.39
7.4.70.0180.00616.49
7.4.60.0150.00416.70
7.4.50.0080.00016.44
7.4.40.0090.00916.50
7.4.30.0150.00916.41
7.4.00.0100.00715.14
7.3.330.0030.00313.43
7.3.320.0140.00313.43
7.3.310.0030.00316.42
7.3.300.0090.00016.30
7.3.290.0000.00716.30
7.3.280.0080.00716.43
7.3.270.0120.00617.40
7.3.260.0130.00416.70
7.3.250.0100.00716.39
7.3.240.0070.01016.52
7.3.230.0070.01116.66
7.3.210.0110.00516.42
7.3.200.0030.01319.39
7.3.190.0120.00416.46
7.3.180.0090.01316.55
7.3.170.0110.01116.46
7.3.160.0060.01016.55
7.2.330.0120.00816.87
7.2.320.0150.00316.41
7.2.310.0120.01216.82
7.2.300.0170.00316.82
7.2.290.0110.00816.78
7.2.00.0030.00719.38
7.1.100.0060.00318.29
7.1.70.0030.00617.31
7.1.60.0070.01819.46
7.1.50.0000.02016.98
7.1.00.0100.07022.42
7.0.200.0120.00316.51
7.0.140.0070.05722.10
7.0.60.1270.06720.09
7.0.50.0100.08017.87
7.0.40.0070.08320.34
7.0.30.0270.07320.23
7.0.20.0370.07720.23
7.0.10.0230.06720.07
7.0.00.0100.04320.09
5.6.280.0070.06720.82
5.6.210.1170.06020.70
5.6.200.0130.05318.18
5.6.190.0130.08320.51
5.6.180.0230.06720.46
5.6.170.0300.03720.54
5.6.160.0130.08020.56
5.6.150.0070.05018.23
5.6.140.0070.05318.27
5.6.130.0000.05018.17
5.6.120.0100.08021.01
5.6.110.0000.04320.92
5.6.100.0330.06320.98
5.6.90.0100.08021.01
5.6.80.0070.07020.36
5.5.350.0070.05720.41
5.5.340.0030.04017.96
5.5.330.0000.04320.27
5.5.320.0000.08020.42
5.5.310.0170.05320.26
5.5.300.0000.04018.07
5.5.290.0130.08017.98
5.5.280.0030.04720.88
5.5.270.0100.07720.76
5.5.260.0130.07720.87
5.5.250.0100.05720.61
5.5.240.0030.04020.28
5.4.450.0270.05319.29
5.4.440.0070.06719.58
5.4.430.0170.06019.61
5.4.420.0230.06319.43
5.4.410.0100.06019.35
5.4.400.0130.05018.91
5.4.390.0170.06018.99
5.4.380.0230.04319.11
5.4.370.0300.05319.27
5.4.360.0230.05319.11
5.4.350.0170.05319.01
5.4.340.0400.06019.23
5.4.320.0230.05718.99
5.4.310.0200.05319.16
5.4.300.0130.05019.27
5.4.290.0230.04718.91
5.4.280.0130.06719.12
5.4.270.0300.05318.91
5.4.260.0130.05318.95
5.4.250.0370.06319.12
5.4.240.0130.05319.26
5.4.230.0030.06319.12
5.4.220.0230.05319.15
5.4.210.0170.05019.11
5.4.200.0100.06019.22
5.4.190.0230.05019.25
5.4.180.0200.05018.92
5.4.170.0100.06018.90
5.4.160.0270.04718.94
5.4.150.0170.06019.20
5.4.140.0130.05316.39
5.4.130.0270.04716.47
5.4.120.0170.06716.46
5.4.110.0130.05016.38
5.4.100.0070.05716.39
5.4.90.0130.05316.25
5.4.80.0270.03316.26
5.4.70.0270.04016.31
5.4.60.0200.07016.38
5.4.50.0300.05016.41
5.4.40.0330.04716.48
5.4.30.0670.05016.43
5.4.20.0530.04016.39
5.4.10.0900.05316.32
5.4.00.0570.05315.94
5.3.290.0200.04714.76
5.3.280.0300.04714.55
5.3.270.0200.04714.66
5.3.260.0230.05714.59
5.3.250.0230.04714.52
5.3.240.0400.03314.59
5.3.230.0270.04714.66
5.3.220.0230.05014.57
5.3.210.0300.07014.58
5.3.200.0170.06314.50
5.3.190.0100.06014.55
5.3.180.0270.04714.53
5.3.170.0170.04314.62
5.3.160.0170.06314.55
5.3.150.0330.05714.55
5.3.140.0230.06714.56
5.3.130.0970.06714.50
5.3.120.0800.05714.51
5.3.110.0600.06314.50
5.3.100.0500.05313.96
5.3.90.0730.06013.92
5.3.80.0870.05314.00
5.3.70.0130.05313.93
5.3.60.0300.04013.98
5.3.50.0270.04313.91
5.3.40.0230.05013.91
5.3.30.0270.06013.81
5.3.20.0000.06313.54
5.3.10.0200.05313.61
5.3.00.0270.05013.64
5.2.170.0070.04311.16
5.2.160.0130.04011.20
5.2.150.0100.04311.14
5.2.140.0070.04710.98
5.2.130.0130.04311.12
5.2.120.0200.03711.07
5.2.110.0100.04011.12
5.2.100.0100.04011.00
5.2.90.0130.04011.06
5.2.80.0230.05010.99
5.2.70.0400.04711.03
5.2.60.0370.05010.91
5.2.50.0170.03310.98
5.2.40.0130.03711.06
5.2.30.0100.04310.82
5.2.20.0200.04010.86
5.2.10.0130.03710.76
5.2.00.0170.03710.73
5.1.60.0030.0379.94
5.1.50.0130.03710.02
5.1.40.0100.0409.95
5.1.30.0170.02710.23
5.1.20.0100.03710.46
5.1.10.0030.04010.06
5.1.00.0200.03310.14
5.0.50.0130.0208.47
5.0.40.0030.0308.38
5.0.30.0000.0508.16
5.0.20.0170.0278.18
5.0.10.0130.0378.16
5.0.00.0130.0478.10
4.4.90.0000.0275.85
4.4.80.0100.0205.81
4.4.70.0070.0275.86
4.4.60.0000.0275.82
4.4.50.0030.0235.84
4.4.40.0070.0335.80
4.4.30.0070.0205.82
4.4.20.0070.0205.87
4.4.10.0170.0305.89
4.4.00.0070.0375.87
4.3.110.0070.0235.70
4.3.100.0070.0235.78
4.3.90.0070.0205.71
4.3.80.0030.0335.80
4.3.70.0130.0275.72
4.3.60.0100.0205.73
4.3.50.0070.0205.73
4.3.40.0000.0375.67
4.3.30.0030.0274.77
4.3.20.0030.0234.77
4.3.10.0030.0234.77
4.3.00.0030.0204.77

preferences:
51.73 ms | 401 KiB | 5 Q