3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num = base_convert("ffffffffffffffff",16,2); $arr = str_split($num); for ($i=0,$max = count($arr)-1; $i <=$max; $i++) { $arr[$i] = ($arr[$i] == '1')? '0' : '1'; } $str = join('',$arr); $converted = base_convert($str,2,10); $result = bcadd($converted, "1",0); var_dump(-$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.70.0120.00316.58
8.3.60.0070.01018.43
8.3.50.0060.01122.11
8.3.40.0120.00318.82
8.3.30.0140.00018.85
8.3.20.0040.00418.88
8.3.10.0040.00419.45
8.3.00.0040.00423.87
8.2.180.0100.01016.50
8.2.170.0170.00322.96
8.2.160.0110.00320.57
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0040.00421.19
8.2.110.0070.00420.63
8.2.100.0040.00818.09
8.2.90.0040.00419.33
8.2.80.0040.00418.29
8.2.70.0030.00617.63
8.2.60.0030.00618.29
8.2.50.0050.00318.07
8.2.40.0040.00418.41
8.2.30.0040.00420.00
8.2.20.0030.00517.87
8.2.10.0080.00018.01
8.2.00.0000.00717.93
8.1.280.0080.00825.92
8.1.270.0050.00323.99
8.1.260.0070.00726.35
8.1.250.0040.00428.09
8.1.240.0070.00322.72
8.1.230.0060.00621.09
8.1.220.0050.00318.77
8.1.210.0040.00418.88
8.1.200.0040.00417.60
8.1.190.0000.00917.75
8.1.180.0080.00018.10
8.1.170.0050.00318.84
8.1.160.0000.00819.04
8.1.150.0000.00718.73
8.1.140.0040.00417.60
8.1.130.0070.00017.98
8.1.120.0000.00717.52
8.1.110.0040.00417.55
8.1.100.0030.00617.61
8.1.90.0000.00717.65
8.1.80.0000.00717.58
8.1.70.0030.00317.58
8.1.60.0020.00517.79
8.1.50.0000.00717.52
8.1.40.0000.00717.73
8.1.30.0000.00717.82
8.1.20.0050.00317.84
8.1.10.0000.00717.64
8.1.00.0000.00817.62
8.0.300.0070.00020.13
8.0.290.0040.00417.29
8.0.280.0050.00318.61
8.0.270.0030.00317.47
8.0.260.0000.00616.93
8.0.250.0000.00717.15
8.0.240.0040.00417.13
8.0.230.0070.00017.07
8.0.220.0030.00316.99
8.0.210.0030.00317.02
8.0.200.0030.00317.02
8.0.190.0070.00017.04
8.0.180.0000.00717.05
8.0.170.0000.00717.09
8.0.160.0040.00417.07
8.0.150.0070.00017.01
8.0.140.0000.00716.96
8.0.130.0030.00513.50
8.0.120.0000.00717.00
8.0.110.0000.00717.06
8.0.100.0080.00016.89
8.0.90.0050.00217.04
8.0.80.0030.01117.09
8.0.70.0040.00417.10
8.0.60.0000.00716.93
8.0.50.0030.00617.12
8.0.30.0080.01217.35
8.0.20.0110.00717.45
8.0.10.0040.00417.18
8.0.00.0070.01117.06
7.4.330.0000.00714.81
7.4.320.0070.00016.77
7.4.300.0000.00616.74
7.4.290.0000.00716.66
7.4.280.0080.00316.63
7.4.270.0060.00016.71
7.4.260.0030.00313.43
7.4.250.0070.00016.60
7.4.240.0070.00016.64
7.4.230.0000.00716.80
7.4.220.0090.01516.56
7.4.210.0100.00616.74
7.4.200.0070.00016.66
7.4.190.0000.00716.84
7.4.160.0100.00716.61
7.4.150.0100.00717.40
7.4.140.0110.00817.86
7.4.130.0130.00716.63
7.4.120.0100.01016.66
7.4.110.0130.00316.50
7.4.100.0000.01716.71
7.4.90.0100.00716.50
7.4.80.0110.00519.37
7.4.70.0110.00716.69
7.4.60.0080.00816.53
7.4.50.0030.00616.54
7.4.40.0030.01322.27
7.4.30.0070.01016.70
7.4.00.0100.00715.20
7.3.330.0000.00513.46
7.3.320.0000.00513.39
7.3.310.0050.00216.43
7.3.300.0030.00316.42
7.3.290.0120.00816.49
7.3.280.0080.00816.51
7.3.270.0130.00717.40
7.3.260.0080.01118.24
7.3.250.0120.01016.49
7.3.240.0140.00416.68
7.3.230.0120.00916.73
7.3.210.0060.01616.62
7.3.200.0120.00619.39
7.3.190.0100.00716.78
7.3.180.0060.00916.59
7.3.170.0040.01316.52
7.3.160.0130.00316.80
7.3.120.0000.01415.25
7.3.00.0030.01016.75
7.2.330.0060.01316.95
7.2.320.0100.00616.81
7.2.310.0120.00916.99
7.2.300.0030.01316.96
7.2.290.0110.01016.85
7.2.130.0120.00317.05
7.2.120.0070.01017.17
7.2.110.0060.00817.06
7.2.100.0080.00416.95
7.2.90.0040.01117.05
7.2.80.0060.00617.04
7.2.70.0030.01316.84
7.2.60.0070.00916.95
7.2.50.0090.00617.18
7.2.40.0110.00317.09
7.2.30.0080.00617.11
7.2.20.0000.01417.13
7.2.10.0060.00617.13
7.2.00.0040.00918.26
7.1.250.0080.00015.68
7.1.240.0000.01015.80
7.1.230.0000.01115.96
7.1.220.0060.00616.00
7.1.210.0100.00315.88
7.1.200.0060.00815.75
7.1.190.0000.01215.89
7.1.180.0000.00815.56
7.1.170.0000.01016.06
7.1.160.0140.00016.06
7.1.150.0040.00416.06
7.1.140.0060.00615.95
7.1.130.0070.01015.90
7.1.120.0000.01715.91
7.1.110.0070.01016.04
7.1.100.0070.00916.99
7.1.90.0060.00315.91
7.1.80.0110.00416.20
7.1.70.0030.00816.66
7.1.60.0050.01417.64
7.1.50.0070.01116.59
7.1.40.0030.00715.73
7.1.30.0030.00915.82
7.1.20.0070.00715.71
7.1.10.0000.01015.82
7.1.00.0000.03819.14
7.0.330.0000.01215.43
7.0.320.0060.00615.48
7.0.310.0030.01015.55
7.0.300.0070.01015.43
7.0.290.0060.00615.46
7.0.280.0040.00715.32
7.0.270.0000.01215.44
7.0.260.0030.00715.58
7.0.250.0000.01015.30
7.0.240.0080.00615.46
7.0.230.0030.00915.66
7.0.220.0030.01315.58
7.0.210.0080.00315.44
7.0.200.0020.00716.20
7.0.190.0070.00715.55
7.0.180.0030.00715.71
7.0.170.0070.00415.53
7.0.160.0070.00315.70
7.0.150.0030.00715.43
7.0.140.0100.03518.73
7.0.130.0060.00615.34
7.0.120.0000.01115.69
7.0.110.0030.00715.48
7.0.100.0040.00715.46
7.0.90.0090.00315.57
7.0.80.0030.00615.54
7.0.70.0000.01215.39
7.0.60.0140.03618.66
7.0.50.0110.04618.80
7.0.40.0120.04216.75
7.0.30.0070.04016.94
7.0.20.0070.04616.77
7.0.10.0110.03016.85
7.0.00.0150.03716.84
5.6.380.0030.01014.61
5.6.370.0000.00914.77
5.6.360.0040.00814.22
5.6.350.0060.00314.37
5.6.340.0120.00414.15
5.6.330.0000.01413.98
5.6.320.0070.00714.42
5.6.310.0040.00714.22
5.6.300.0050.00514.36
5.6.290.0040.01114.75
5.6.280.0070.03917.88
5.6.270.0120.00014.51
5.6.260.0080.00414.63
5.6.250.0030.01014.82
5.6.240.0060.00614.53
5.6.230.0030.01014.41
5.6.220.0080.00314.73
5.6.210.0090.04317.41
5.6.200.0080.04817.76
5.6.190.0030.04317.96
5.6.180.0110.03617.75
5.6.170.0110.04117.79
5.6.160.0090.04217.93
5.6.150.0080.04017.79
5.6.140.0080.03317.99
5.6.130.0150.03817.72
5.6.120.0120.02517.71
5.6.110.0100.04417.79
5.6.100.0070.04717.81
5.6.90.0060.04117.60
5.6.80.0110.02817.55
5.6.70.0110.01817.31
5.6.60.0030.02517.38
5.6.50.0050.03017.46
5.6.40.0120.03817.54
5.6.30.0100.04017.44
5.6.20.0120.03717.46
5.6.10.0070.03717.27
5.6.00.0050.04417.46
5.5.380.0040.00411.37
5.5.370.0000.00711.24
5.5.360.0030.00911.18
5.5.350.0050.03715.95
5.5.340.0080.04316.10
5.5.330.0070.03316.14
5.5.320.0100.03716.24
5.5.310.0100.04216.12
5.5.300.0050.04616.22
5.5.290.0060.02816.14
5.5.280.0100.02716.06
5.5.270.0070.04716.16
5.5.260.0100.04216.17
5.5.250.0070.03615.91
5.5.240.0060.04315.75
5.5.230.0070.02315.73
5.5.220.0140.03515.81
5.5.210.0070.04015.79
5.5.200.0060.03015.75
5.5.190.0050.03915.69
5.5.180.0070.04615.70
5.5.170.0030.00611.18
5.5.160.0070.04115.82
5.5.150.0030.03215.83
5.5.140.0070.03715.76
5.5.130.0080.04215.66
5.5.120.0050.04315.70
5.5.110.0080.03715.71
5.5.100.0030.04015.80
5.5.90.0080.03815.68
5.5.80.0070.03915.63
5.5.70.0050.04015.74
5.5.60.0090.04115.66
5.5.50.0080.03615.70
5.5.40.0070.03515.70
5.5.30.0060.04315.65
5.5.20.0060.04515.65
5.5.10.0070.03015.67
5.5.00.0080.03015.71
5.4.450.0100.04015.29
5.4.440.0030.03015.27
5.4.430.0150.03515.31
5.4.420.0080.04015.31
5.4.410.0070.03515.28
5.4.400.0050.03215.18
5.4.390.0080.03015.24
5.4.380.0070.03015.08
5.4.370.0080.02315.20
5.4.360.0050.04515.18
5.4.350.0050.03615.04
5.4.340.0070.04515.11
5.4.330.0000.00611.18
5.4.320.0070.03215.19
5.4.310.0020.03715.10
5.4.300.0090.03715.10
5.4.290.0050.03815.10
5.4.280.0150.03215.12
5.4.270.0110.03715.06
5.4.260.0090.02215.18
5.4.250.0080.04115.20
5.4.240.0030.03715.11
5.4.230.0050.04015.17
5.4.220.0070.03915.07
5.4.210.0050.04315.10
5.4.200.0070.03715.24
5.4.190.0120.03715.18
5.4.180.0050.03715.18
5.4.170.0080.03815.17
5.4.160.0120.03215.06
5.4.150.0050.04315.09
5.4.140.0100.03213.84
5.4.130.0030.02313.84
5.4.120.0050.04013.83
5.4.110.0060.03313.81
5.4.100.0030.04013.83
5.4.90.0050.04413.80
5.4.80.0100.03413.78
5.4.70.0000.04213.79
5.4.60.0030.03513.88
5.4.50.0070.03613.77
5.4.40.0060.03813.88
5.4.30.0090.03613.77
5.4.20.0070.03413.79
5.4.10.0100.03013.88
5.4.00.0110.02113.58
5.3.290.0050.02612.92
5.3.280.0060.03812.86
5.3.270.0080.03912.85
5.3.260.0050.04312.81
5.3.250.0080.03512.81
5.3.240.0030.04112.88
5.3.230.0050.02912.87
5.3.220.0120.03212.84
5.3.210.0050.04012.85
5.3.200.0050.03812.79
5.3.190.0050.04212.86
5.3.180.0050.03712.83
5.3.170.0140.03512.83
5.3.160.0050.03212.83
5.3.150.0080.02512.86
5.3.140.0070.03512.84
5.3.130.0030.03812.84
5.3.120.0110.03512.83
5.3.110.0050.03512.79
5.3.100.0070.04312.60
5.3.90.0100.03312.57
5.3.80.0030.04112.48
5.3.70.0090.03412.57
5.3.60.0050.04312.56
5.3.50.0110.03012.53
5.3.40.0080.03212.54
5.3.30.0050.04212.49
5.3.20.0080.03712.33
5.3.10.0080.03012.40
5.3.00.0020.02412.30
5.2.170.0050.02511.06
5.2.160.0050.03011.17
5.2.150.0050.02711.16
5.2.140.0070.03011.08
5.2.130.0040.02911.16
5.2.120.0050.03311.10
5.2.110.0020.03211.14
5.2.100.0020.03211.16
5.2.90.0080.02511.16
5.2.80.0030.02611.17
5.2.70.0040.03011.14
5.2.60.0020.03611.12
5.2.50.0060.03011.12
5.2.40.0040.02511.10
5.2.30.0030.02711.09
5.2.20.0020.02711.06
5.2.10.0020.03511.05
5.2.00.0030.02810.97
5.1.60.0050.02510.57
5.1.50.0020.02910.59
5.1.40.0030.02910.58
5.1.30.0080.02610.76
5.1.20.0010.03110.78
5.1.10.0050.03010.62
5.1.00.0020.03010.60
5.0.50.0030.02510.04
5.0.40.0030.02210.04
5.0.30.0000.03510.04
5.0.20.0030.02210.04
5.0.10.0030.02210.04
5.0.00.0020.03210.04
4.4.90.0040.01810.04
4.4.80.0020.01710.04
4.4.70.0000.01910.04
4.4.60.0090.01310.04
4.4.50.0010.01810.04
4.4.40.0000.02810.04
4.4.30.0030.01910.04
4.4.20.0020.01710.04
4.4.10.0000.02010.04
4.4.00.0020.02910.04
4.3.110.0020.02010.04
4.3.100.0000.02010.04
4.3.90.0030.01610.04
4.3.80.0000.02710.04
4.3.70.0020.02010.04
4.3.60.0000.02010.04
4.3.50.0000.02110.04
4.3.40.0030.02510.04
4.3.30.0020.01910.04
4.3.20.0060.01510.04
4.3.10.0030.01310.04
4.3.00.0020.01310.04

preferences:
46.27 ms | 401 KiB | 5 Q