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); 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.0130.00716.75
8.3.50.0100.01221.98
8.3.40.0120.00418.85
8.3.30.0140.00718.96
8.3.20.0070.00020.30
8.3.10.0040.00421.77
8.3.00.0110.00019.11
8.2.180.0140.00318.31
8.2.170.0110.00422.96
8.2.160.0040.01122.25
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0000.00719.54
8.2.110.0090.00020.96
8.2.100.0060.00617.75
8.2.90.0070.00019.08
8.2.80.0050.00317.97
8.2.70.0090.00017.63
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0000.00918.02
8.2.30.0050.00217.86
8.2.20.0040.00417.55
8.2.10.0030.00518.11
8.2.00.0070.00017.84
8.1.280.0100.00725.92
8.1.270.0130.00320.48
8.1.260.0070.01126.35
8.1.250.0060.01228.09
8.1.240.0060.00323.84
8.1.230.0070.00419.00
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0040.00417.00
8.1.180.0000.00818.10
8.1.170.0030.00520.18
8.1.160.0040.00421.86
8.1.150.0050.00218.87
8.1.140.0060.00317.38
8.1.130.0000.00717.72
8.1.120.0000.00717.41
8.1.110.0050.00317.43
8.1.100.0070.00017.43
8.1.90.0000.00717.45
8.1.80.0040.00417.38
8.1.70.0000.00717.33
8.1.60.0050.00317.54
8.1.50.0030.00517.41
8.1.40.0040.00417.49
8.1.30.0000.00817.52
8.1.20.0020.00517.69
8.1.10.0030.00517.39
8.1.00.0040.00817.39
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0070.00018.29
8.0.270.0000.00717.09
8.0.260.0000.00717.16
8.0.250.0070.00016.99
8.0.240.0030.00316.89
8.0.230.0040.00416.84
8.0.220.0030.00316.88
8.0.210.0000.00716.86
8.0.200.0000.00616.95
8.0.190.0000.00716.96
8.0.180.0040.00416.91
8.0.170.0040.00416.88
8.0.160.0030.00616.86
8.0.150.0000.00816.83
8.0.140.0050.00316.83
8.0.130.0000.00613.38
8.0.120.0000.00816.73
8.0.110.0070.00016.94
8.0.100.0050.00316.91
8.0.90.0000.00716.92
8.0.80.0060.01516.82
8.0.70.0000.00716.90
8.0.60.0070.00016.76
8.0.50.0040.00416.97
8.0.30.0150.01016.88
8.0.20.0090.00917.40
8.0.10.0040.00416.84
8.0.00.0080.01216.62
7.4.330.0000.00615.03
7.4.320.0030.00316.45
7.4.300.0030.00316.41
7.4.290.0000.00716.51
7.4.280.0000.01016.39
7.4.270.0070.00016.61
7.4.260.0030.00616.54
7.4.250.0070.00016.48
7.4.240.0050.00216.52
7.4.230.0070.00016.58
7.4.220.0140.00716.38
7.4.210.0100.00516.67
7.4.200.0030.00316.25
7.4.160.0040.01116.45
7.4.150.0060.01217.40
7.4.140.0080.01017.86
7.4.130.0120.00416.59
7.4.120.0120.00516.57
7.4.110.0080.01816.56
7.4.100.0090.00916.49
7.4.90.0040.01416.66
7.4.80.0060.01219.39
7.4.70.0100.00716.57
7.4.60.0060.01616.56
7.4.50.0030.00516.52
7.4.40.0080.00816.33
7.4.30.0130.00916.74
7.4.00.0030.01014.80
7.3.330.0030.00313.11
7.3.320.0110.00613.27
7.3.310.0050.00216.32
7.3.300.0000.00616.29
7.3.290.0000.00716.29
7.3.280.0110.00716.27
7.3.270.0100.01417.40
7.3.260.0090.01116.42
7.3.250.0120.00816.41
7.3.240.0130.00316.54
7.3.230.0150.00316.52
7.3.210.0110.01116.45
7.3.200.0060.01319.39
7.3.190.0110.01116.25
7.3.180.0100.01316.33
7.3.170.0140.00316.36
7.3.160.0120.00916.45
7.3.00.0140.00316.45
7.2.330.0110.00716.50
7.2.320.0040.01116.63
7.2.310.0070.01416.47
7.2.300.0130.01016.71
7.2.290.0120.00916.68
7.2.130.0110.00416.48
7.2.120.0060.01016.29
7.2.110.0140.00316.46
7.2.100.0130.00716.71
7.2.90.0060.00916.49
7.2.80.0070.00416.71
7.2.70.0070.01016.46
7.2.60.0100.00616.44
7.2.50.0070.01016.49
7.2.40.0140.00316.37
7.2.30.0130.00316.35
7.2.20.0080.00416.37
7.2.10.0030.00916.36
7.2.00.0080.00917.95
7.1.250.0080.00815.53
7.1.240.0000.01115.36
7.1.230.0120.00315.58
7.1.220.0070.00315.27
7.1.210.0040.01115.28
7.1.200.0020.00915.60
7.1.190.0120.00415.34
7.1.180.0090.00615.43
7.1.170.0110.00415.59
7.1.160.0030.01115.50
7.1.150.0110.00315.38
7.1.140.0070.00715.26
7.1.130.0100.00715.41
7.1.120.0040.00715.38
7.1.110.0060.00615.18
7.1.100.0100.00516.62
7.1.90.0120.00615.49
7.1.80.0110.00315.84
7.1.70.0040.00616.23
7.1.60.0090.00617.55
7.1.50.0070.01016.31
7.1.40.0040.00815.41
7.1.30.0110.00315.62
7.1.20.0150.00315.54
7.1.10.0060.00915.37
7.1.00.0050.04018.90
7.0.330.0070.00715.18
7.0.320.0100.00715.46
7.0.310.0030.01015.38
7.0.300.0100.00715.04
7.0.290.0090.00615.34
7.0.280.0100.00715.43
7.0.270.0070.00715.40
7.0.260.0150.00015.34
7.0.250.0070.00715.38
7.0.240.0090.00615.29
7.0.230.0130.00015.35
7.0.220.0080.00815.36
7.0.210.0090.00315.16
7.0.200.0060.00516.03
7.0.190.0120.00315.55
7.0.180.0110.00015.32
7.0.170.0060.00615.43
7.0.160.0080.00815.44
7.0.150.0060.01015.25
7.0.140.0060.03518.60
7.0.130.0070.00415.46
7.0.120.0090.00615.14
7.0.110.0080.00815.29
7.0.100.0060.00915.41
7.0.90.0140.00315.13
7.0.80.0140.00415.52
7.0.70.0090.00615.53
7.0.60.0780.03217.74
7.0.50.0070.03216.45
7.0.40.0050.03316.85
7.0.30.0100.02416.80
7.0.20.0200.04316.76
7.0.10.0180.04216.84
7.0.00.0090.04516.80
5.6.380.0060.00614.25
5.6.370.0070.00714.17
5.6.360.0040.00714.79
5.6.350.0030.00714.14
5.6.340.0040.00714.61
5.6.330.0080.00414.03
5.6.320.0120.00013.98
5.6.310.0000.01414.56
5.6.300.0000.01114.39
5.6.290.0070.00714.01
5.6.280.0090.03817.82
5.6.270.0070.00714.18
5.6.260.0080.00813.81
5.6.250.0090.00314.13
5.6.240.0080.00414.18
5.6.230.0080.00014.32
5.6.220.0120.00014.46
5.6.210.0600.02517.49
5.6.200.0110.03716.09
5.6.190.0030.02617.19
5.6.180.0150.02317.37
5.6.170.0150.04217.41
5.6.160.0060.04417.26
5.6.150.0020.02716.32
5.6.140.0050.03916.20
5.6.130.0050.02916.14
5.6.120.0070.02817.75
5.6.110.0080.02217.61
5.6.100.0070.04317.70
5.6.90.0120.03417.73
5.6.80.0140.03317.23
5.6.70.0090.00614.18
5.6.60.0100.00314.07
5.6.50.0030.00914.13
5.6.40.0000.01614.03
5.6.30.0120.00314.42
5.6.20.0100.00014.21
5.6.10.0060.00614.33
5.6.00.0070.00714.41
5.5.380.0000.01011.43
5.5.370.0070.00311.29
5.5.360.0040.00411.18
5.5.350.0020.02615.91
5.5.340.0000.05314.70
5.5.330.0070.02815.78
5.5.320.0030.02115.71
5.5.310.0080.03115.87
5.5.300.0050.02614.54
5.5.290.0030.02914.66
5.5.280.0090.03116.17
5.5.270.0080.02115.89
5.5.260.0090.04415.98
5.5.250.0100.03616.01
5.5.240.0030.02415.67
5.5.230.0060.00311.02
5.5.220.0030.00311.09
5.5.210.0000.00810.92
5.5.200.0030.00311.10
5.5.190.0060.00611.09
5.5.180.0000.00811.25
5.5.170.0110.00010.90
5.5.160.0030.00710.97
5.5.150.0030.00311.08
5.5.140.0000.00911.25
5.5.130.0050.00511.11
5.5.120.0050.00310.90
5.5.110.0000.00810.90
5.5.100.0100.00010.90
5.5.90.0060.00311.02
5.5.80.0040.00411.12
5.5.70.0000.01011.02
5.5.60.0030.00710.90
5.5.50.0080.00811.30
5.5.40.0060.00310.94
5.5.30.0070.00711.11
5.5.20.0090.00511.28
5.5.10.0130.00511.20
5.5.00.0090.00511.33
5.4.450.0150.02815.24
5.4.440.0170.02815.19
5.4.430.0120.03015.36
5.4.420.0120.02715.17
5.4.410.0150.03115.19
5.4.400.0100.02715.00
5.4.390.0170.04015.04
5.4.380.0110.02915.06
5.4.370.0160.02514.96
5.4.360.0100.03114.93
5.4.350.0080.03214.93
5.4.340.0130.02615.13
5.4.330.0080.00410.96
5.4.320.0120.02814.93
5.4.310.0100.02815.06
5.4.300.0130.03014.93
5.4.290.0080.03314.90
5.4.280.0170.03714.99
5.4.270.0170.03414.89
5.4.260.0110.02814.94
5.4.250.0210.03215.13
5.4.240.0160.02615.02
5.4.230.0150.03214.90
5.4.220.0120.03315.10
5.4.210.0170.02715.00
5.4.200.0540.02815.11
5.4.190.0310.03314.94
5.4.180.0370.03415.11
5.4.170.0500.03515.12
5.4.160.0490.03014.98
5.4.150.0430.03115.24
5.4.140.0340.03213.79
5.4.130.0190.02213.74
5.4.120.0130.02413.72
5.4.110.0180.02713.80
5.4.100.0100.02813.75
5.4.90.0100.02713.71
5.4.80.0150.03413.67
5.4.70.0120.02713.63
5.4.60.0130.02913.72
5.4.50.0080.03513.66
5.4.40.0080.02813.71
5.4.30.0160.02513.70
5.4.20.0100.02913.78
5.4.10.0180.03213.72
5.4.00.0220.01813.44
5.3.290.0180.03712.71
5.3.280.0140.03112.74
5.3.270.0490.04312.80
5.3.260.0460.03212.71
5.3.250.0420.02412.73
5.3.240.0120.03012.74
5.3.230.0220.02412.75
5.3.220.0120.03012.73
5.3.210.0140.02512.69
5.3.200.0160.02512.73
5.3.190.0130.03012.72
5.3.180.0130.03212.68
5.3.170.0060.03312.68
5.3.160.0120.02512.69
5.3.150.0140.02612.74
5.3.140.0080.03112.67
5.3.130.0200.02512.68
5.3.120.0160.02812.72
5.3.110.0150.03312.70
5.3.100.0140.02912.40
5.3.90.0130.03012.42
5.3.80.0120.02912.46
5.3.70.0180.02812.44
5.3.60.0140.02612.46
5.3.50.0120.02512.47
5.3.40.0070.03012.38
5.3.30.0100.02612.38
5.3.20.0100.02912.24
5.3.10.0100.02912.28
5.3.00.0220.02012.26
5.2.170.0080.02710.97
5.2.160.0080.02310.97
5.2.150.0080.02310.94
5.2.140.0080.02711.05
5.2.130.0080.02211.00
5.2.120.0070.02310.99
5.2.110.0120.02510.93
5.2.100.0120.02311.03
5.2.90.0090.02410.98
5.2.80.0100.02211.02
5.2.70.0130.02210.97
5.2.60.0110.02110.96
5.2.50.0120.02210.91
5.2.40.0100.02311.00
5.2.30.0100.02310.94
5.2.20.0080.02610.91
5.2.10.0120.02610.89
5.2.00.0060.02510.79
5.1.60.0110.01910.37
5.1.50.0070.01910.49
5.1.40.0040.03010.35
5.1.30.0170.01810.62
5.1.20.0150.02210.68
5.1.10.0070.01810.45
5.1.00.0100.02010.46
5.0.50.0100.0129.70
5.0.40.0100.0159.57
5.0.30.0120.0269.48
5.0.20.0070.0179.59
5.0.10.0060.0179.57
5.0.00.0140.0229.56
4.4.90.0070.0108.37
4.4.80.0070.0108.37
4.4.70.0040.0148.36
4.4.60.0040.0158.38
4.4.50.0040.0118.36
4.4.40.0070.0158.37
4.4.30.0110.0078.38
4.4.20.0030.0178.39
4.4.10.0100.0138.40
4.4.00.0050.0208.35
4.3.110.0030.0168.34
4.3.100.0040.0158.29
4.3.90.0080.0128.31
4.3.80.0060.0188.28
4.3.70.0050.0138.28
4.3.60.0090.0128.30
4.3.50.0070.0128.34
4.3.40.0250.0208.29
4.3.30.0180.0147.96
4.3.20.0070.0207.96
4.3.10.0170.0197.96
4.3.00.0050.0137.96

preferences:
48.27 ms | 401 KiB | 5 Q